Skip to content

Commit deb1102

Browse files
Tom Chungalexdeucher
authored andcommitted
drm/amd/display: Preserve original aspect ratio in create stream
[Why] The original picture aspect ratio in mode struct may have chance be overwritten with wrong aspect ratio data in create_stream_for_sink(). It will create a different VIC output and cause HDMI compliance test failed. [How] Preserve the original picture aspect ratio data during create the stream. Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Cc: [email protected] Reviewed-by: Aurabindo Pillai <[email protected]> Signed-off-by: Tom Chung <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent a589fa1 commit deb1102

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6199,7 +6199,9 @@ create_stream_for_sink(struct drm_connector *connector,
61996199
if (recalculate_timing) {
62006200
freesync_mode = get_highest_refresh_rate_mode(aconnector, false);
62016201
drm_mode_copy(&saved_mode, &mode);
6202+
saved_mode.picture_aspect_ratio = mode.picture_aspect_ratio;
62026203
drm_mode_copy(&mode, freesync_mode);
6204+
mode.picture_aspect_ratio = saved_mode.picture_aspect_ratio;
62036205
} else {
62046206
decide_crtc_timing_for_drm_display_mode(
62056207
&mode, preferred_mode, scale);

0 commit comments

Comments
 (0)