diff options
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_object.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_object.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_object.c b/drivers/gpu/drm/qxl/qxl_object.c index d9b12e7bc6e1..1191fe7788c9 100644 --- a/drivers/gpu/drm/qxl/qxl_object.c +++ b/drivers/gpu/drm/qxl/qxl_object.c | |||
@@ -363,3 +363,13 @@ int qxl_bo_list_add(struct qxl_reloc_list *reloc_list, struct qxl_bo *bo) | |||
363 | return ret; | 363 | return ret; |
364 | return 0; | 364 | return 0; |
365 | } | 365 | } |
366 | |||
367 | int qxl_surf_evict(struct qxl_device *qdev) | ||
368 | { | ||
369 | return ttm_bo_evict_mm(&qdev->mman.bdev, TTM_PL_PRIV0); | ||
370 | } | ||
371 | |||
372 | int qxl_vram_evict(struct qxl_device *qdev) | ||
373 | { | ||
374 | return ttm_bo_evict_mm(&qdev->mman.bdev, TTM_PL_VRAM); | ||
375 | } | ||