1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-11 10:24:10 +01:00

[dxvk] Do not commit compute barriers for unbound resources

Fixes a crash in Neptunia VII.
This commit is contained in:
Philip Rebohle 2018-02-14 16:18:18 +01:00
parent 17cdccd1ce
commit ba707f95b7
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1565,6 +1565,7 @@ namespace dxvk {
auto layout = m_state.cp.pipeline->layout(); auto layout = m_state.cp.pipeline->layout();
for (uint32_t i = 0; i < layout->bindingCount(); i++) { for (uint32_t i = 0; i < layout->bindingCount(); i++) {
if (m_state.cp.bs.isBound(i)) {
const DxvkDescriptorSlot binding = layout->binding(i); const DxvkDescriptorSlot binding = layout->binding(i);
const DxvkShaderResourceSlot& slot = m_rc[binding.slot]; const DxvkShaderResourceSlot& slot = m_rc[binding.slot];
@ -1597,6 +1598,7 @@ namespace dxvk {
slot.imageView->imageInfo().access); slot.imageView->imageInfo().access);
} }
} }
}
m_barriers.recordCommands(m_cmd); m_barriers.recordCommands(m_cmd);
} }