]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/xe3lpd: Prune modes for YUV420
authorSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 8 Jul 2025 04:33:28 +0000 (10:03 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Fri, 11 Jul 2025 04:08:31 +0000 (09:38 +0530)
commit3347b55f2c6c4bebc7a07343448416e5678b8b5c
tree28dc84017002c62a1aa24231ee02028b0d679ebc
parentf7a9dc796567b2f1562f83373a5f134a20db25e9
drm/i915/xe3lpd: Prune modes for YUV420

We only support resolution up to 4k for single pipe when using
YUV420 format so we prune these modes and restrict the plane size
at src. This is because pipe scaling will not support YUV420 scaling
for hwidth > 4096.

--v2
-Use output format to check [Ville]
-Add Bspec references
-Modify commit messge to point to why this is needed

--v3
-Use a function skl_scaler_mode_valid which is routed throug
intel_pfit_mode_valid [Ville]
-Combine the check conditons [Jonathan]

--v4
-mode_valid functions should return drm_mode_status [Jani]

--v5
-Use skl_scaler_max_src_size [Ankit]

Bspec: 49247, 50441
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com> #v2
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://lore.kernel.org/r/20250708043328.1086192-2-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_hdmi.c
drivers/gpu/drm/i915/display/intel_pfit.c
drivers/gpu/drm/i915/display/intel_pfit.h
drivers/gpu/drm/i915/display/skl_scaler.c
drivers/gpu/drm/i915/display/skl_scaler.h