drm/amd/display: report cursor size base on the ASIC
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>
This commit is contained in:
parent
27e947b0e1
commit
a37656b99a
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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] =
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue