Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2019-10-01 08:53:33 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2019-10-01 08:53:33 +0200
commite87e10d4ae5c3756306c1cbf9640cd9af94dc26b (patch)
tree61bd5160f21a951392a4ac696828fa7244103cb6
parent732a22f70355de85f027593f0812dfe333320147 (diff)
drm/mgag200: Pin displayed cursor BO to video memory (bsc#1152472)
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_cursor.c b/drivers/gpu/drm/mgag200/mgag200_cursor.c
index 117eaedec7aa..ac3b052ba03d 100644
--- a/drivers/gpu/drm/mgag200/mgag200_cursor.c
+++ b/drivers/gpu/drm/mgag200/mgag200_cursor.c
@@ -98,7 +98,7 @@ int mga_crtc_cursor_set(struct drm_crtc *crtc,
}
/* Pin and map up-coming buffer to write colour indices */
- ret = drm_gem_vram_pin(pixels_next, 0);
+ ret = drm_gem_vram_pin(pixels_next, DRM_GEM_VRAM_PL_FLAG_VRAM);
if (ret) {
dev_err(&dev->pdev->dev,
"failed to pin cursor buffer: %d\n", ret);