lavapipe: zalloc pipeline layout structs

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15457>
This commit is contained in:
Mike Blumenkrantz 2022-03-18 09:45:56 -04:00 committed by Marge Bot
parent 08732eca5d
commit de01a47b1c

View file

@ -246,7 +246,7 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_CreatePipelineLayout(
assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO);
layout = vk_alloc(&device->vk.alloc, sizeof(*layout), 8,
layout = vk_zalloc(&device->vk.alloc, sizeof(*layout), 8,
VK_SYSTEM_ALLOCATION_SCOPE_DEVICE);
if (layout == NULL)
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);