From: Kristian Høgsberg Date: Tue, 12 May 2015 21:38:58 +0000 (-0700) Subject: vk: Fix stale error handling in vkQueueSubmit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b7a060178f887c378e47bce08bd48d783febbd2;p=mesa.git vk: Fix stale error handling in vkQueueSubmit --- diff --git a/src/vulkan/device.c b/src/vulkan/device.c index dcd0c380f6c..45a26151604 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -579,7 +579,7 @@ VkResult VKAPI vkQueueSubmit( if (!device->no_hw) { ret = anv_gem_execbuffer(device, &cmd_buffer->execbuf); if (ret != 0) - goto fail; + return vk_error(VK_ERROR_UNKNOWN); for (uint32_t i = 0; i < cmd_buffer->bo_count; i++) cmd_buffer->exec2_bos[i]->offset = cmd_buffer->exec2_objects[i].offset; @@ -589,11 +589,6 @@ VkResult VKAPI vkQueueSubmit( } return VK_SUCCESS; - - fail: - pthread_mutex_unlock(&device->mutex); - - return vk_error(VK_ERROR_UNKNOWN); } VkResult VKAPI vkQueueAddMemReferences(