Skip to content
Commit 2a4ef0d6 authored by Luca Coelho's avatar Luca Coelho Committed by Greg Kroah-Hartman
Browse files

drm/i915/mtl: limit second scaler vertical scaling in ver >= 14



[ Upstream commit 8d4312e2 ]

In newer hardware versions (i.e. display version >= 14), the second
scaler doesn't support vertical scaling.

The current implementation of the scaling limits is simplified and
only occurs when the planes are created, so we don't know which scaler
is being used.

In order to handle separate scaling limits for horizontal and vertical
scaling, and different limits per scaler, split the checks in two
phases.  We first do a simple check during plane creation and use the
best-case scenario (because we don't know the scaler that may be used
at a later point) and then do a more specific check when the scalers
are actually being set up.

Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Reviewed-by: default avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: default avatarRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221223130509.43245-2-luciano.coelho@intel.com


Stable-dep-of: c3070f08 ("drm/i915: Fix intel_atomic_setup_scalers() plane_state handling")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6bbeb396
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment