Shaders: verify compute writes through a spilled root UAV #1175
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1175"
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 Marvisak/VIctory. Originally posted by Castyan on 2026-11-24T16:20:12Z.
Draft integration of #1077 with a focused regression for one synthetic compute shader that reconstructs a raw root UAV from a spilled argument. The new commit aligns the D3D12 validation host with the runtime's bounded, single-view UAV descriptor table.
The test writes one dword at byte offset 4 and checks the readback and an untouched control buffer. It passed on the hardware adapter and WARP. Workspace tests, shader Clippy and the asset policy check also passed.
This exercises the binding path relevant to #614. In-game BVH dispatch counts and rendering impact remain unmeasured. Details are in docs/compute-bvh-root-uav.md.
OpenAI Codex assisted with the implementation, tests and documentation.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:46Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
bfe5d2d:cargo test -p victory -p victory-gpu -p victory-shaderpasses, 177 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by aycow on 2026-11-24T18:13:31Z.
I tested exact
bfe5d2dusing an original translated compute shader and the production spilled root UAV binding path. The short view and existing 1 MiB edge behaved as expected. An unaligned root address did bind a native null UAV, but its deferred GPU-write bookkeeping still blocked a later CPU refresh on exact #1175 (17 observed, 77 expected). The focused fix and fixture schedule shadow work only when a native view covers complete dwords. AMD, NVIDIA and WARP pass with full GBV. Feel free to take the production hunk into this PR. This leaves the existing extent policy intact; the title producer binding and actual write extent remain unverified.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:33:48Z.
Automated triage for the maintainers. Closing because this change is already in
main, ormainhas since replaced the code it patches.Draft integration of #1077 plus one test and a design doc (docs/compute-bvh-root-uav.md, against the short-docs rule); the capability is in main (
27c3dc9d).If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed