dxbc: record console container fixtures for the shader reader #531
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/531"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-11-29T20:11:18Z.
What
The console container layout is pinned by tests: an outer DXBC directory with a
DXILpart holding an XDAT program list, each program carrying a stage word and an FSSM instruction image padded to a 256-byte block.runtime/dxbc/src/tests/console_container.rsbuilds the containers itself from our own bytes — directory, program header, XDAT, FSSM image and padding — and asserts what the reader reports: the program count, the stage number from the header word, the instruction span it wrote, the stripped end-of-program dwords, and the padding dword for the rest of the block.Verification
cargo test --target x86_64-unknown-linux-gnu -p tuxbox-dxbc --features native-bindings— 118 passed.python tuxbox.py check --no-gpu— all steps pass.Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T20:37:57Z.
Thanks for the careful tooling. I can't take the committed fixtures, though:
compute.dxbc,pixel.dxbcand the.codefiles are output of the console reference compiler, a licensed tool we don't redistribute output from. The same goes for the hardware code and stage names it reports.The comparison tool itself is fine if it keeps everything on the contributor's machine: compile with the local reference, compare with our reader, report the differences, and commit nothing it produced. Could you rework it that way, with the Rust tests using only bytes we can share (ones we build ourselves, or synthetic containers)?
Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-29T21:11:44Z.
Thanks, this addresses what I raised. We're putting it through the full check on both of our cards with your other ready PRs now, and will merge it if it passes.