summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-04-26 12:11:12 +0200
committerMarek Olšák <[email protected]>2012-04-29 14:48:45 +0200
commitc69248fa3fdd2cad86166ea1d21b88dfda155d17 (patch)
tree68027ad1f869cf242aa889ac855849ec20134558 /src/gallium/drivers/r600
parent498e71c156c9292a30081ebd92f519f882ef7fab (diff)
r600g: make r600_buffer_transfer_unmap a no-op
It's a no-op already in the winsys.
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_buffer.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c
index eec85d1021e..a3d63a68b5a 100644
--- a/src/gallium/drivers/r600/r600_buffer.c
+++ b/src/gallium/drivers/r600/r600_buffer.c
@@ -139,13 +139,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *pipe,
static void r600_buffer_transfer_unmap(struct pipe_context *pipe,
struct pipe_transfer *transfer)
{
- struct r600_resource *rbuffer = r600_resource(transfer->resource);
- struct r600_context *rctx = (struct r600_context*)pipe;
-
- if (rbuffer->b.b.user_ptr)
- return;
-
- rctx->ws->buffer_unmap(rbuffer->cs_buf);
+ /* no-op */
}
static void r600_transfer_destroy(struct pipe_context *ctx,