UPSTREAM: 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.

TEST=Chrome booted to UI and passed graphics_Gbm autotest

Change-Id: I4791653031d5a5003263282ad3dca5f7159a5391
Signed-off-by: Satyajit <>
Commit-Ready: ChromeOS CL Exonerator Bot <>
Tested-by: Satyajit Sahu <>
Reviewed-by: Gurchetan Singh <>
1 file changed