Skip to content

llvmpipe: query winsys support for dmabuf mapping

Lucas Fryzek requested to merge Hazematman/mesa:lfryzek/fix_mutter_crash into main

llvmpipe: query winsys support for dmabuf mapping

Fixes #11257 (closed) by ensuring winsys mapping functions is only called if its supported by the winsys, which should prevent llvmpipe from crashing with kms_swrast.

In kms_swrast displaytarget_create_mapped is a null function in the winsys, so we can simply check that the function is null and fallback to the original code that was used with kms_swrast in llvmpipe_resource_from_handle.

Merge request reports