[Mesa-dev] [PATCH 05/12] r600g: don't flush the context in texture_transfer_map
Marek Olšák
maraeo at gmail.com
Sun Jun 30 18:53:46 PDT 2013
the winsys does this automatically
---
src/gallium/drivers/r600/r600_texture.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index c2feb52..5ad8c65 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -923,11 +923,6 @@ static void *r600_texture_transfer_map(struct pipe_context *ctx,
trans->transfer.layer_stride = staging->surface.level[0].slice_size;
if (usage & PIPE_TRANSFER_READ) {
r600_copy_to_staging_texture(ctx, trans);
- /* flush gfx & dma ring, order does not matter as only one can be live */
- if (rctx->rings.dma.cs) {
- rctx->rings.dma.flush(rctx, 0);
- }
- rctx->rings.gfx.flush(rctx, 0);
}
} else {
/* the resource is mapped directly */
--
1.8.1.2
More information about the mesa-dev
mailing list