From: Lyude Paul Date: Tue, 19 Jan 2021 01:54:13 +0000 (-0500) Subject: drm/nouveau/kms/nv50-: Report max cursor size to userspace X-Git-Tag: accepted/tizen/unified/20230118.172025~7990^2~3^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3b2f0f7921c75b5f0de50e618e4bd165fded3e1;p=platform%2Fkernel%2Flinux-rpi.git drm/nouveau/kms/nv50-: Report max cursor size to userspace Cc: Martin Peres Cc: Jeremy Cline Cc: Simon Ser Signed-off-by: Lyude Paul Tested-by: Simon Ser Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index c636703..5f4f09a 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -2663,6 +2663,14 @@ nv50_display_create(struct drm_device *dev) else nouveau_display(dev)->format_modifiers = disp50xx_modifiers; + if (disp->disp->object.oclass >= GK104_DISP) { + dev->mode_config.cursor_width = 256; + dev->mode_config.cursor_height = 256; + } else { + dev->mode_config.cursor_width = 64; + dev->mode_config.cursor_height = 64; + } + /* create crtc objects to represent the hw heads */ if (disp->disp->object.oclass >= GV100_DISP) crtcs = nvif_rd32(&device->object, 0x610060) & 0xff;