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:
Marek Olšák 2016-08-05 01:18:08 +02:00
parent ef836c0d04
commit 8276776e64
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}