diff options
author | Francisco Jerez <currojerez@riseup.net> | 2009-12-11 12:40:17 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2009-12-16 02:05:26 -0500 |
commit | 22fbd53809eb7a1b00fe09159fe0a565fb6c725c (patch) | |
tree | 7cd5b9d5d0a7ec9bb8fe69a7abc5ef0c7519a19e | |
parent | c5804be0627508487bd9eacebf9de7f807e5d4e7 (diff) |
drm/nouveau: Fix up buffer eviction, and evict them to GART, if possible.
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-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 | ||