public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/6] drm/i915: Limit FBC flush to post batch flush
@ 2013-11-06 15:39 ville.syrjala
  2013-11-06 15:39 ` [PATCH 2/6] drm/i915: Emit SRM after the MSG_FBC_REND_STATE LRI ville.syrjala
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: ville.syrjala @ 2013-11-06 15:39 UTC (permalink / raw)
  To: intel-gfx

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Don't issue the FBC nuke/cache clean command when invalidate_domains!=0.
That would indicate that we're not being called for the post-batch
flush.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_ringbuffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index e32c08a..752f208 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -354,7 +354,7 @@ gen7_render_ring_flush(struct intel_ring_buffer *ring,
 	intel_ring_emit(ring, 0);
 	intel_ring_advance(ring);
 
-	if (flush_domains)
+	if (!invalidate_domains && flush_domains)
 		return gen7_ring_fbc_flush(ring, FBC_REND_NUKE);
 
 	return 0;
@@ -1837,7 +1837,7 @@ static int gen6_ring_flush(struct intel_ring_buffer *ring,
 	}
 	intel_ring_advance(ring);
 
-	if (IS_GEN7(dev) && flush)
+	if (IS_GEN7(dev) && !invalidate && flush)
 		return gen7_ring_fbc_flush(ring, FBC_REND_CACHE_CLEAN);
 
 	return 0;
-- 
1.8.1.5

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2013-11-06 17:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-06 15:39 [PATCH 1/6] drm/i915: Limit FBC flush to post batch flush ville.syrjala
2013-11-06 15:39 ` [PATCH 2/6] drm/i915: Emit SRM after the MSG_FBC_REND_STATE LRI ville.syrjala
2013-11-06 15:39 ` [PATCH 3/6] drm/i915: Implement LRI based FBC tracking ville.syrjala
2013-11-06 16:06   ` Chris Wilson
2013-11-06 16:24     ` Ville Syrjälä
2013-11-06 17:23     ` [PATCH v2 " ville.syrjala
2013-11-06 17:36       ` Chris Wilson
2013-11-06 17:51         ` Ville Syrjälä
2013-11-06 15:39 ` [PATCH 4/6] drm/i915: Kill sandybridge_blit_fbc_update() ville.syrjala
2013-11-06 17:24   ` [PATCH v2 " ville.syrjala
2013-11-06 15:39 ` [PATCH 5/6] drm/i915: Don't write ILK_FBC_RT_BASE directly on SNB ville.syrjala
2013-11-06 17:24   ` [PATCH v2 5/6] drm/i915: Don't write ILK/IVB_FBC_RT_BASE directly ville.syrjala
2013-11-06 15:39 ` [PATCH 6/6] drm/i915: Set has_fbc=true for all SNB+, except VLV ville.syrjala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox