summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-08-05 01:18:08 +0200
committerMarek Olšák <[email protected]>2016-08-10 01:11:10 +0200
commit8276776e645fa25a1cbac2aa7d52a319ffdc2d9a (patch)
tree4c9d08f109aad0f08d7687b41b4c2159f7594df4 /src/gallium
parentef836c0d045e0992f55f8d802be8165425f10978 (diff)
winsys/amdgpu: don't try to unmap userptr buffers
no app calls this AFAIK Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_bo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
index 1805ce61fe1..db2c77fec0d 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
@@ -264,6 +264,9 @@ static void amdgpu_bo_unmap(struct pb_buffer *buf)
{
struct amdgpu_winsys_bo *bo = (struct amdgpu_winsys_bo*)buf;
+ if (bo->user_ptr)
+ return;
+
amdgpu_bo_cpu_unmap(bo->bo);
}