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:
247156d
)
drm/qxl: use QXL_GEM_DOMAIN_SURFACE for dumb gem objects
author
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 18 Jan 2019 12:20:06 +0000
(13:20 +0100)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 28 Jan 2019 13:24:53 +0000
(14:24 +0100)
dumb buffers are used as qxl surfaces, so allocate them 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-10-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_dumb.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_dumb.c
b/drivers/gpu/drm/qxl/qxl_dumb.c
index e3765739c396b0e6f734b7c36c52c5bf40dcc5c0..272d19b677d8f9a10ed118915d2c65b7dcc15696 100644
(file)
--- a/
drivers/gpu/drm/qxl/qxl_dumb.c
+++ b/
drivers/gpu/drm/qxl/qxl_dumb.c
@@
-59,7
+59,7
@@
int qxl_mode_dumb_create(struct drm_file *file_priv,
surf.stride = pitch;
surf.format = format;
r = qxl_gem_object_create_with_handle(qdev, file_priv,
- QXL_GEM_DOMAIN_
VRAM
,
+ QXL_GEM_DOMAIN_
SURFACE
,
args->size, &surf, &qobj,
&handle);
if (r)