Skip to content

Commit a9466f6

Browse files
Timur Kristófalexdeucher
authored andcommitted
drm/amd/display: Don't add freesync modes to analog displays (v2)
VRR is not supported on analog signals. Don't add freesync modes to analog displays or when VRR is unsupported by DC. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 70181ad commit a9466f6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8662,6 +8662,10 @@ static void amdgpu_dm_connector_add_freesync_modes(struct drm_connector *connect
86628662
if (!(amdgpu_freesync_vid_mode && drm_edid))
86638663
return;
86648664

8665+
if (!amdgpu_dm_connector->dc_sink || amdgpu_dm_connector->dc_sink->edid_caps.analog ||
8666+
!dc_supports_vrr(amdgpu_dm_connector->dc_sink->ctx->dce_version))
8667+
return;
8668+
86658669
if (amdgpu_dm_connector->max_vfreq - amdgpu_dm_connector->min_vfreq > 10)
86668670
amdgpu_dm_connector->num_modes +=
86678671
add_fs_modes(amdgpu_dm_connector);

0 commit comments

Comments
 (0)