drm/amd/display: adjust visual confirm dpp height offset to be 1/240 of v addressable
authorWenjing Liu <wenjing.liu@amd.com>
Tue, 25 Jul 2023 23:20:00 +0000 (19:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Aug 2023 21:14:08 +0000 (17:14 -0400)
commitc5a4f9010d4bcc4ea76341d7e5383b102f965ec5
tree85bd2a46e0f3cb1fecd8281db180b40a33630d11
parent460ea8980511c01c1551012b9a6ec6a06d02da59
drm/amd/display: adjust visual confirm dpp height offset to be 1/240 of v addressable

[why]
For timing with large v addressable visual confirm is just too small. It is difficult
to tell visually which DPP we are using. On the other hand with timing with small
v addressable visual confirm is too large and covers the UI area.

[how]
We calculate visual confirm dpp height offset based on v addressable so it stays
relatively the same height i.e. 1/240 verticle portion of the screen.

Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@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