drm/i915/psr: Set intel_crtc_state->has_psr on panel replay as well
authorJouni Högander <jouni.hogander@intel.com>
Fri, 5 Apr 2024 11:35:56 +0000 (14:35 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 8 Apr 2024 07:28:52 +0000 (10:28 +0300)
commit5afa6e496098eb3ca0005c916d484293206e2cf1
tree393c0ca720b443162cf2bdf4868c86831ef00a6f
parent7de3363e6059f92a7e5c4dba3492011b4daf9485
drm/i915/psr: Set intel_crtc_state->has_psr on panel replay as well

Current code is setting only intel_crtc_state->has_panel_replay in panel
replay case. There are lots of stuff behind intel_crtc_state->has_psr that
is needed for panel replay as well. Instead of converting each check to
has_psr || has_panel_replay set has_psr in case of panel replay as
well. Code can then differentiate between psr and panel replay by using
intel_crtc_state->has_panel_replay.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240405113602.992714-3-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c