drm/qxl: use QXL_GEM_DOMAIN_SURFACE for dumb gem objects
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Jan 2019 12:20:06 +0000 (13:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Jan 2019 13:24:53 +0000 (14:24 +0100)
commitf3bc22f04d44bdb94c3cfb4ad8970139d9df8252
tree6d7f124b3fbad5580f5bdb28c623975a31d90eda
parent247156d7e2fadb0af9bb8e71db5a86c0e9204f7d
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: 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