summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_texture.c
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2011-07-26 07:05:10 +0200
committerMathias Fröhlich <[email protected]>2011-10-29 18:36:42 +0200
commite8139ebf583acf37150a8b341bcbef6b924a7792 (patch)
tree983a48288f7aef7fceaf810a94db83e1e5192386 /src/gallium/drivers/r600/r600_texture.c
parent7684808f9ce2da944be3ca9cc1ac4661d9b167fb (diff)
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.
Diffstat (limited to 'src/gallium/drivers/r600/r600_texture.c')
-rw-r--r--src/gallium/drivers/r600/r600_texture.c2
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 1682cc877c9..b914ff3f812 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
rtransfer->staging_texture,
0, &sbox);
- r600_flush(ctx, NULL, RADEON_FLUSH_ASYNC);
+ ctx->texture_barrier(ctx);
}
unsigned r600_texture_get_offset(struct r600_resource_texture *rtex,