Module: Mesa
Branch: master
Commit: 26860a6e2f2a30072594d4f68fbf7db6356bb674
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=26860a6e2f2a30072594d4f68fbf7db6356bb674

Author: Maarten Maathuis <madman2...@gmail.com>
Date:   Mon Sep 14 20:21:56 2009 +0200

nv50: avoid excessive FIRE_RING

- And reduce RING_SPACE to 2, instead of 3.

---

 src/gallium/drivers/nv50/nv50_context.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_context.c 
b/src/gallium/drivers/nv50/nv50_context.c
index 935de8a..fca078b 100644
--- a/src/gallium/drivers/nv50/nv50_context.c
+++ b/src/gallium/drivers/nv50/nv50_context.c
@@ -37,11 +37,12 @@ nv50_flush(struct pipe_context *pipe, unsigned flags,
 
        /* We need this in the ddx for reliable composite, not sure what we're
         * actually flushing. We generate all our own flushes with flags = 0. */
-       WAIT_RING(chan, 3);
+       WAIT_RING(chan, 2);
        BEGIN_RING(chan, eng2d, 0x0110, 1);
        OUT_RING  (chan, 0);
 
-       FIRE_RING(chan);
+       if (flags & PIPE_FLUSH_FRAME)
+               FIRE_RING(chan);
 }
 
 static void

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to