st/mesa: remove unnecessary flushes
authorMarek Olšák <maraeo@gmail.com>
Mon, 7 Mar 2011 23:28:33 +0000 (00:28 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 11 Mar 2011 01:02:16 +0000 (02:02 +0100)
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
src/mesa/state_tracker/st_cb_fbo.c

index 4f1b0e71934a6d16286e9f165345a57979da8275..2b30d555033d2e6a76db2163b8e27cd3f06f03c0 100644 (file)
@@ -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 );
       }
index ae49434cac934a4a99584e613e7d11056bc2d655..27b8a06de57044294a563db25e3c507a03008dce 100644 (file)
@@ -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;
 
    /*