diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-02-26 12:20:31 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-02-26 12:20:31 +0000 |
commit | 9b2e362559110085d2ff9b90fea11fa81e704a78 (patch) | |
tree | b114259e6fecf369e1e7b90f3bb8116fa08b1cf1 /lib/mesa/src/intel/vulkan/anv_cmd_buffer.c | |
parent | b5fce4e6eb297a6f7fabd0d6c6b4ffdfefa6ad8b (diff) |
Import Mesa 13.0.5
Diffstat (limited to 'lib/mesa/src/intel/vulkan/anv_cmd_buffer.c')
-rw-r--r-- | lib/mesa/src/intel/vulkan/anv_cmd_buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/mesa/src/intel/vulkan/anv_cmd_buffer.c b/lib/mesa/src/intel/vulkan/anv_cmd_buffer.c index 44ae67d01..994aec996 100644 --- a/lib/mesa/src/intel/vulkan/anv_cmd_buffer.c +++ b/lib/mesa/src/intel/vulkan/anv_cmd_buffer.c @@ -288,9 +288,12 @@ VkResult anv_AllocateCommandBuffers( break; } - if (result != VK_SUCCESS) + if (result != VK_SUCCESS) { anv_FreeCommandBuffers(_device, pAllocateInfo->commandPool, i, pCommandBuffers); + for (i = 0; i < pAllocateInfo->commandBufferCount; i++) + pCommandBuffers[i] = VK_NULL_HANDLE; + } return result; } |