Commit 5b7a2c92 authored by Nirmoy Das's avatar Nirmoy Das Committed by Christian König
Browse files

drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move

parent fbbf23dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -733,7 +733,7 @@ static int vmw_move(struct ttm_buffer_object *bo,

	if (old_man->use_tt && new_man->use_tt) {
		if (bo->resource->mem_type == TTM_PL_SYSTEM) {
			ttm_bo_assign_mem(bo, new_mem);
			ttm_bo_move_null(bo, new_mem);
			return 0;
		}
		ret = ttm_bo_wait_ctx(bo, ctx);