mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
dfcdae378a
commit
efc2bb64ce
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue