|
@@ -286,8 +286,10 @@ static int amdgpu_move_blit(struct ttm_buffer_object *bo,
|
|
|
r = amdgpu_copy_buffer(ring, old_start, new_start,
|
|
|
new_mem->num_pages * PAGE_SIZE, /* bytes */
|
|
|
bo->resv, &fence);
|
|
|
- /* FIXME: handle copy error */
|
|
|
- r = ttm_bo_move_accel_cleanup(bo, fence, evict, new_mem);
|
|
|
+ if (r)
|
|
|
+ return r;
|
|
|
+
|
|
|
+ r = ttm_bo_pipeline_move(bo, fence, evict, new_mem);
|
|
|
fence_put(fence);
|
|
|
return r;
|
|
|
}
|