]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: add support for chroma offset
authorSamson Tam <samson.tam@amd.com>
Mon, 1 Apr 2024 17:51:58 +0000 (13:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 01:24:08 +0000 (21:24 -0400)
commitef319dff5475a2d7b9b61c0fb051a764237cd959
treea460cf3732bb564d04be20494a90ad14ae658822
parentd7fedf2656462c2c20d6d98446e1cdf1c0edc0aa
drm/amd/display: add support for chroma offset

[Why]
Adding support for chroma subsampling offset (cositing) in scaler
calculations to adjust reference point where we determine post-scaling
chroma value in YUV420 surfaces.

[How]
Add support for cositing options: NONE, LEFT and TOPLEFT Add debug
option force_cositing and set default to TOPLEFT to maintain same
behaviour as without offset support.

Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Samson Tam <samson.tam@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/dc.h
drivers/gpu/drm/amd/display/dc/dc_hw_types.h