1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 04:54:15 +01:00

[dxvk] Track index buffer access

This commit is contained in:
Philip Rebohle 2025-02-14 20:02:37 +01:00 committed by Philip Rebohle
parent 21eb682b39
commit 24b58e5858

View File

@ -6310,6 +6310,11 @@ namespace dxvk {
m_state.vi.indexType);
}
if (unlikely(m_state.vi.indexBuffer.buffer()->hasGfxStores())) {
accessBuffer(DxvkCmdBuffer::ExecBuffer, m_state.vi.indexBuffer,
VK_PIPELINE_STAGE_VERTEX_INPUT_BIT, VK_ACCESS_INDEX_READ_BIT);
}
m_cmd->track(m_state.vi.indexBuffer.buffer(), DxvkAccess::Read);
return true;
}