drm/amd/display: dc/dce60: set max_cursor_size to 64
authorMauro Rossi <issor.oruam@gmail.com>
Thu, 18 Jun 2020 22:12:05 +0000 (00:12 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jul 2020 20:46:09 +0000 (16:46 -0400)
[Why]
Issue in the Mouse cursor size in Linux Desktop Environments

[How]
In DCE6 dc->caps.max_cursor_size need to be set as 64 instead of 128

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c

index 18d535c..534db1c 100644 (file)
@@ -970,7 +970,7 @@ static bool dce60_construct(
        pool->base.timing_generator_count = res_cap.num_timing_generator;
        dc->caps.max_downscale_ratio = 200;
        dc->caps.i2c_speed_in_khz = 40;
-       dc->caps.max_cursor_size = 128;
+       dc->caps.max_cursor_size = 64;
        dc->caps.dual_link_dvi = true;
        dc->caps.extended_aux_timeout_support = false;
 
@@ -1164,7 +1164,7 @@ static bool dce61_construct(
        pool->base.timing_generator_count = res_cap_61.num_timing_generator;
        dc->caps.max_downscale_ratio = 200;
        dc->caps.i2c_speed_in_khz = 40;
-       dc->caps.max_cursor_size = 128;
+       dc->caps.max_cursor_size = 64;
        dc->caps.is_apu = true;
 
        /*************************************************
@@ -1361,7 +1361,7 @@ static bool dce64_construct(
        pool->base.timing_generator_count = res_cap_64.num_timing_generator;
        dc->caps.max_downscale_ratio = 200;
        dc->caps.i2c_speed_in_khz = 40;
-       dc->caps.max_cursor_size = 128;
+       dc->caps.max_cursor_size = 64;
        dc->caps.is_apu = true;
 
        /*************************************************