Commit f3bc22f0 authored by Gerd Hoffmann's avatar Gerd Hoffmann

drm/qxl: use QXL_GEM_DOMAIN_SURFACE for dumb gem objects

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: default avatarGerd Hoffmann <kraxel@redhat.com>
Acked-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-10-kraxel@redhat.com
parent 247156d7
...@@ -59,7 +59,7 @@ int qxl_mode_dumb_create(struct drm_file *file_priv, ...@@ -59,7 +59,7 @@ int qxl_mode_dumb_create(struct drm_file *file_priv,
surf.stride = pitch; surf.stride = pitch;
surf.format = format; surf.format = format;
r = qxl_gem_object_create_with_handle(qdev, file_priv, r = qxl_gem_object_create_with_handle(qdev, file_priv,
QXL_GEM_DOMAIN_VRAM, QXL_GEM_DOMAIN_SURFACE,
args->size, &surf, &qobj, args->size, &surf, &qobj,
&handle); &handle);
if (r) if (r)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment