r600g: don't flush the context in texture_transfer_map

the winsys does this automatically

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Marek Olšák
2013-06-30 14:53:03 +02:00
parent ae87aae0c4
commit 141b892620
-5
View 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 */