Mesa (master): st/mesa: remove unnecessary flushes

Marek Olšák mareko at kemper.freedesktop.org
Fri Mar 11 01:23:29 UTC 2011


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Tue Mar  8 00:28:33 2011 +0100

st/mesa: remove unnecessary flushes

The framebuffer cache flush should be implicit when calling
set_framebuffer_state.

There is no need to flush the command stream either.

---

 src/gallium/auxiliary/util/u_gen_mipmap.c |    2 --
 src/mesa/state_tracker/st_cb_fbo.c        |    3 ---
 2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c
index 4f1b0e7..2b30d55 100644
--- a/src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/src/gallium/auxiliary/util/u_gen_mipmap.c
@@ -1660,8 +1660,6 @@ util_gen_mipmap(struct gen_mipmap_state *ctx,
                                  4,  /* verts */
                                  2); /* attribs/vert */
 
-         pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE, NULL);
-
          /* need to signal that the texture has changed _after_ rendering to it */
          pipe_surface_reference( &surf, NULL );
       }
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index ae49434..27b8a06 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -431,14 +431,11 @@ static void
 st_finish_render_texture(struct gl_context *ctx,
                          struct gl_renderbuffer_attachment *att)
 {
-   struct st_context *st = st_context(ctx);
    struct st_renderbuffer *strb = st_renderbuffer(att->Renderbuffer);
 
    if (!strb)
       return;
 
-   st_flush(st, PIPE_FLUSH_RENDER_CACHE, NULL);
-
    strb->rtt = NULL;
 
    /*




More information about the mesa-commit mailing list