mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radv: remove unnecessary memset() in radv_AllocateCommandBuffers()
This should not be needed, if the allocation fails an error is returned and the host should handle it. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
66da4c75bc
commit
0f68208f1d
1 changed files with 0 additions and 3 deletions
|
|
@ -2142,9 +2142,6 @@ 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