diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2020-02-04 20:27:33 -0500 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2020-04-30 11:12:37 +0000 |
commit | 05727548a1fb9a611d58b0b4bd4a028d20f621a3 (patch) | |
tree | b2531bdf0fe40493a85bd6f6ad6b7a8673127ded | |
parent | dd562b1efdd4efcff62f31ad1106b3559931faf1 (diff) | |
download | drm-05727548a1fb9a611d58b0b4bd4a028d20f621a3.tar.gz |
libdrm: intel: add DRM_RDWR flag in drm_intel_bo_gem_export_to_prime
This is similar to b81d44d587d1706d5c7568e539340632a748782b: the
DRM_RDWR flag is needed for mmap to work.
Signed-off-by: Nicholas Bishop <nicholasbishop@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r-- | intel/intel_bufmgr_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c index ade13a4c..023af61f 100644 --- a/intel/intel_bufmgr_gem.c +++ b/intel/intel_bufmgr_gem.c @@ -2728,7 +2728,7 @@ drm_intel_bo_gem_export_to_prime(drm_intel_bo *bo, int *prime_fd) drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo; if (drmPrimeHandleToFD(bufmgr_gem->fd, bo_gem->gem_handle, - DRM_CLOEXEC, prime_fd) != 0) + DRM_CLOEXEC | DRM_RDWR, prime_fd) != 0) return -errno; bo_gem->reusable = false; |