drm/amd/display: Reset VIC if HDMI_VIC is present
authorChris Park <Chris.Park@amd.com>
Tue, 15 Feb 2022 22:14:16 +0000 (17:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Mar 2022 23:40:05 +0000 (18:40 -0500)
[Why]
HDMI Compliance requires VIC to be set to 0
on 2D mode if HDMI_VIC is present.

[How]
When VIC and HDMI_VIC is both present,
reset VIC to 0.

Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Chris Park <Chris.Park@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

index cc8e60ec35c6470da7840e8725f77939cf5facae..bc2150f3d79be6463b1c401317ab45cc3531d438 100644 (file)
@@ -2615,6 +2615,8 @@ static void set_avi_info_frame(
        hdmi_info.bits.YQ0_YQ1 = YYC_QUANTIZATION_LIMITED_RANGE;
 
        ///VIC
+       if (pipe_ctx->stream->timing.hdmi_vic != 0)
+               vic = 0;
        format = stream->timing.timing_3d_format;
        /*todo, add 3DStereo support*/
        if (format != TIMING_3D_FORMAT_NONE) {