r600g: remove useless call to u_upload_flush
authorPierre-Eric Pelloux-Prayer <pelloux@gmail.com>
Fri, 10 Jun 2011 13:45:01 +0000 (15:45 +0200)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 13 Jun 2011 15:26:54 +0000 (11:26 -0400)
No regressions found with :
- piglit (quick.tests)
- Unigine Heaven
- Lightsmark
- openarena
- Imprudence (Second Life fork)

agd5f Note: this patch was previously reverted due to piglit
regressions, but I'm not able to reproduce them here.
See this bug:
https://bugs.freedesktop.org/show_bug.cgi?id=34008
and discussion:
http://lists.freedesktop.org/archives/dri-devel/2011-June/011996.html

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/gallium/drivers/r600/r600_pipe.c

index f924d798765fab96f831086a81359810b3288773..ce2db888f7a4ff4a2bba3322cfeaa17eb589be78 100644 (file)
@@ -138,11 +138,6 @@ static void r600_flush(struct pipe_context *ctx,
        dc++;
 #endif
        r600_context_flush(&rctx->ctx);
-
-       /* XXX This shouldn't be really necessary, but removing it breaks some tests.
-        * Needless buffer reallocations may significantly increase memory consumption,
-        * so getting rid of this call is important. */
-       u_upload_flush(rctx->vbuf_mgr->uploader);
 }
 
 static void r600_update_num_contexts(struct r600_screen *rscreen, int diff)