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) #2894
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#2894
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?
@BastienRodz on GitHub · 2026-11-25 23:18 UTC · original
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.
github-bot referenced this issue2026-11-26 05:16:57 +00:00
@Marvisak on GitHub · 2026-11-26 00:42 UTC · original
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