fix(gpu): transition shadow buffers before VB/IB binding #1502
No reviewers
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!1502
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1502/head"
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?
@Thomas73737 on GitHub · 2026-11-24 18:33 UTC · original
Thomas73737:fix/shadow-buffer-vb-ib-state→main· +74 −3 · 4 files · 1 commits · closed without mergingSummary
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
@Ryanarcx2 on GitHub · 2026-11-24 20:49 UTC · original
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.
@Marvisak on GitHub · 2026-11-25 00:41 UTC · original
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