Mesa (master): vc4: Replace the FLUSH_ALL with FLUSH.

Eric Anholt anholt at kemper.freedesktop.org
Fri Oct 17 12:14:12 UTC 2014


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

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Oct 17 09:42:35 2014 +0100

vc4: Replace the FLUSH_ALL with FLUSH.

We don't need to emit all of our current state at the end of each bin
list.  We're going to be smashing it all at the start of the next tile's
bin list, anyway.

---

 src/gallium/drivers/vc4/vc4_context.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c
index 205f81d..7779c46 100644
--- a/src/gallium/drivers/vc4/vc4_context.c
+++ b/src/gallium/drivers/vc4/vc4_context.c
@@ -263,7 +263,9 @@ vc4_flush(struct pipe_context *pctx)
         if (!vc4->needs_flush)
                 return;
 
-        cl_u8(&vc4->bcl, VC4_PACKET_FLUSH_ALL);
+        /* The FLUSH caps all of our bin lists with a VC4_PACKET_RETURN. */
+        cl_u8(&vc4->bcl, VC4_PACKET_FLUSH);
+
         cl_u8(&vc4->bcl, VC4_PACKET_NOP);
         cl_u8(&vc4->bcl, VC4_PACKET_HALT);
 




More information about the mesa-commit mailing list