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

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

These don't need special treatment, so we really don't need to
recompile the pipeline if they are not bound.
This commit is contained in:
Philip Rebohle 2019-11-28 00:25:16 +01:00
parent 15ef79be42
commit 00a064e32b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -3931,7 +3931,6 @@ 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;
@ -4026,7 +4025,6 @@ 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;
@ -4049,7 +4047,6 @@ 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;