Module: Mesa Branch: main Commit: de01a47b1c6d1fa53d696bf3be8d83e1eb303e41 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=de01a47b1c6d1fa53d696bf3be8d83e1eb303e41
Author: Mike Blumenkrantz <[email protected]> Date: Fri Mar 18 09:45:56 2022 -0400 lavapipe: zalloc pipeline layout structs Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15457> --- src/gallium/frontends/lavapipe/lvp_descriptor_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_descriptor_set.c b/src/gallium/frontends/lavapipe/lvp_descriptor_set.c index 4cc2ca00bbf..b09b9abbd04 100644 --- a/src/gallium/frontends/lavapipe/lvp_descriptor_set.c +++ b/src/gallium/frontends/lavapipe/lvp_descriptor_set.c @@ -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);
