All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915/fbc: Don't use a fence for a plane if FBC is not possible
@ 2024-01-23  9:00 Ville Syrjala
  2024-01-23  9:00 ` [PATCH 2/2] drm/i915/fbc: Move DPFC_CHICKEN programming into intel_fbc_program_workarounds() Ville Syrjala
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Ville Syrjala @ 2024-01-23  9:00 UTC (permalink / raw)
  To: intel-gfx

From: Ville Syrjälä <ville.syrjala@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@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


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-02-13 17:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-23  9:00 [PATCH 1/2] drm/i915/fbc: Don't use a fence for a plane if FBC is not possible Ville Syrjala
2024-01-23  9:00 ` [PATCH 2/2] drm/i915/fbc: Move DPFC_CHICKEN programming into intel_fbc_program_workarounds() Ville Syrjala
2024-01-23 13:42   ` Gustavo Sousa
2024-01-26 10:26     ` Ville Syrjälä
2024-01-30 19:31       ` Gustavo Sousa
2024-01-23 13:27 ` ✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/i915/fbc: Don't use a fence for a plane if FBC is not possible Patchwork
2024-01-23 13:39 ` ✓ Fi.CI.BAT: success " Patchwork
2024-01-23 17:42 ` ✓ Fi.CI.IGT: " Patchwork
2024-02-13 17:32 ` [PATCH 1/2] " Govindapillai, Vinod

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.