mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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:
parent
e84f798a93
commit
b68417613d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user