Commit b6841761 authored by Tom Chung's avatar Tom Chung Committed by Alex Deucher

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: default avatarWayne Lin <wayne.lin@amd.com>
Signed-off-by: default avatarJerry Zuo <jerry.zuo@amd.com>
Signed-off-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e84f798a
...@@ -12145,6 +12145,12 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector, ...@@ -12145,6 +12145,12 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,
if (dm_con_state) if (dm_con_state)
dm_con_state->freesync_capable = freesync_capable; 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) if (connector->vrr_capable_property)
drm_connector_set_vrr_capable_property(connector, drm_connector_set_vrr_capable_property(connector,
freesync_capable); freesync_capable);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment