Mesa (master): r600g: don't flush in r600_get_backend_mask

Marek Olšák mareko at kemper.freedesktop.org
Fri Oct 28 10:45:14 PDT 2011


Module: Mesa
Branch: master
Commit: 1de02d7364fe7a2ea51848e67b65144fe4a8c7f4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1de02d7364fe7a2ea51848e67b65144fe4a8c7f4

Author: Marek Olšák <maraeo at gmail.com>
Date:   Fri Oct 28 12:37:54 2011 +0200

r600g: don't flush in r600_get_backend_mask

The winsys does the flush in buffer_map.

---

 src/gallium/drivers/r600/r600_hw_context.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c
index d6dce2c..f6609ce 100644
--- a/src/gallium/drivers/r600/r600_hw_context.c
+++ b/src/gallium/drivers/r600/r600_hw_context.c
@@ -88,9 +88,6 @@ void r600_get_backend_mask(struct r600_context *ctx)
 		ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_NOP, 0, 0);
 		ctx->pm4[ctx->pm4_cdwords++] = r600_context_bo_reloc(ctx, buffer, RADEON_USAGE_WRITE);
 
-		/* execute */
-		r600_context_flush(ctx, 0);
-
 		/* analyze results */
 		results = ctx->screen->ws->buffer_map(buffer->buf, ctx->cs, PIPE_TRANSFER_READ);
 		if (results) {



More information about the mesa-commit mailing list