Commit 75653352 authored by Jason Ekstrand's avatar Jason Ekstrand
Browse files

anv: Return better errors from AllocateDescriptorSets


Reviewed-by: Iago Toral's avatarIago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent 99bb4c22
......@@ -432,8 +432,13 @@ anv_descriptor_set_create(struct anv_device *device,
}
}
if (set == NULL)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
if (set == NULL) {
if (pool->free_list != EMPTY) {
return vk_error(VK_ERROR_FRAGMENTED_POOL);
} else {
return vk_error(VK_ERROR_OUT_OF_POOL_MEMORY_KHR);
}
}
set->size = size;
set->layout = layout;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment