Track host state of buffer copies so compute-written data can be drawn #479
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/479"
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 cmyk-ux on 2026-11-24T03:51:46Z.
A 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