diff options
author | Lyude Paul <[email protected]> | 2021-01-18 20:54:13 -0500 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2021-01-29 11:03:11 +1000 |
commit | d3b2f0f7921c75b5f0de50e618e4bd165fded3e1 (patch) | |
tree | 3d6e37b6a9257510f0a5c73569ee2a270088e041 | |
parent | 7c6d659868c77da9b518f32348160340dcdfa008 (diff) |
drm/nouveau/kms/nv50-: Report max cursor size to userspace
Cc: Martin Peres <[email protected]>
Cc: Jeremy Cline <[email protected]>
Cc: Simon Ser <[email protected]>
Signed-off-by: Lyude Paul <[email protected]>
Tested-by: Simon Ser <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/disp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index c6367035970e..5f4f09a601d4 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; |