GPU: require only the descriptor heaps used by the pipeline #411
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!411
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-411"
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:01 UTC · original
FIocker:gpu/root-heap-requirements→main· +103 −12 · 3 files · 1 commits · openDerive the directly indexed heap flags on a host root signature from the union of the translated stages' DXIL SFI0 requirements. This lets a buffer-only compute pipeline bind its resource heap without first providing an unused sampler heap. Static samplers use their existing root signature declarations.
I encountered the validation error with a synthetic single-thread compute shader that reads buffer SRVs and writes a UAV. The WARP debug layer required a sampler heap merely because the root signature had its direct indexing flag set. The flag mapping follows the Shader Model 6.6 specification.
Validation on x64 Windows:
cargo test --locked -p victory-gpu --features diagnostics resource_heap_root_can_bind_without_sampler_heappassed on WARP with the D3D12 debug layer enabled.cargo test --locked --workspace --features victory/diagnostics -- --test-threads=1passed on WARP, including all four synthetic SFI0 combinations.@Raxstreams on GitHub · 2026-11-24 03:06 UTC · original
I ran the same SFI0 flag mapping on an RTX 3080 Ti in a local Series S integration. Before the change, D3D12 reported 1,606 heap-binding errors (message 1419) in the run. The repeat run reached the opening scene with zero occurrences of 1419. There are still separate rendering failures later in the scene. This confirms the specific heap requirement in a title workload.
@LocranKing on GitHub · 2026-11-24 03:29 UTC · original
Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, MSVC
1.98.1).Tested
7244393(pr-411, clean tree)32.0.16.2101), Rust1.98.1(x86_64-pc-windows-msvc)cargo xtask policy:asset policy: 151 files okcargo test --locked -p victory-gpu --features diagnostics resource_heap_root_can_bind_without_sampler_heap: 1 passed, 0 failedcargo test --locked --workspace --features victory/diagnostics -- --test-threads=1: 269 passed, 0 failed, 4 ignoreddiagbuild (VICTORY_D3D12_DRED=1) live boot/first-screen run (35 s) on RTX 3060 Ti:512+frames presented (2561/2561draws,256/256dispatches),crashes.logempty.Not tested: Gameplay/world load past the first screens; D3D12 debug layer (
VICTORY_D3D12_DEBUG=1).AI use: Antigravity (
Gemini 4 Hydrogen) ran the checks and drafted this comment from the command outputs.@DeerSilver on GitHub · 2026-11-24 11:01 UTC · original
Tested head
16a5893merged ontomainffe310e(clean merge) on NVIDIA GeForce RTX 5060 Laptop GPU (Blackwell), driver 621.24, Windows 11 26300, Rust 1.98.1: pass. No game files: the test suite only.direct_heap_requirements_are_independentcargo test --workspace --locked: 343 passed, 0 failed, 6 ignored, against 342 passed / 6 ignored onmain.cargo clippy --workspace --all-targets --locked -- -D warnings: clean.AI-assisted (Claude Code).
@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-shader/src/emit/shader.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.