mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
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: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://lore.kernel.org/r/20250509180340.554867-11-imre.deak@intel.com
This commit is contained in:
parent
a43a02d8f5
commit
67e12c64b4
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user