]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix odm scaling
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Mon, 10 May 2021 14:19:18 +0000 (10:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 May 2021 16:26:17 +0000 (12:26 -0400)
commit6566cae7aef30da8833f1fa0eb854baf33b96676
treef8d81c82314543caf651219cf43461f6546adab8
parent998b7ad2efd4c54a6317344c59abc64e9a3b3086
drm/amd/display: fix odm scaling

There are two issues with scaling calculations, odm recout
calculation and matching viewport to actual recout.

This change fixes both issues. Odm recout calculation via
special casing and viewport matching issue by reworking
the viewport calcualtion to use scaling ratios and recout
to derrive the required offset and size.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@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
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
drivers/gpu/drm/amd/display/dc/inc/hw/transform.h