mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
anv: Return better errors from AllocateDescriptorSets
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
99bb4c22a5
commit
756533520e
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue