[PATCH 03/10] drm/amd/display: debug opt disable hdmi deep color
Harry Wentland
harry.wentland at amd.com
Thu Dec 29 18:29:36 UTC 2016
From: Tony Cheng <tony.cheng at amd.com>
Change-Id: I4eea27d2efd090253d8e2726d476371b3e8b2e60
Signed-off-by: Tony Cheng <tony.cheng at amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
---
drivers/gpu/drm/amd/display/dc/dc.h | 1 +
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index ef9a69759bd5..823a87224498 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -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 {
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
index a8a2290d47db..b439a9ee0228 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
@@ -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
*/
--
2.9.3
More information about the amd-gfx
mailing list