Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/vkms: change the max cursor width/height

This change expands the coverage for the IGT kms_cursor_crc test, where
the size varies between 64 and 512 for a square cursor. With this, in
addition to the cursor 64x64, this patch enables the test of cursors with
sizes: 128x128, 256x256, and 512x512.

Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Reviewed-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200710160313.xjoz6ereyma5vkc3@smtp.gmail.com

authored by

Melissa Wen and committed by
Rodrigo Siqueira
06a28f90 a6ae2fe5

+2
+2
drivers/gpu/drm/vkms/vkms_drv.c
··· 133 133 dev->mode_config.min_height = YRES_MIN; 134 134 dev->mode_config.max_width = XRES_MAX; 135 135 dev->mode_config.max_height = YRES_MAX; 136 + dev->mode_config.cursor_width = 512; 137 + dev->mode_config.cursor_height = 512; 136 138 dev->mode_config.preferred_depth = 24; 137 139 dev->mode_config.helper_private = &vkms_mode_config_helpers; 138 140