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:
Jonathan Hamilton 2017-08-23 11:33:30 -07:00
parent 4ee85a3e07
commit 5b41c5ae0d
1 changed files with 2 additions and 1 deletions

View File

@ -1118,7 +1118,8 @@ bool StateTracker::UpdateDescriptorSet()
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))
{
VkDescriptorSetLayout layout =