Commit 67e12c64 authored by Imre Deak's avatar Imre Deak
Browse files

drm/i915/dp: Export intel_dp_dsc_min_src_compressed_bpp()



Export the function that can be used by a follow-up change to query the
minimum compressed link bpp supported by the HW.

Reviewed-by: default avatarAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Link: https://lore.kernel.org/r/20250509180340.554867-11-imre.deak@intel.com
parent a43a02d8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2071,7 +2071,7 @@ int intel_dp_dsc_sink_max_compressed_bpp(const struct intel_connector *connector
						       pipe_config, bpc) >> 4;
}

static int dsc_src_min_compressed_bpp(void)
int intel_dp_dsc_min_src_compressed_bpp(void)
{
	/* Min Compressed bpp supported by source is 8 */
	return 8;
@@ -2482,7 +2482,7 @@ intel_dp_compute_config_link_bpp_limits(struct intel_dp *intel_dp,
		int dsc_src_min_bpp, dsc_sink_min_bpp, dsc_min_bpp;
		int dsc_src_max_bpp, dsc_sink_max_bpp, dsc_max_bpp;

		dsc_src_min_bpp = dsc_src_min_compressed_bpp();
		dsc_src_min_bpp = intel_dp_dsc_min_src_compressed_bpp();
		dsc_sink_min_bpp = intel_dp_dsc_sink_min_compressed_bpp(crtc_state);
		dsc_min_bpp = max(dsc_src_min_bpp, dsc_sink_min_bpp);
		limits->link.min_bpp_x16 = fxp_q4_from_int(dsc_min_bpp);
+1 −0
Original line number Diff line number Diff line
@@ -208,6 +208,7 @@ bool intel_dp_has_connector(struct intel_dp *intel_dp,
			    const struct drm_connector_state *conn_state);
int intel_dp_dsc_max_src_input_bpc(struct intel_display *display);
int intel_dp_dsc_min_src_input_bpc(void);
int intel_dp_dsc_min_src_compressed_bpp(void);
int intel_dp_compute_min_hblank(struct intel_crtc_state *crtc_state,
				const struct drm_connector_state *conn_state);