Commit b47e62b1 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Utilize edp_disable_dsc from VBT

parent cf235914
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1525,6 +1525,10 @@ parse_edp(struct drm_i915_private *i915,
	if (i915->display.vbt.version >= 244)
		panel->vbt.edp.max_link_rate =
			edp->edp_max_port_link_rate[panel_type] * 20;

	if (i915->display.vbt.version >= 251)
		panel->vbt.edp.dsc_disable =
			panel_bool(edp->edp_dsc_disable, panel_type);
}

static void
+1 −0
Original line number Diff line number Diff line
@@ -335,6 +335,7 @@ struct intel_vbt_panel_data {
		u8 drrs_msa_timing_delay;
		bool low_vswing;
		bool hobl;
		bool dsc_disable;
	} edp;

	struct {
+4 −0
Original line number Diff line number Diff line
@@ -1181,6 +1181,10 @@ bool intel_dp_has_dsc(const struct intel_connector *connector)
	if (connector->mst_port && !HAS_DSC_MST(i915))
		return false;

	if (connector->base.connector_type == DRM_MODE_CONNECTOR_eDP &&
	    connector->panel.vbt.edp.dsc_disable)
		return false;

	if (!drm_dp_sink_supports_dsc(connector->dp.dsc_dpcd))
		return false;