Track host state of buffer copies so compute-written data can be drawn #479
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!479
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/479/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?
@cmyk-ux on GitHub · 2026-11-24 03:51 UTC · original
cmyk-ux:fix/shadow-buffer-states→main· +239 −22 · 3 files · 1 commits · closed without mergingA title buffer's host copy (shadow) is written by shaders through unordered access and read as vertex, index, constant, shader resource and indirect argument data. The host never moved it between those states: the title's own transitions on buffers are dropped (the copy is not the buffer the barrier names; only a UAV barrier is recorded), and every use relied on the copy being promoted from the common state.
When a compute pass wrote a copy and a later draw bound it as vertex data, the copy was still in UNORDERED_ACCESS and the debug layer reported IASetVertexBuffers on a resource in state 0x8 (expected VERTEX_AND_CONSTANT_BUFFER), followed on the 3070 by a device removal during a 32-list submission (issue #445).
HostList now tracks each copy's state per list:
Pull request closed