drm/amd/display: Get visual confirm color for stream
authorLeo Zeng <Leo.Zeng@amd.com>
Wed, 26 Feb 2025 19:35:05 +0000 (14:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 19:18:30 +0000 (15:18 -0400)
commitc05da59e979bfe2d6555c7097e012b433a35d1b8
tree50ca273e49ab5eafdad4221e9b4126e469d532f9
parent9cdd9c4d039eae77142a27ffeaee76a5d5a9294f
drm/amd/display: Get visual confirm color for stream

[WHY]
We want to output visual confirm color based on stream.

[HOW]
If visual confirm is for DMUB, use DMUB to get color.
Otherwise, find plane with highest layer index, output visual confirm color
of pipe that contains plane with highest index.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Leo Zeng <Leo.Zeng@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@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.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c