]> www.infradead.org Git - users/hch/misc.git/commit
drm/amd/display: Fix swapped dimension calculations
authorJoshua Aberback <joshua.aberback@amd.com>
Mon, 13 May 2024 18:05:58 +0000 (14:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 15:05:14 +0000 (11:05 -0400)
commite86e8798d3655d17ff6adf63191613d4b96bd294
tree5448ef86b6ed411a9619bfe72e787528e1543226
parent57c4982169dfca65ed35081228857312dfa04c4c
drm/amd/display: Fix swapped dimension calculations

[Why]
The values calculated in optc1_get_otg_active_size are assigned to the
wrong output parameters, vertical blank is being used for horizontal size
and vice versa. This results in DPG test pattern looking wrong during
hardware init, as the DPG dimensions get assigned from this output, and
potentially other issues.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c