mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 01:18:06 +02:00
Revert "radv: remove unnecessary memset() in radv_AllocateCommandBuffers()"
This fixes two CTS regressions:
- dEQP-VK.api.object_management.alloc_callback_fail_multiple.command_buffer_primary
- dEQP-VK.api.object_management.alloc_callback_fail_multiple.command_buffer_secondary
These two tests are part the mustpass lists, so presumably they
are correct and my change was wrong.
This reverts commit 0f68208f1d.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
dc391a406a
commit
1cc00b8e0e
1 changed files with 3 additions and 0 deletions
|
|
@ -2139,6 +2139,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++) {
|
||||
|
||||
if (!list_empty(&pool->free_cmd_buffers)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue