diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 13:20:05 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-28 14:24:52 +0100 |
commit | 247156d7e2fadb0af9bb8e71db5a86c0e9204f7d (patch) | |
tree | 399cd25136a4f84f41cb3b80317a769f0dbe151b /drivers/gpu/drm/qxl | |
parent | 6957c6867baa104029904a2cf354227a182ca735 (diff) | |
download | linux-stable-247156d7e2fadb0af9bb8e71db5a86c0e9204f7d.tar.gz linux-stable-247156d7e2fadb0af9bb8e71db5a86c0e9204f7d.tar.bz2 linux-stable-247156d7e2fadb0af9bb8e71db5a86c0e9204f7d.zip |
drm/qxl: use QXL_GEM_DOMAIN_SURFACE for shadow bo.
The shadow bo is used as qxl surface, so allocate it as
QXL_GEM_DOMAIN_SURFACE. Should usually be allocated in
PRIV ttm domain then, so this reduces VRAM memory pressure.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-9-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 401b4bfd2f00..c4dd71a80c2f 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c @@ -758,7 +758,7 @@ static int qxl_plane_prepare_fb(struct drm_plane *plane, user_bo->shadow = old_bo->shadow; } else { qxl_bo_create(qdev, user_bo->gem_base.size, - true, true, QXL_GEM_DOMAIN_VRAM, NULL, + true, true, QXL_GEM_DOMAIN_SURFACE, NULL, &user_bo->shadow); } } |