Message ID | 20230502143906.2401-11-ville.syrjala@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/i915: MST+DSC nukage and state stuff | expand |
On Tue, 2023-05-02 at 17:39 +0300, Ville Syrjala wrote: > From: Ville Syrjälä <ville.syrjala@linux.intel.com> > > There's no need to check for both eDP and fixed_mode when > deciding whether to do the pfit calculations or not. > > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> > --- It would be nice to explain _why_ this is not needed. Is it because fixed_mode is always eDP? -- Cheers, Luca.
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 9ac199444155..6bc7ff0c4320 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1044,7 +1044,7 @@ intel_dp_mode_valid(struct drm_connector *_connector, return MODE_H_ILLEGAL; fixed_mode = intel_panel_fixed_mode(connector, mode); - if (intel_dp_is_edp(intel_dp) && fixed_mode) { + if (fixed_mode) { status = intel_panel_mode_valid(connector, mode); if (status != MODE_OK) return status; @@ -2175,7 +2175,7 @@ intel_dp_compute_config(struct intel_encoder *encoder, intel_audio_compute_config(encoder, pipe_config, conn_state); fixed_mode = intel_panel_fixed_mode(connector, adjusted_mode); - if (intel_dp_is_edp(intel_dp) && fixed_mode) { + if (fixed_mode) { ret = intel_panel_compute_config(connector, adjusted_mode); if (ret) return ret;