summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dce
diff options
context:
space:
mode:
authorGloria Li <geling.li@amd.com>2018-07-03 14:39:22 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-16 16:11:49 -0500
commitbf53769d9fc95c89d2f1588463c268c3af987748 (patch)
treeed1d6970b81a9412b4666f21a37aee40c99d90d1 /drivers/gpu/drm/amd/display/dc/dce
parent6d92b5c2d5bea1b1d0859bd8f3080344e5e3960e (diff)
downloadtalos-op-linux-bf53769d9fc95c89d2f1588463c268c3af987748.tar.gz
talos-op-linux-bf53769d9fc95c89d2f1588463c268c3af987748.zip
drm/amd/display: add HDR visual confirm
[Why] Testing team wants a way to tell if HDR is on or not [How] Program the overscan color to visually indicate the HDR state of the top-most plane Signed-off-by: Gloria Li <geling.li@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_transform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
index a02e719d7794..ab63d0d0304c 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
@@ -155,7 +155,7 @@ static void program_overscan(
int overscan_bottom = data->v_active
- data->recout.y - data->recout.height;
- if (xfm_dce->base.ctx->dc->debug.surface_visual_confirm) {
+ if (xfm_dce->base.ctx->dc->debug.visual_confirm != VISUAL_CONFIRM_DISABLE) {
overscan_bottom += 2;
overscan_right += 2;
}
OpenPOWER on IntegriCloud