kms-swrast: export dmabufs with DRM_RDWR

This is required for the dmabufs to be usable with llvmpipe.

Fixes #13609

Signed-off-by: Julian Orth <ju.orth@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37088>
This commit is contained in:
Julian Orth 2025-08-29 17:39:50 +02:00 committed by Marge Bot
parent dfcdae378a
commit efc2bb64ce

View file

@ -517,7 +517,7 @@ kms_sw_displaytarget_get_handle(struct sw_winsys *winsys,
return true;
case WINSYS_HANDLE_TYPE_FD:
if (!drmPrimeHandleToFD(kms_sw->fd, kms_sw_dt->handle,
DRM_CLOEXEC, (int*)&whandle->handle)) {
DRM_CLOEXEC | DRM_RDWR, (int*)&whandle->handle)) {
whandle->stride = plane->stride;
whandle->offset = plane->offset;
return true;