diff options
author | Jason Ekstrand <[email protected]> | 2017-05-18 14:07:27 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-05-18 16:32:11 -0700 |
commit | 53f997de77357cd5fbeca3d167729793d188aab6 (patch) | |
tree | 31bc374831a95bcc758a1478b181193b53f9a895 /src/intel/vulkan/anv_queue.c | |
parent | 807e1d257707a37850a150d12a1d6878c3b13d5d (diff) |
anv: Wrap the device lost error in vk_error in QueueSubmit
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.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_queue.c')
-rw-r--r-- | src/intel/vulkan/anv_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c index fac979a52c0..94c34c5d5af 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 |