drm/i915/scaler: Pass the whole atomic state into intel_atomic_setup_scalers()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 Nov 2024 12:26:53 +0000 (14:26 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 11 Nov 2024 22:06:59 +0000 (00:06 +0200)
commitb5b4b5388302a9310cb0e294bf52ff6ee3e85496
tree71e1e08a45bcfab908c45a99d6117592eef24cd3
parente912069e61fa5b48f1986c3d689a08c2d45251c3
drm/i915/scaler: Pass the whole atomic state into intel_atomic_setup_scalers()

intel_atomic_setup_scalers() currently digs out the full atomic
state from the crtc state. Flip that on its head so that we instead
pass in the full atomic state and dig out the crtc state (and whatever
else we need). This is generallte the better approach as it works
in all phases of the atomic commit, whereas the other apporoach only
really works during .atomic_check().

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241107122658.21901-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/skl_scaler.c
drivers/gpu/drm/i915/display/skl_scaler.h