mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
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:
parent
f3b15143d2
commit
d5e5a1a734
1 changed files with 0 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue