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: 92022f2846 (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 <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7474>
This commit is contained in:
committed by
Marge Bot
parent
0b53ca0cca
commit
10d44fec2d
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user