Skip to content

Commit

Permalink
drm/qxl: allocate dumb buffers in ram
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Gerd Hoffmann committed Feb 5, 2021
1 parent 5a838e5 commit f4a84e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/qxl/qxl_dumb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4a84e1

Please sign in to comment.