mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
vulkan/wsi: Fix OOM behavior with prime images.
Fixes:d50937f137"vulkan/wsi: Implement prime in a completely generic way" Reviewed-by: Dave Airlie <airlied@redhat.com> (cherry picked from commita3e42e7a69)
This commit is contained in:
parent
fcb04fee1c
commit
3a3e55e5f7
1 changed files with 3 additions and 1 deletions
|
|
@ -429,8 +429,10 @@ wsi_create_prime_image(const struct wsi_swapchain *chain,
|
|||
vk_zalloc(&chain->alloc,
|
||||
sizeof(VkCommandBuffer) * wsi->queue_family_count, 8,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
if (!image->prime.blit_cmd_buffers)
|
||||
if (!image->prime.blit_cmd_buffers) {
|
||||
result = VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < wsi->queue_family_count; i++) {
|
||||
const VkCommandBufferAllocateInfo cmd_buffer_info = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue