diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-02-04 17:57:11 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-02-05 11:02:40 +0300 |
commit | f4a84e165e6d58606097dd07b5b78767a94b870c (patch) | |
tree | 15e2edcb76470c9809bb7cf6fd8e5a01db12ec79 /drivers/gpu/drm/qxl | |
parent | 5a838e5d5825c85556011478abde708251cc0776 (diff) | |
download | linux-f4a84e165e6d58606097dd07b5b78767a94b870c.tar.xz |
drm/qxl: allocate dumb buffers in ram
dumb buffers are shadowed anyway, so there is no need to store them
in device memory. Use QXL_GEM_DOMAIN_CPU (TTM_PL_SYSTEM) instead.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20210204145712.1531203-11-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_dumb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_dumb.c b/drivers/gpu/drm/qxl/qxl_dumb.c index c04cd5a2553c..48a58ba1db96 100644 --- 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_SURFACE, + QXL_GEM_DOMAIN_CPU, args->size, &surf, &qobj, &handle); if (r) |