fix(gpu): transition shadow buffers before VB/IB binding #1501
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1502"
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 Thomas73737 on 2026-11-24T18:33:48Z.
Summary
VERTEX_AND_CONSTANT_BUFFER/INDEX_BUFFERbeforeIASetVertexBuffers/IASetIndexBuffer.SHADER_RESOURCE/UNORDERED_ACCESS.Why
Issue #445 reports a D3D12 debug-layer validation error where a resource in
D3D12_RESOURCE_STATE_UNORDERED_ACCESSis used as a vertex buffer, followed by device removal. Shadow buffer copies previously had no tracked host state/barrier path when bound as VB/IB.Validation
cargo check -p victory-gputimed out in this sandbox (120s, then 300s); compile not confirmed.Caveats
Imported from Marvisak/VIctory. Originally posted by Ryanarcx2 on 2026-11-24T20:49:00Z.
Tested
3f204cdon an RTX 5070 Ti (driver 32.0.16.1742), Windows 11, diag build withVICTORY_D3D12_DEBUG=1, running to the first story cutscene. Compared againstmainatffe310e, same machine and route:ffe310e3f204cdDrawIndexedInstanced)CreateComputeShader: wants wave lane count 64, device max 32Both runs end in
DXGI_ERROR_DEVICE_HUNG(TDR) during the cutscene, which runs at roughly 1.5 to 2.9 fps beforehand. The hang persisted with TdrDelay raised to 10 s onmain. On this card the PR does not remove the vertex-buffer state errors, and the count goes up sharply. The wave64 refusals are unchanged either way, so they may be the larger blocker on NVIDIA (#578 / #223).Happy to run another build.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:41:41Z.
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #334. Buffer-copy state transitions as in #334, and by its own description not validated on Windows or any D3D12 device.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed