GPU: include root-selected entries in rebuilt descriptor tables #420
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!420
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@FIocker on GitHub · 2026-11-24 03:10 UTC · original
FIocker:gpu/root-indexed-fresh-tables→main· +442 −25 · 10 files · 2 commits · openA 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.
@Raxstreams on GitHub · 2026-11-24 04:05 UTC · original
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.
@alexdeliu on GitHub · 2026-11-24 17:23 UTC · original
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/ef9ef0ebc1776ff104b5aa8eaea18e87@Marvisak on GitHub · 2026-11-25 00:16 UTC · original
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.