mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
drm/i915/crtc: Expose sharpness only if num_scalers is >= 2
CASF requires the second scaler for sharpness. Do not expose the SHARPNESS_STRENGTH property if the CRTC has fewer than two scalers. v2: Modify header and commit message. [Ankit] Signed-off-by: Nemesa Garg <nemesa.garg@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Signed-off-by: Animesh Manna <animesh.manna@intel.com> Link: https://patch.msgid.link/20251126084152.3905905-1-nemesa.garg@intel.com
This commit is contained in:
parent
4d7f266e68
commit
1552691f96
|
|
@ -395,7 +395,7 @@ int intel_crtc_init(struct intel_display *display, enum pipe pipe)
|
|||
|
||||
drm_WARN_ON(display->drm, drm_crtc_index(&crtc->base) != crtc->pipe);
|
||||
|
||||
if (HAS_CASF(display))
|
||||
if (HAS_CASF(display) && crtc->num_scalers >= 2)
|
||||
drm_crtc_create_sharpness_strength_property(&crtc->base);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user