From 2b7a060178f887c378e47bce08bd48d783febbd2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 12 May 2015 14:38:58 -0700 Subject: [PATCH] vk: Fix stale error handling in vkQueueSubmit --- src/vulkan/device.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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( -- 2.30.2