drm/amd/display: Disable replay if VRR capability is false

[Why]
The VRR need to be supported for panel replay feature.
If VRR capability is false, panel replay capability also
need to be disabled.

[How]
After update the vrr capability, the panel replay capability
also need to be check if need.

Reviewed-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Tom Chung 2024-06-26 16:14:24 +08:00 committed by Alex Deucher
parent e84f798a93
commit b68417613d

View File

@ -12145,6 +12145,12 @@ update:
if (dm_con_state)
dm_con_state->freesync_capable = freesync_capable;
if (connector->state && amdgpu_dm_connector->dc_link && !freesync_capable &&
amdgpu_dm_connector->dc_link->replay_settings.config.replay_supported) {
amdgpu_dm_connector->dc_link->replay_settings.config.replay_supported = false;
amdgpu_dm_connector->dc_link->replay_settings.replay_feature_enabled = false;
}
if (connector->vrr_capable_property)
drm_connector_set_vrr_capable_property(connector,
freesync_capable);