projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6957c68
)
drm/qxl: use QXL_GEM_DOMAIN_SURFACE for shadow bo.
author
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 18 Jan 2019 12:20:05 +0000
(13:20 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 28 Jan 2019 13:24:52 +0000
(14:24 +0100)
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
drivers/gpu/drm/qxl/qxl_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_display.c
b/drivers/gpu/drm/qxl/qxl_display.c
index 401b4bfd2f009da3bc7f189f255bf5ab177750c1..c4dd71a80c2fa7c420a4119ceed4f960049071fd 100644
(file)
--- 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);
}
}