r600g: don't flush the context in texture_transfer_map
authorMarek Olšák <maraeo@gmail.com>
Sun, 30 Jun 2013 12:53:03 +0000 (14:53 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 8 Jul 2013 18:25:18 +0000 (20:25 +0200)
the winsys does this automatically

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_texture.c

index c2feb521be380939dfad35d1875be4722674f0d2..5ad8c6521bf4c1da23b9dc52a892f06028e58b2e 100644 (file)
@@ -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 */