Skip to content

Commit 5b7a2c9

Browse files
Nirmoy DasChristianKoenigAMD
authored andcommitted
drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move
Use ttm_bo_move_null() instead of ttm_bo_assign_mem(). Signed-off-by: Nirmoy Das <[email protected]> Reviewed-by: Christian König <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Christian König <[email protected]>
1 parent fbbf23d commit 5b7a2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ static int vmw_move(struct ttm_buffer_object *bo,
733733

734734
if (old_man->use_tt && new_man->use_tt) {
735735
if (bo->resource->mem_type == TTM_PL_SYSTEM) {
736-
ttm_bo_assign_mem(bo, new_mem);
736+
ttm_bo_move_null(bo, new_mem);
737737
return 0;
738738
}
739739
ret = ttm_bo_wait_ctx(bo, ctx);

0 commit comments

Comments
 (0)