mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
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 00a064e32bcf46e3d0bb536ce11af1b4c22006d8.
This commit is contained in:
parent
0e44bc3068
commit
1ae7d4b302
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user