winsys/amdgpu: don't try to unmap userptr buffers
no app calls this AFAIK Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
ef836c0d04
commit
8276776e64
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue