GPU: a list that binds no view heap sets a root signature indexing the view heap directly with none bound (the other half of #1778) #2892
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 BastienRodz on 2026-11-25T23:18:37Z.
Every root signature the host makes sets both
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXEDandSAMPLER_HEAP_DIRECTLY_INDEXED(pipeline/host.rs). D3D12 then requires heaps of both kinds to be bound before the signature is set. DirectX-Specs, SM 6.6 Dynamic Resources: "SetDescriptorHeaps must be called, passing the corresponding heaps, before a call to SetGraphicsRootSignature or SetComputeRootSignature that uses either CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED or SAMPLER_HEAP_DIRECTLY_INDEXED flags."#1778 fixed the sampler half: a list that binds no sampler heap gets ours. The view half is still open.
State::wantedgives a list our view heap (MEMORY_HEAP) only when its shaders read title memory or root views (memory_heap). Otherwise it keepstitle[0], which is 0 when the title binds no view heap.Input. A list that binds no view heap, with or without a sampler heap, and draws or dispatches with shaders that read only constants from their user data.
What happens on main
842b0cb.wanted([0, 0], false)is[0, SAMPLERS_OURS], sobind_heapsbinds only our sampler heap. The root signature is then set with no view heap bound. That is the same rule as the debug layer's id 1419, whose sampler half removed the device on NVIDIA in #1754.Expected. Our view heap is bound for a list that binds none.
root_viewand the write-mark table already use that heap when the title binds no view heap.Found by reading the code and checked with a unit test; I have no in-game observation of this case. No game data. Analysis assisted by Claude Code.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T00:42:45Z.
Automated triage for the maintainers.
Confirmed on
main(63bcca4). Every root signature built incrates/victory-gpu/src/pipeline/host.rssets both..._HEAP_DIRECTLY_INDEXEDflags, butState::wantedincrates/victory-gpu/src/draw.rssubstitutes a heap of ours only for the sampler kind; with no title view heap andmemory_heapfalse, the view slot staystitle[0](0), sobind_heapsbinds only our sampler heap before the root signature is set.Open pull request #2896 addresses this.
Generated by Claude Code