Revert "[dxvk] Don't clear bind mask for unbound UBOs and samplers"

For some bizarre reason, this crashes Star Citizen. The reason might be
that we create multiple pipelines with identical pipelines when using a
state cache, which used to crash some drivers in the past.

Fixes #1266.

This reverts commit 00a064e32b.
This commit is contained in:
Philip Rebohle 2019-12-04 12:24:25 +01:00
parent 0e44bc3068
commit 1ae7d4b302
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 3 additions and 0 deletions

View File

@ -3913,6 +3913,7 @@ namespace dxvk {
if (m_rcTracked.set(binding.slot))
m_cmd->trackResource<DxvkAccess::None>(res.sampler);
} else {
bindMask.clr(i);
descriptors[i].image = m_common->dummyResources().samplerDescriptor();
} break;
@ -4007,6 +4008,7 @@ namespace dxvk {
if (m_rcTracked.set(binding.slot))
m_cmd->trackResource<DxvkAccess::Read>(res.bufferSlice.buffer());
} else {
bindMask.clr(i);
descriptors[i].buffer = m_common->dummyResources().bufferDescriptor();
} break;
@ -4029,6 +4031,7 @@ namespace dxvk {
if (m_rcTracked.set(binding.slot))
m_cmd->trackResource<DxvkAccess::Read>(res.bufferSlice.buffer());
} else {
bindMask.clr(i);
descriptors[i].buffer = m_common->dummyResources().bufferDescriptor();
} break;