]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: debug opt disable hdmi deep color
authorTony Cheng <tony.cheng@amd.com>
Fri, 23 Dec 2016 12:12:19 +0000 (07:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:07:34 +0000 (17:07 -0400)
Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@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/dc.h
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c

index ef9a69759bd51e9ece51f5dff596c49a5deca9a5..823a8722449809ed57e84db07b8cda5f1d2af7c1 100644 (file)
@@ -147,6 +147,7 @@ struct dc_debug {
        bool disable_power_gate;
        bool disable_clock_gate;
        bool disable_dmcu;
+       bool disable_hdmi_deep_color;
 };
 
 struct dc {
index a8a2290d47db22ae1bfe74db67ac3e9beb192567..b439a9ee0228253841d981707ef152823a0ac44a 100644 (file)
@@ -993,6 +993,9 @@ bool dce110_link_encoder_construct(
        enc110->base.features.max_deep_color = COLOR_DEPTH_121212;
        enc110->base.features.max_hdmi_deep_color = COLOR_DEPTH_121212;
 
+       if (enc110->base.ctx->dc->debug.disable_hdmi_deep_color)
+               enc110->base.features.max_hdmi_deep_color = COLOR_DEPTH_888;
+
        /* set the flag to indicate whether driver poll the I2C data pin
         * while doing the DP sink detect
         */