drm/i915/psr: Fix intel_psr2_sel_fetch_et_alignment usage
authorJouni Högander <jouni.hogander@intel.com>
Tue, 19 Mar 2024 12:33:25 +0000 (14:33 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 3 Apr 2024 18:26:10 +0000 (14:26 -0400)
commitbf1f6f8d0b193561f213209b902edda634b6c74a
tree5ad75fd0950c25c8d1ae39bd34a8b71973e00320
parent4e29234353a4378a49e5ee6f5683678d7e101e17
drm/i915/psr: Fix intel_psr2_sel_fetch_et_alignment usage

Currently we are not aligning selective update area to cover cursor fully
when cursor is not updated by itself but still in the selective update
area. Fix this by checking cursor separately after
drm_atomic_add_affected_planes.

Bspec: 68927

Fixes: 1bff93b8bc27 ("drm/i915/psr: Extend SU area to cover cursor fully if needed")
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240319123327.1661097-4-jouni.hogander@intel.com
(cherry picked from commit d37b3dac68e26669f03f768b3afc9abc094c9ac9)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_psr.c