GPU: require only the descriptor heaps used by the pipeline #411
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by FIocker on 2026-11-24T03:01:00Z.
Derive 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.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T05:57:30Z.
Review: APPROVED
Tested
7244393on Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (265 passed, 0 failed).0x200_0000,0x400_0000) that the translator itself writes, collected over every stage of the pipeline. A shader that indexes a heap therefore still gets its flag, and the others no longer require a sampler heap they never read. Naming the two constants inflagskeeps the producer and consumer in step.root_bloband the pipeline-library names derived from it differ whenever the flags differ. No cached pipeline can be reused with the wrong root signature.(false, false). That is the strict choice: a pipeline that really needs a heap would then fail validation rather than pass silently. That seems right.No issues found.
AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Raxstreams on 2026-11-24T03:06:38Z.
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.
Imported from Marvisak/VIctory. Originally posted by LocranKing on 2026-11-24T03:29:27Z.
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.Imported from Marvisak/VIctory. Originally posted by DeerSilver on 2026-11-24T11:01:40Z.
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).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:16:23Z.
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
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.