[PATCH 1/2] drm/i915/fbc: Don't use a fence for a plane if FBC is not possible
Ville Syrjala
ville.syrjala at linux.intel.com
Tue Jan 23 09:00:50 UTC 2024
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
No point in wasting a fence on a plane if it can't do FBC anyway.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index a92e959c8ac7..96a31d73f869 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -533,7 +533,7 @@ bool intel_plane_uses_fence(const struct intel_plane_state *plane_state)
struct drm_i915_private *dev_priv = to_i915(plane->base.dev);
return DISPLAY_VER(dev_priv) < 4 ||
- (plane->fbc &&
+ (plane->fbc && !plane_state->no_fbc_reason &&
plane_state->view.gtt.type == I915_GTT_VIEW_NORMAL);
}
--
2.43.0
More information about the Intel-gfx
mailing list