summaryrefslogtreecommitdiffstats
path: root/src/freedreno/drm/msm_bo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/freedreno/drm/msm_bo.c')
-rw-r--r--src/freedreno/drm/msm_bo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/freedreno/drm/msm_bo.c b/src/freedreno/drm/msm_bo.c
index fd9955ea805..da2609903c1 100644
--- a/src/freedreno/drm/msm_bo.c
+++ b/src/freedreno/drm/msm_bo.c
@@ -166,6 +166,9 @@ int msm_bo_new_handle(struct fd_device *dev,
if (flags & DRM_FREEDRENO_GEM_SCANOUT)
req.flags |= MSM_BO_SCANOUT;
+ if (flags & DRM_FREEDRENO_GEM_GPUREADONLY)
+ req.flags |= MSM_BO_GPU_READONLY;
+
ret = drmCommandWriteRead(dev->fd, DRM_MSM_GEM_NEW,
&req, sizeof(req));
if (ret)