GPU: require only the descriptor heaps used by the pipeline #411

Open
github-bot wants to merge 1 commit from github-bot/gh-411 into main AGit
Owner

@⁠FIocker on GitHub · 2026-11-24 03:01 UTC · original
FIocker:gpu/root-heap-requirements → main · +103 −12 · 3 files · 1 commits · open

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_heap passed on WARP with the D3D12 debug layer enabled.
  • cargo test --locked --workspace --features victory/diagnostics -- --test-threads=1 passed on WARP, including all four synthetic SFI0 combinations.
  • The staged asset-policy check passed.
**@⁠FIocker** on GitHub · 2026-11-24 03:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/411) `FIocker:gpu/root-heap-requirements` → `main` · +103 −12 · 3 files · 1 commits · open 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](https://microsoft.github.io/DirectX-Specs/d3d/HLSL_SM_6_6_DynamicResources.html). Validation on x64 Windows: - `cargo test --locked -p victory-gpu --features diagnostics resource_heap_root_can_bind_without_sampler_heap` passed on WARP with the D3D12 debug layer enabled. - `cargo test --locked --workspace --features victory/diagnostics -- --test-threads=1` passed on WARP, including all four synthetic SFI0 combinations. - The staged asset-policy check passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:02:51 +00:00
Author
Owner

@⁠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.

**@⁠Raxstreams** on GitHub · 2026-11-24 03:06 UTC · [original](https://github.com/Marvisak/VIctory/pull/411#issuecomment-7120779875) 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.
Author
Owner

@⁠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

  • Commit: 7244393 (pr-411, clean tree)
  • Environment: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (driver 32.0.16.2101), Rust 1.98.1 (x86_64-pc-windows-msvc)
  • cargo xtask policy: asset policy: 151 files ok
  • cargo test --locked -p victory-gpu --features diagnostics resource_heap_root_can_bind_without_sampler_heap: 1 passed, 0 failed
  • cargo test --locked --workspace --features victory/diagnostics -- --test-threads=1: 269 passed, 0 failed, 4 ignored
  • diag build (VICTORY_D3D12_DRED=1) live boot/first-screen run (35 s) on RTX 3060 Ti: 512+ frames presented (2561/2561 draws, 256/256 dispatches), crashes.log empty.

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.

**@⁠LocranKing** on GitHub · 2026-11-24 03:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/411#issuecomment-7121146968) Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, MSVC `1.98.1`). **Tested** - Commit: `7244393` (`pr-411`, clean tree) - Environment: Windows 11 Home Build 26200, AMD Ryzen 5 5500, 31.8 GB RAM, NVIDIA GeForce RTX 3060 Ti (driver `32.0.16.2101`), Rust `1.98.1` (`x86_64-pc-windows-msvc`) - `cargo xtask policy`: `asset policy: 151 files ok` - `cargo test --locked -p victory-gpu --features diagnostics resource_heap_root_can_bind_without_sampler_heap`: **1 passed, 0 failed** - `cargo test --locked --workspace --features victory/diagnostics -- --test-threads=1`: **269 passed, 0 failed, 4 ignored** - `diag` build (`VICTORY_D3D12_DRED=1`) live boot/first-screen run (35 s) on RTX 3060 Ti: `512+` frames presented (`2561/2561` draws, `256/256` dispatches), `crashes.log` empty. **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.
Author
Owner

@⁠DeerSilver on GitHub · 2026-11-24 11:01 UTC · original

Tested head 16a5893 merged onto main ffe310e (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.

  • The PR's new test passes. It uses the host GPU and ran on the RTX 5060 (DXGI adapter 0 on this laptop, so the host-device helpers return a device and the tests don't take their early return):
    • direct_heap_requirements_are_independent
  • cargo test --workspace --locked: 343 passed, 0 failed, 6 ignored, against 342 passed / 6 ignored on main.
  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.

AI-assisted (Claude Code).

**@⁠DeerSilver** on GitHub · 2026-11-24 11:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/411#issuecomment-7129558220) Tested head `16a5893` merged onto `main` `ffe310e` (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. - The PR's new test passes. It uses the host GPU and ran on the RTX 5060 (DXGI adapter 0 on this laptop, so the host-device helpers return a device and the tests don't take their early return): - `direct_heap_requirements_are_independent` - `cargo test --workspace --locked`: **343 passed, 0 failed, 6 ignored**, against 342 passed / 6 ignored on `main`. - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. AI-assisted (Claude Code).
Author
Owner

@⁠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

**@⁠Marvisak** on GitHub · 2026-11-25 00:16 UTC · [original](https://github.com/Marvisak/VIctory/pull/411#issuecomment-7148335351) <!-- victory-triage v1 head=16a5893ea7fb94d1492e726c38f53caa70c79932 verdict=needs-rebase at=2026-11-25T00:13:20Z --> 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](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/pipeline/host.rs
  • crates/victory-shader/src/emit/shader.rs
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.
git fetch -u origin '+refs/pull/411/head:github-bot/gh-411'
git switch 'github-bot/gh-411'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-411'
git switch 'github-bot/gh-411'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-411'
git switch 'github-bot/gh-411'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-411'
git switch 'main'
git merge --squash 'github-bot/gh-411'
git switch 'main'
git merge --ff-only 'github-bot/gh-411'
git switch 'main'
git merge 'github-bot/gh-411'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!411
No description provided.