Mesa (master): radv: vkAllocateCommandBuffers should NULL all output handles
Bas Nieuwenhuizen
bnieuwenhuizen at kemper.freedesktop.org
Mon Jan 30 07:44:56 UTC 2017
Module: Mesa
Branch: master
Commit: e199a993b2eb13319691b690af8f52bf8a0016b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e199a993b2eb13319691b690af8f52bf8a0016b8
Author: Andres Rodriguez <andresx7 at gmail.com>
Date: Fri Jan 27 00:03:03 2017 -0500
radv: vkAllocateCommandBuffers should NULL all output handles
This is part of the spec and fixes CTS tests:
dEQP-VK.api.object_management.alloc_callback_fail_multiple.command_buffer_*
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/amd/vulkan/radv_cmd_buffer.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index a83090f..c4e8324 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -1351,6 +1351,9 @@ VkResult radv_AllocateCommandBuffers(
VkResult result = VK_SUCCESS;
uint32_t i;
+ memset(pCommandBuffers, 0,
+ sizeof(*pCommandBuffers)*pAllocateInfo->commandBufferCount);
+
for (i = 0; i < pAllocateInfo->commandBufferCount; i++) {
result = radv_create_cmd_buffer(device, pool, pAllocateInfo->level,
&pCommandBuffers[i]);
More information about the mesa-commit
mailing list