mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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:
parent
0b53ca0cca
commit
10d44fec2d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue