1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-23 10:54:14 +01:00

[dxvk] Track index buffer access

This commit is contained in:
Philip Rebohle 2025-02-14 20:02:37 +01:00
parent bd2245022b
commit fdaa4f43f5

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;
}