]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/scaler: Compute scaling factors for pipe scaler
authorMitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Tue, 21 Jan 2025 17:58:56 +0000 (23:28 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Fri, 24 Jan 2025 02:21:13 +0000 (07:51 +0530)
commit9217f9aaef62236da37f6e915047352d114eff77
tree064c19cb3251b8f9a3ca587bf9fde77b231f8733
parentcabb162f7b7d2a012c80ecc13e5e75c0d01d6dde
drm/i915/scaler: Compute scaling factors for pipe scaler

Compute scaling factors and scaler user for pipe scaler if
particular scaler user is pipe scaler.

--v2:
- Fix typos. [Ankit]
- Remove FIXME tag. [Ankit]
- Should be common hscale, vscale instead of local one to
avoid garbage overwritten.

--v3:
- Separate out max_scaling information. [Ankit]
- Use max_hscale and max_vscale info instead of INT_MAX. [Ankit]

--v4:
- Add Suggested changes reported by Dan Carpenter.

Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250121175856.447245-1-mitulkumar.ajitkumar.golani@intel.com
drivers/gpu/drm/i915/display/skl_scaler.c