summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Govindapillai <vinod.govindapillai@intel.com>2023-11-10 11:32:25 +0200
committerMika Kahola <mika.kahola@intel.com>2023-11-29 11:49:08 +0200
commitb844c6bae2b89b4a4e102eb326e35c632308dd85 (patch)
treec2cba969a56ef9c146d3abf7c9396318927beb86
parenta4f477e6ac171ccdea38556437493c3c5222bbe5 (diff)
drm/i915/xe2lpd: remove the FBC restriction if PSR2 is enabled
In earlier versions, FBC was restricted if PSR2 is enabled. From xe2lpd onwards no such restrictions are needed anymore. HSD: 14014305387 Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com> Signed-off-by: Mika Kahola <mika.kahola@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231110093225.39573-2-vinod.govindapillai@intel.com
-rw-r--r--drivers/gpu/drm/i915/display/intel_fbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c
index 63f389a1707d..f17a1afb4929 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -1235,7 +1235,7 @@ static int intel_fbc_check_plane(struct intel_atomic_state *state,
* Recommendation is to keep this combination disabled
* Bspec: 50422 HSD: 14010260002
*/
- if (DISPLAY_VER(i915) >= 12 && crtc_state->has_psr2) {
+ if (IS_DISPLAY_VER(i915, 12, 14) && crtc_state->has_psr2) {
plane_state->no_fbc_reason = "PSR2 enabled";
return 0;
}