mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
radv: Remove redundant memset in radv_descriptor_set_create.
The memset below also clears this memory, plus the descriptor set header. Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17127>
This commit is contained in:
parent
7c25c6f04e
commit
ceb3ae2afb
1 changed files with 0 additions and 1 deletions
|
|
@ -648,7 +648,6 @@ radv_descriptor_set_create(struct radv_device *device, struct radv_descriptor_po
|
|||
|
||||
set = (struct radv_descriptor_set *)pool->host_memory_ptr;
|
||||
pool->host_memory_ptr += mem_size;
|
||||
memset(set->descriptors, 0, sizeof(struct radeon_winsys_bo *) * buffer_count);
|
||||
} else {
|
||||
set = vk_alloc2(&device->vk.alloc, NULL, mem_size, 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue