[Mesa-dev] [PATCH] anv: Wrap the device lost error in vk_error in QueueSubmit
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Thu May 18 21:24:38 UTC 2017
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
On 18/05/17 22:09, Jason Ekstrand wrote:
> We weren't wrapping this before because anv_cmd_buffer_execbuf may throw
> a more meaningful error message. However, we do change the error code
> into VK_ERROR_DEVICE_LOST, so we should print a new message.
> ---
> src/intel/vulkan/anv_queue.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c
> index 86eee28..be7fd31 100644
> --- a/src/intel/vulkan/anv_queue.c
> +++ b/src/intel/vulkan/anv_queue.c
> @@ -213,7 +213,7 @@ out:
> * VK_ERROR_DEVICE_LOST to ensure that clients do not attempt to
> * submit the same job again to this device.
> */
> - result = VK_ERROR_DEVICE_LOST;
> + result = vk_errorf(VK_ERROR_DEVICE_LOST, "vkQueueSubmit() failed");
> device->lost = true;
>
> /* If we return VK_ERROR_DEVICE LOST here, we need to ensure that
More information about the mesa-dev
mailing list