llvmpipe: query winsys support for dmabuf mapping
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
.