]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Add a left edge pixel if in YCbCr422 or YCbCr420 and odm
authorPeterson Guo <peterson.guo@amd.com>
Fri, 8 Nov 2024 00:20:02 +0000 (19:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2024 23:35:16 +0000 (18:35 -0500)
commit63e7ee677c74e981257cedfdd8543510d09096ba
tree6b75f5663e9c59be4b2f0e9473899ad48dbe8073
parent55ed120dcfdde2478c3ebfa1c0ac4ed1e430053b
drm/amd/display: Add a left edge pixel if in YCbCr422 or YCbCr420 and odm

[WHY]
On some cards when odm is used, the monitor will have 2 separate pipes
split vertically. When compression is used on the YCbCr colour space on
the second pipe to have correct colours, we need to read a pixel from the
end of first pipe to accurately display colours. Hardware was programmed
properly to account for this extra pixel but it was not calculated
properly in software causing a split screen on some monitors.

[HOW]
The fix adjusts the second pipe's viewport and timings if the pixel
encoding is YCbCr422 or YCbCr420.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: George Shen <george.shen@amd.com>
Signed-off-by: Peterson Guo <peterson.guo@amd.com>
Signed-off-by: Alex Hung <alex.hung@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/resource/dcn20/dcn20_resource.c