[PATCH 2/6] drm/i915/display: Call panel_fitting from pipe_config
Nemesa Garg
nemesa.garg at intel.com
Thu Oct 17 08:09:36 UTC 2024
Signed-off-by: Nemesa Garg <nemesa.garg at intel.com>
---
drivers/gpu/drm/i915/display/intel_display.c | 22 ++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index b4ef4d59da1a..9dd140719349 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -2520,6 +2520,26 @@ static int intel_crtc_compute_pipe_mode(struct intel_crtc_state *crtc_state)
return 0;
}
+static void intel_crtc_compute_pfit(struct intel_atomic_state *state,
+ struct intel_crtc_state *crtc_state)
+{
+ struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
+ struct drm_i915_private *i915 = to_i915(crtc->base.dev);
+ struct drm_connector *connector;
+ struct drm_connector_state *connector_state;
+ int i;
+
+ for_each_new_connector_in_state(&state->base, connector,
+ connector_state, i) {
+
+ if (connector_state->crtc != &crtc->base)
+ continue;
+
+ if (!HAS_GMCH(i915))
+ intel_pch_panel_fitting(crtc_state, connector_state);
+ }
+}
+
static int intel_crtc_compute_config(struct intel_atomic_state *state,
struct intel_crtc *crtc)
{
@@ -2539,6 +2559,8 @@ static int intel_crtc_compute_config(struct intel_atomic_state *state,
if (ret)
return ret;
+ intel_crtc_compute_pfit(state, crtc_state);
+
intel_crtc_compute_pixel_rate(crtc_state);
if (crtc_state->has_pch_encoder)
--
2.25.1
More information about the Intel-gfx-trybot
mailing list