GPU: include root-selected entries in rebuilt descriptor tables #420
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/420"
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 FIocker on 2026-11-24T03:10:59Z.
A rebuilt descriptor table stops at the last statically reported resource. A translated shader can select a later entry using a root constant. This keeps selector metadata through translation and the shader cache, resolves supported root-constant forms while binding, and includes those entries in the copied span. Selected buffers are refreshed when the table is built and on cache hits.
With #336 merged, the bind rejects spans past the title heap or the actual dynamic capacity of the bound host heap. Selectors that can only be evaluated during shader execution remain a separate case.
The synthetic GFX10 fixture uses VIctory's compute pipeline and descriptor binding on D3D12 WARP. It reads two buffer sentinels through new and cached tables, checks that the static-only control leaves the later entry unpopulated, and checks that invalid spans fail admission before dispatch. The Windows workspace diagnostics suite passed on WARP. A separate local integration with #334 also verified a UAV write followed by a cached, root-selected SRV read of the same buffer in one command list.
Imported from Marvisak/VIctory. Originally posted by Raxstreams on 2026-11-24T04:05:16Z.
Confirmed the production binding regression test passes in a local integration with draw admission from #336. The translated shader selected the later buffer in the rebuilt table and the GPU readback matched. The combined GPU suite completed with 127 passed and four ignored.
Imported from Marvisak/VIctory. Originally posted by alexdeliu on 2026-11-24T17:23:48Z.
Merged onto
main@ffe310eb, this PR (b4b9498a) no longer compiles its tests:crates/victory-shader/src/emit/waterfall_tests.rs:77builds aHostShaderwithout the newroot_indexed_viewsfield, andcrates/victory-gpu/src/descriptor.rs:757callsresource::trackwith 3 arguments. Since6638098cit takes a 4th,lanes: Option<&Structured>; main's tests passSome(&st)withlet st = structure::structure(&p).unwrap();.Checked with CI's steps (both clippy runs with
-D warnings,cargo test --workspace) on Windows 11, AMD RX 9070. Every open PR: https://gist.github.com/alexdeliu/ef9ef0ebc1776ff104b5aa8eaea18e87Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:16:52Z.
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-gpu/src/draw.rs,crates/victory-gpu/src/shader_cache.rs,crates/victory-shader/src/emit/host.rs,crates/victory-shader/src/emit/mod.rs,crates/victory-shader/src/emit/valu_tests.rs,crates/victory-shader/src/resource.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.