drm/amd/display: Disable replay if VRR capability is false
[ Upstream commit b68417613d ]
[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
257f283bfe
commit
d43ced9787
@@ -12240,6 +12240,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);
|
||||
|
||||
Reference in New Issue
Block a user