Vulkan: Fix Out of Resources Crash #108416

Merged
Jeroen Bakker merged 1 commits from Jeroen-Bakker/blender:vulkan-crash-out-of-resources into main 2023-05-30 13:48:22 +02:00

1 Commits

Author SHA1 Message Date
Jeroen Bakker 73ca4cd20e Vulkan: Fix Out of Resources Crash
When a descriptor pool cannot allocate a descriptor set in stead
of resulting `VK_ERROR_OUT_OF_POOL_MEMORY` it is adviced that
drivers will return `VK_ERROR_FRAGMENTED_POOL`.

Before this PR the Vulkan Backend crashed as it only checked the
out of pool memory. According to the Vulkan specification it is
adviced to driver developers to report fragmented pool.

The crash happened as no new pool was allocated and no descriptor
set could be allocated anymore.

This change improved the reliability of the vulkan backend to be
able draw an animation in the 3d viewport for half an hour without
crashing. Before this change Blender would crash in a few seconds.
2023-05-30 12:38:37 +02:00