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)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 28 Mar 2024 13:15:35 +0000 (15:15 +0200)
commitd37b3dac68e26669f03f768b3afc9abc094c9ac9
tree9c81e1071366436352f421dd138ba8b3d7703bbd
parentb52c4093b0c9089b00b42823d41986a94d32e341
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
drivers/gpu/drm/i915/display/intel_psr.c