drm/amd/display: Add visual confirm support for FreeSync 2 ARGB2101010
authorPeikang Zhang <peikang.zhang@amd.com>
Thu, 13 Feb 2020 21:05:23 +0000 (16:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:08:41 +0000 (11:08 -0500)
[Why]
DalMPVisualConfirm does not support FreeSync 2 ARGB2101010 which causes
black visual confirm bar when playing HDR video on FreeSync 2 display in
full screen mode

[How]
Added pink color for DalMPVisualConfirm on FreeSync 2 ARGB2101010
surface

Signed-off-by: Peikang Zhang <peikang.zhang@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index 53083e658fe0f07c6a0702cd64f32588e136c422..200510859e25f12311d318d19b234c4c602ecb22 100644 (file)
@@ -2121,6 +2121,10 @@ void dcn10_get_hdr_visual_confirm_color(
                if (top_pipe_ctx->stream->out_transfer_func->tf == TRANSFER_FUNCTION_PQ) {
                        /* HDR10, ARGB2101010 - set boarder color to red */
                        color->color_r_cr = color_value;
+               } else if (top_pipe_ctx->stream->out_transfer_func->tf == TRANSFER_FUNCTION_GAMMA22) {
+                       /* FreeSync 2 ARGB2101010 - set boarder color to pink */
+                       color->color_r_cr = color_value;
+                       color->color_b_cb = color_value;
                }
                break;
        case PIXEL_FORMAT_FP16: