diff options
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index aa2dfbc3e351..e9f01906c52e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c | |||
@@ -400,10 +400,16 @@ nouveau_bo_evict_flags(struct ttm_buffer_object *bo, struct ttm_placement *pl) | |||
400 | struct nouveau_bo *nvbo = nouveau_bo(bo); | 400 | struct nouveau_bo *nvbo = nouveau_bo(bo); |
401 | 401 | ||
402 | switch (bo->mem.mem_type) { | 402 | switch (bo->mem.mem_type) { |
403 | case TTM_PL_VRAM: | ||
404 | nouveau_bo_placement_set(nvbo, TTM_PL_FLAG_TT | | ||
405 | TTM_PL_FLAG_SYSTEM); | ||
406 | break; | ||
403 | default: | 407 | default: |
404 | nouveau_bo_placement_set(nvbo, TTM_PL_FLAG_SYSTEM); | 408 | nouveau_bo_placement_set(nvbo, TTM_PL_FLAG_SYSTEM); |
405 | break; | 409 | break; |
406 | } | 410 | } |
411 | |||
412 | *pl = nvbo->placement; | ||
407 | } | 413 | } |
408 | 414 | ||
409 | 415 | ||