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:
parent
cfe2c97807
commit
aeb0aeac2e
|
@ -344,7 +344,7 @@ static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,
|
||||||
if (r)
|
if (r)
|
||||||
goto error_free;
|
goto error_free;
|
||||||
|
|
||||||
amdgpu_bo_fence(bo, ib.fence, false);
|
amdgpu_bo_fence(bo, ib.fence, true);
|
||||||
|
|
||||||
error_free:
|
error_free:
|
||||||
amdgpu_ib_free(adev, &ib);
|
amdgpu_ib_free(adev, &ib);
|
||||||
|
@ -462,7 +462,7 @@ int amdgpu_vm_update_page_directory(struct amdgpu_device *adev,
|
||||||
amdgpu_ib_free(adev, &ib);
|
amdgpu_ib_free(adev, &ib);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
amdgpu_bo_fence(pd, ib.fence, false);
|
amdgpu_bo_fence(pd, ib.fence, true);
|
||||||
}
|
}
|
||||||
amdgpu_ib_free(adev, &ib);
|
amdgpu_ib_free(adev, &ib);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue