[PATCH v1 00/10] drm/i915: casf & scaler refactoring

Michał Grzelak
2026-03-28T14:33:14Z

This series aims at refactoring some of intel_casf.c and skl_scaler.c as
per the discussion in [1,2]. I am unsure whether patches from 5 to 10
("drm/i915/scaler: *") should be split as they currently are or rather
squash them together, opinion appreciated.

In case of patch 4 ("drm/i915/casf: rename sumcoeff into sum_coeff")
there are more variables that could use some renaming (filtercoeff,
filter_coeff, filter_coeff_1 etc.) but as of now I don't have clear idea
how to handle them.

BR,
Michał

[1] https://lore.kernel.org/intel-gfx/acZezWKFo1QwLAci@intel.com/
[2] https://lore.kernel.org/intel-gfx/acZcKlDoZBwZT9wD@intel.com/

Michał Grzelak (10):
drm/i915/casf: fix comment typos
drm/i915/casf: rename convert_sharpness_coef_binary()
drm/i915/casf: rename t into tap in casf_coeff()
drm/i915/casf: rename sumcoeff into sum_coeff
drm/i915/casf: s/i/scaler_id where appropriate
drm/i915/casf: remove id in favor of scaler_id
drm/i915/casf: unloop scaler readout that is run once
drm/i915/casf: invert loop's breaking logic
drm/i915/casf: abstract scaler searching loop
drm/i915/casf: eliminate dead code

drivers/gpu/drm/i915/display/intel_casf.c | 26 ++++-----
drivers/gpu/drm/i915/display/skl_scaler.c | 66 ++++++++++++-----------
2 files changed, 48 insertions(+), 44 deletions(-)

--
2.45.2