anv: Remove duplicated memset() in physical device creation

device is allocated with vk_zalloc() that zeroes the allocated memory.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17961>
This commit is contained in:
José Roberto de Souza 2022-08-08 12:17:25 -07:00 committed by Marge Bot
parent f3b15143d2
commit d5e5a1a734

View file

@ -871,11 +871,6 @@ anv_physical_device_try_create(struct anv_instance *instance,
device->supports_48bit_addresses = (device->info.ver >= 8) &&
device->gtt_size > (4ULL << 30 /* GiB */);
/* Initialize memory regions struct to 0. */
memset(&device->vram_non_mappable, 0, sizeof(device->vram_non_mappable));
memset(&device->vram_mappable, 0, sizeof(device->vram_mappable));
memset(&device->sys, 0, sizeof(device->sys));
result = anv_physical_device_init_heaps(device, fd);
if (result != VK_SUCCESS)
goto fail_base;