drm/amdgpu: fence should be added to shared slot

Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: jammy zhou <jammy.zhou@amd.com>
This commit is contained in:
monk.liu 2015-05-26 15:03:45 +08:00 committed by Alex Deucher
parent cfe2c97807
commit aeb0aeac2e

View file

@ -344,7 +344,7 @@ static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,
if (r)
goto error_free;
amdgpu_bo_fence(bo, ib.fence, false);
amdgpu_bo_fence(bo, ib.fence, true);
error_free:
amdgpu_ib_free(adev, &ib);
@ -462,7 +462,7 @@ int amdgpu_vm_update_page_directory(struct amdgpu_device *adev,
amdgpu_ib_free(adev, &ib);
return r;
}
amdgpu_bo_fence(pd, ib.fence, false);
amdgpu_bo_fence(pd, ib.fence, true);
}
amdgpu_ib_free(adev, &ib);