Commit b81d44d5 authored by Satyajit Sahu's avatar Satyajit Sahu Committed by Christian König
Browse files

libdrm: amdgpu: Adding DRM_RDWR flag in amdgpu_bo_export

Currently while exporting prime handle to fd read write access is
not granted. mmap fails because of this. mmap was not supported on
prime initially.
Here is link to related discussion

Adding the DRM_RDWR flag in amdgpu_bo_export to support mmap.
Signed-off-by: Satyajit Sahu's avatarSatyajit <>
Acked-by: Christian König's avatarChristian König <>
parent 361d4bff
......@@ -246,8 +246,9 @@ int amdgpu_bo_export(amdgpu_bo_handle bo,
case amdgpu_bo_handle_type_dma_buf_fd:
return drmPrimeHandleToFD(bo->dev->fd, bo->handle, DRM_CLOEXEC,
return drmPrimeHandleToFD(bo->dev->fd, bo->handle,
return -EINVAL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment