Mesa (master): r600g: Replace needless flush in texture upload.

Mathias Fröhlich frohlich at
Sat Oct 29 09:53:20 PDT 2011

Module: Mesa
Branch: master
Commit: e8139ebf583acf37150a8b341bcbef6b924a7792

Author: Mathias Fröhlich <Mathias.Froehlich at>
Date:   Tue Jul 26 07:05:10 2011 +0200

r600g: Replace needless flush in texture upload.

Replace pipe->flush() with pipe->texture_barrier() in
the texture upload path for the staging texture.
This should be enough to get data out of the gpu
caches ready to be read for texture fetch.


 src/gallium/drivers/r600/r600_texture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 1682cc8..b914ff3 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -66,7 +66,7 @@ static void r600_copy_from_staging_texture(struct pipe_context *ctx, struct r600
 				  0, &sbox);
-	r600_flush(ctx, NULL, RADEON_FLUSH_ASYNC);
+	ctx->texture_barrier(ctx);
 unsigned r600_texture_get_offset(struct r600_resource_texture *rtex,

More information about the mesa-commit mailing list