Call the function that validates every damage clips of each plane. As in commit 093a3a300009 ("drm/i915: Add plane damage clips property") this property was only enabled for gen12+ only checking it for gen12 too. v2: - add logs to underspace understand why commit was rejected Cc: Gwan-gyeong Mun <gwan-gyeong.mun@xxxxxxxxx> Cc: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> Signed-off-by: José Roberto de Souza <jose.souza@xxxxxxxxx> --- drivers/gpu/drm/i915/display/intel_sprite.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_sprite.c b/drivers/gpu/drm/i915/display/intel_sprite.c index b7e208816074..cb862bb8d6fb 100644 --- a/drivers/gpu/drm/i915/display/intel_sprite.c +++ b/drivers/gpu/drm/i915/display/intel_sprite.c @@ -2492,6 +2492,13 @@ static int skl_plane_check(struct intel_crtc_state *crtc_state, if (ret) return ret; + if (INTEL_GEN(dev_priv) >= 12) { + ret = drm_atomic_helper_check_plane_damage(crtc_state->uapi.state, + &plane_state->uapi); + if (ret) + return ret; + } + /* HW only has 8 bits pixel precision, disable plane if invisible */ if (!(plane_state->hw.alpha >> 8)) plane_state->uapi.visible = false; -- 2.29.2 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx