From 10d44fec2dd353c2926ae882af47df3ec3b10ea2 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Fri, 6 Nov 2020 14:07:45 +0100 Subject: [PATCH] zink: fix pNext chain for resource memory allocation This only links the VkImportMemoryFdInfoKHR struct into the pNext chain when VkExportMemoryAllocateInfo is also included, which was the original behavior before the regression. Fixes: 92022f2846e00 (zink: add VK_STRUCTURE_TYPE_WSI_MEMORY_ALLOCATE_INFO_MESA for WSI allocations) Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3755 Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/zink_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 99bcd579f27..6e78236a912 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -277,7 +277,7 @@ resource_create(struct pipe_screen *pscreen, imfi.fd = whandle->handle; imfi.pNext = mai.pNext; - mai.pNext = &imfi; + emai.pNext = &imfi; } struct wsi_memory_allocate_info memory_wsi_info = {