drm/amd/display: report cursor size base on the ASIC
authorTony Cheng <tony.cheng@amd.com>
Thu, 9 Feb 2017 03:13:52 +0000 (22:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:14:31 +0000 (17:14 -0400)
Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c

index d7f848495d8a7e1c3712ee7112a1d026aeaa6d01..13e7134fccb8f2d5b77ddbd0992325c84a441021 100644 (file)
@@ -47,6 +47,8 @@ struct dc_caps {
        uint32_t max_slave_planes;
        uint32_t max_downscale_ratio;
        uint32_t i2c_speed_in_khz;
+
+       unsigned int max_cursor_size;
 };
 
 
index 55501b381692c0622ba3b9303c431689a54aadd4..9ed7c06132fe113320aff37f1c251def59f4d6c9 100644 (file)
@@ -984,6 +984,7 @@ static bool construct(
        pool->base.pipe_count = res_cap.num_timing_generator;
        dc->public.caps.max_downscale_ratio = 200;
        dc->public.caps.i2c_speed_in_khz = 40;
+       dc->public.caps.max_cursor_size = 128;
 
        for (i = 0; i < pool->base.pipe_count; i++) {
                pool->base.timing_generators[i] =
index ee4fda514de6a396edd7e6b9fba4663ee80445f4..f6e546addbd3a8c0213924d7953dbd2f1fd222b1 100644 (file)
@@ -1274,6 +1274,7 @@ static bool construct(
 
        dc->public.caps.max_downscale_ratio = 150;
        dc->public.caps.i2c_speed_in_khz = 100;
+       dc->public.caps.max_cursor_size = 128;
 
        /*************************************************
         *  Create resources                             *
index 54af84ebf2bc42699d3e611fb5e51555ab92d043..526c106f6ebf5397a060fd8fbcaf2286721964f7 100644 (file)
@@ -1256,6 +1256,7 @@ static bool construct(
        pool->base.pipe_count = pool->base.res_cap->num_timing_generator;
        dc->public.caps.max_downscale_ratio = 200;
        dc->public.caps.i2c_speed_in_khz = 100;
+       dc->public.caps.max_cursor_size = 128;
 
        /*************************************************
         *  Create resources                             *
index 3de8bfb47dcebe28b90338a9120752bd0379f26a..272c7fc3140688496541ca043065e9f36b39f953 100644 (file)
@@ -935,6 +935,7 @@ static bool construct(
        pool->base.pipe_count = res_cap.num_timing_generator;
        dc->public.caps.max_downscale_ratio = 200;
        dc->public.caps.i2c_speed_in_khz = 40;
+       dc->public.caps.max_cursor_size = 128;
 
        /*************************************************
         *  Create resources                             *