lavapipe: zalloc lvp_image_view structs

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15462>
This commit is contained in:
Mike Blumenkrantz
2022-02-22 15:26:06 -05:00
committed by Marge Bot
parent 4a13b11f4a
commit 47209e80db
+1 -1
View File
@@ -178,7 +178,7 @@ lvp_CreateImageView(VkDevice _device,
LVP_FROM_HANDLE(lvp_image, image, pCreateInfo->image);
struct lvp_image_view *view;
view = vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*view), 8,
view = vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*view), 8,
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
if (view == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);