]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: make ODM segment width of YCbCr422 two pixel aligned
authorWenjing Liu <wenjing.liu@amd.com>
Thu, 30 May 2024 21:13:02 +0000 (17:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:18:25 +0000 (16:18 -0400)
commite27ffc2fe8f41ef37c256a145292bc52ed304d9d
treea6ab408ace7b5758b02dafcae5371457eb2d22c8
parent4316107bd083feeaa3b7af71d32be9dc4b2e0fc9
drm/amd/display: make ODM segment width of YCbCr422 two pixel aligned

[why]
In YCbCr422 format hardware shares 1 set of chromas CbCr with 2 sets of
lumas Y. Therefore each ODM segment needs to be two pixel aligned. The
commit adds this missing hardwware requirement into ODM segment width
decision logic.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@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/core/dc_resource.c