[Mesa-dev] [PATCH 5/6] anv: Return better errors from AllocateDescriptorSets
Ilia Mirkin
imirkin at alum.mit.edu
Mon Jan 23 22:27:38 UTC 2017
On Mon, Jan 23, 2017 at 5:12 PM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> ---
> src/intel/vulkan/anv_descriptor_set.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c
> index a5e65af..2d9734d 100644
> --- a/src/intel/vulkan/anv_descriptor_set.c
> +++ b/src/intel/vulkan/anv_descriptor_set.c
> @@ -432,8 +432,12 @@ 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_MEMOR_KHR);
Shouldn't this be MEMORY?
> + }
>
> set->size = size;
> set->layout = layout;
> --
> 2.5.0.400.gff86faf
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list