there's better checks for this now, so the weird pNext handling here
can be simplified
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11967>
NULL,
};
- if (whandle && whandle->type == WINSYS_HANDLE_TYPE_FD) {
+ if (whandle) {
imfi.pNext = NULL;
imfi.handleType = external;
imfi.fd = os_dupfd_cloexec(whandle->handle);
}
imfi.pNext = mai.pNext;
- emai.pNext = &imfi;
+ mai.pNext = &imfi;
}
struct wsi_memory_allocate_info memory_wsi_info = {