From: Imre Deak <imre.deak@intel.com>
To: <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Subject: [PATCH 2/4] drm/i915/dp: Export intel_dp_compute_min_compressed_bpp_x16()
Date: Mon, 16 Feb 2026 09:04:19 +0200 [thread overview]
Message-ID: <20260216070421.714884-3-imre.deak@intel.com> (raw)
In-Reply-To: <20260216070421.714884-1-imre.deak@intel.com>
Export intel_dp_compute_min_compressed_bpp_x16() for use by a
follow-up change validating MST modes with DSC enabled.
Signed-off-by: Imre Deak <imre.deak@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp.c | 10 ++++++----
drivers/gpu/drm/i915/display/intel_dp.h | 2 ++
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index d1caa20370123..454e6144ee4e2 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2514,8 +2514,8 @@ dsc_throughput_quirk_max_bpp_x16(const struct intel_connector *connector,
return fxp_q4_from_int(12);
}
-static int compute_min_compressed_bpp_x16(struct intel_connector *connector,
- enum intel_output_format output_format)
+int intel_dp_compute_min_compressed_bpp_x16(struct intel_connector *connector,
+ enum intel_output_format output_format)
{
int dsc_src_min_bpp, dsc_sink_min_bpp, dsc_min_bpp;
int min_bpp_x16;
@@ -2581,7 +2581,8 @@ bool intel_dp_mode_valid_with_dsc(struct intel_connector *connector,
int pipe_bpp, unsigned long bw_overhead_flags)
{
struct intel_dp *intel_dp = intel_attached_dp(connector);
- int min_bpp_x16 = compute_min_compressed_bpp_x16(connector, output_format);
+ int min_bpp_x16 = intel_dp_compute_min_compressed_bpp_x16(connector,
+ output_format);
int max_bpp_x16 = compute_max_compressed_bpp_x16(connector,
mode_clock, mode_hdisplay,
num_joined_pipes,
@@ -2635,7 +2636,8 @@ intel_dp_compute_config_link_bpp_limits(struct intel_connector *connector,
limits->link.min_bpp_x16 = fxp_q4_from_int(limits->pipe.min_bpp);
} else {
limits->link.min_bpp_x16 =
- compute_min_compressed_bpp_x16(connector, crtc_state->output_format);
+ intel_dp_compute_min_compressed_bpp_x16(connector,
+ crtc_state->output_format);
max_link_bpp_x16 =
compute_max_compressed_bpp_x16(connector,
diff --git a/drivers/gpu/drm/i915/display/intel_dp.h b/drivers/gpu/drm/i915/display/intel_dp.h
index cbd7fcd3789f6..b0bbd5981f573 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.h
+++ b/drivers/gpu/drm/i915/display/intel_dp.h
@@ -143,6 +143,8 @@ bool intel_digital_port_connected(struct intel_encoder *encoder);
bool intel_digital_port_connected_locked(struct intel_encoder *encoder);
int intel_dp_dsc_compute_max_bpp(const struct intel_connector *connector,
u8 dsc_max_bpc);
+int intel_dp_compute_min_compressed_bpp_x16(struct intel_connector *connector,
+ enum intel_output_format output_format);
bool intel_dp_mode_valid_with_dsc(struct intel_connector *connector,
int link_clock, int lane_count,
int mode_clock, int mode_hdisplay,
--
2.49.1
next prev parent reply other threads:[~2026-02-16 7:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-16 7:04 [PATCH 0/4] drm/i915/dp_mst: Allow DSC passthrough modes during validation Imre Deak
2026-02-16 7:04 ` [PATCH 1/4] drm/i915/dp: Add missing slice count check during mode validation Imre Deak
2026-02-17 4:22 ` Nautiyal, Ankit K
2026-02-16 7:04 ` Imre Deak [this message]
2026-02-17 4:23 ` [PATCH 2/4] drm/i915/dp: Export intel_dp_compute_min_compressed_bpp_x16() Nautiyal, Ankit K
2026-02-16 7:04 ` [PATCH 3/4] drm/i915/dp_mst: Track min link BPP as x16 fixed-point during mode validation Imre Deak
2026-02-17 4:24 ` Nautiyal, Ankit K
2026-02-16 7:04 ` [PATCH 4/4] drm/i915/dp_mst: Allow modes requiring compression for DSC passthrough Imre Deak
2026-02-17 4:53 ` Nautiyal, Ankit K
2026-02-17 8:59 ` Imre Deak
2026-02-17 12:27 ` Nautiyal, Ankit K
2026-02-16 7:11 ` ✓ CI.KUnit: success for drm/i915/dp_mst: Allow DSC passthrough modes during validation Patchwork
2026-02-16 7:27 ` ✗ CI.checksparse: warning " Patchwork
2026-02-16 7:47 ` ✓ Xe.CI.BAT: success " Patchwork
2026-02-16 8:59 ` ✗ Xe.CI.FULL: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260216070421.714884-3-imre.deak@intel.com \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox