mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
drm/amd/display: Add frame skip feature support flag
[WHY] The set_replay_frame_skip_number() function should not execute when the link does not support the Frame Skipping feature. [HOW] Add a new field `frame_skip_supported` to struct replay_config to indicate whether the link supports frame skipping. Check this flag at the beginning of set_replay_frame_skip_number() and return early if the feature is not supported. Reviewed-by: Robin Chen <robin.chen@amd.com> Signed-off-by: ChunTao Tso <chuntao.tso@amd.com> Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b0dbd5db7c
commit
9862d2ac66
|
|
@ -1185,6 +1185,8 @@ struct replay_config {
|
|||
bool os_request_force_ffu;
|
||||
/* Replay optimization */
|
||||
union replay_optimization replay_optimization;
|
||||
/* Replay sub feature Frame Skipping is supported */
|
||||
bool frame_skip_supported;
|
||||
};
|
||||
|
||||
/* Replay feature flags*/
|
||||
|
|
|
|||
|
|
@ -984,6 +984,9 @@ void set_replay_frame_skip_number(struct dc_link *link,
|
|||
uint32_t *frame_skip_number_array = NULL;
|
||||
uint32_t frame_skip_number = 0;
|
||||
|
||||
if (false == link->replay_settings.config.frame_skip_supported)
|
||||
return;
|
||||
|
||||
if (link == NULL || flicker_free_refresh_rate_mhz == 0 || coasting_vtotal_refresh_rate_mhz == 0)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user