Fixes: 949ce92 ("vulkan: Add a base struct for descriptor set layouts")
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17818>
*/
struct vk_descriptor_set_layout *layout =
vk_zalloc(&device->alloc, size, 8, VK_SYSTEM_ALLOCATION_SCOPE_DEVICE);
+ if (!layout)
+ return NULL;
vk_descriptor_set_layout_init(device, layout);
struct vk_descriptor_set_layout *layout =
vk_multialloc_zalloc(ma, &device->alloc,
VK_SYSTEM_ALLOCATION_SCOPE_DEVICE);
+ if (!layout)
+ return NULL;
vk_descriptor_set_layout_init(device, layout);