Message ID | 20191230031521.9891-5-po-hsu.lin@canonical.com |
---|---|
State | New |
Headers | show |
Series | Fix for mgag200 invisible cursor issue | expand |
diff --git a/drivers/gpu/drm/mgag200/mgag200_cursor.c b/drivers/gpu/drm/mgag200/mgag200_cursor.c index 7588d90..29ef932 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);