diff options
| author | Imre Deak <imre.deak@intel.com> | 2025-12-22 18:35:46 +0300 |
|---|---|---|
| committer | Imre Deak <imre.deak@intel.com> | 2026-01-13 19:42:21 +0300 |
| commit | 3045a4eb12e9affb526cf24fb4a41d3487d55978 (patch) | |
| tree | 3cbc84cdc795a0d5243f4be4bac31779bba3248a | |
| parent | 2b601460d1291310e4f04418eae2de93d0cc18d1 (diff) | |
| download | linux-3045a4eb12e9affb526cf24fb4a41d3487d55978.tar.xz | |
drm/i915/dp: Simplify eDP vs. DP compressed BPP computation
intel_edp_dsc_compute_pipe_bpp() matches now
intel_dp_dsc_compute_pipe_bpp(), remove the former function.
Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20251222153547.713360-20-imre.deak@intel.com
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_dp.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 96fddb8c54c3..7e022c47e8ac 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -2322,30 +2322,6 @@ static int intel_dp_dsc_compute_pipe_bpp(struct intel_dp *intel_dp, return 0; } -static int intel_edp_dsc_compute_pipe_bpp(struct intel_dp *intel_dp, - struct intel_crtc_state *pipe_config, - struct drm_connector_state *conn_state, - const struct link_config_limits *limits) -{ - int pipe_bpp, forced_bpp; - int ret; - - forced_bpp = intel_dp_force_dsc_pipe_bpp(intel_dp, limits); - if (forced_bpp) - pipe_bpp = forced_bpp; - else - pipe_bpp = limits->pipe.max_bpp; - - ret = dsc_compute_compressed_bpp(intel_dp, pipe_config, conn_state, - limits, pipe_bpp); - if (ret) - return -EINVAL; - - pipe_config->pipe_bpp = pipe_bpp; - - return 0; -} - /* * Return whether FEC must be enabled for 8b10b SST or MST links. On 128b132b * links FEC is always enabled implicitly by the HW, so this function returns @@ -2397,12 +2373,8 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp, * figured out for DP MST DSC. */ if (!is_mst) { - if (intel_dp_is_edp(intel_dp)) - ret = intel_edp_dsc_compute_pipe_bpp(intel_dp, pipe_config, - conn_state, limits); - else - ret = intel_dp_dsc_compute_pipe_bpp(intel_dp, pipe_config, - conn_state, limits); + ret = intel_dp_dsc_compute_pipe_bpp(intel_dp, pipe_config, + conn_state, limits); if (ret) { drm_dbg_kms(display->drm, "No Valid pipe bpp for given mode ret = %d\n", ret); |
