[Intel-gfx] [PATCH] drm/i915/dsi: conn_state->max_requested_bpc is not a thing on DSI

Jani Nikula jani.nikula at intel.com
Wed Nov 13 10:46:12 UTC 2019


FIXUP to "drm/i915/dsi: add support for DSC".

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 drivers/gpu/drm/i915/display/icl_dsi.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/icl_dsi.c b/drivers/gpu/drm/i915/display/icl_dsi.c
index 823dbd9d4d06..52bb75feb0be 100644
--- a/drivers/gpu/drm/i915/display/icl_dsi.c
+++ b/drivers/gpu/drm/i915/display/icl_dsi.c
@@ -1270,8 +1270,7 @@ static void gen11_dsi_get_config(struct intel_encoder *encoder,
 }
 
 static int gen11_dsi_dsc_compute_config(struct intel_encoder *encoder,
-					struct intel_crtc_state *pipe_config,
-					struct drm_connector_state *conn_state)
+					struct intel_crtc_state *pipe_config)
 {
 	struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
 	struct drm_dsc_config *vdsc_cfg = &pipe_config->dsc.config;
@@ -1280,8 +1279,6 @@ static int gen11_dsi_dsc_compute_config(struct intel_encoder *encoder,
 	bool use_dsc;
 	int ret;
 
-	dsc_max_bpc = min_t(int, dsc_max_bpc, conn_state->max_requested_bpc);
-
 	use_dsc = intel_bios_get_dsc_params(encoder, pipe_config, dsc_max_bpc);
 	if (!use_dsc)
 		return 0;
@@ -1347,7 +1344,7 @@ static int gen11_dsi_compute_config(struct intel_encoder *encoder,
 	pipe_config->clock_set = true;
 	pipe_config->port_clock = intel_dsi_bitrate(intel_dsi) / 5;
 
-	if (gen11_dsi_dsc_compute_config(encoder, pipe_config, conn_state))
+	if (gen11_dsi_dsc_compute_config(encoder, pipe_config))
 		DRM_DEBUG_KMS("Attempting to use DSC failed\n");
 
 	return 0;
-- 
2.20.1



More information about the Intel-gfx mailing list