mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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:
@ -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