Fix vulkan crash on drivers without atomic load/store support
This would not allocate a SSBO buffer, but still try to update the descriptor said with a NULL buffer. Which naturally crashed.
This commit is contained in:
1 parent
4ee85a3e07
commit
5b41c5ae0d
1 file changed
+2
-1
@@ -1118,7 +1118,8 @@ bool StateTracker::UpdateDescriptorSet()
|
|||||||
m_dirty_flags |= DIRTY_FLAG_DESCRIPTOR_SET_BINDING;
|
m_dirty_flags |= DIRTY_FLAG_DESCRIPTOR_SET_BINDING;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((m_dirty_flags & DIRTY_FLAG_PS_SSBO ||
|
if (IsSSBODescriptorRequired() &&
|
||||||
|
(m_dirty_flags & DIRTY_FLAG_PS_SSBO ||
|
||||||
m_descriptor_sets[DESCRIPTOR_SET_BIND_POINT_STORAGE_OR_TEXEL_BUFFER] == VK_NULL_HANDLE))
|
m_descriptor_sets[DESCRIPTOR_SET_BIND_POINT_STORAGE_OR_TEXEL_BUFFER] == VK_NULL_HANDLE))
|
||||||
{
|
{
|
||||||
VkDescriptorSetLayout layout =
|
VkDescriptorSetLayout layout =
|
||||||
|
|||||||
Reference in new issue
Block a user