diff options
author | Marek Olšák <[email protected]> | 2017-02-09 12:03:34 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-02-10 11:27:50 +0100 |
commit | dc7483f445b8948a5c53073b7906ed8fb24e2bc1 (patch) | |
tree | dac0c232741010272f63cca0bddce06aebb9246d /src/gallium/drivers/radeon | |
parent | d86099df0af7c22c8acfd48b38ad446d9c8df6bd (diff) |
gallium/radeon: ignore the level parameter in buffer_transfer_map
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index 762181fb9d1..86163b8c90f 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -279,7 +279,6 @@ void r600_invalidate_resource(struct pipe_context *ctx, static void *r600_buffer_get_transfer(struct pipe_context *ctx, struct pipe_resource *resource, - unsigned level, unsigned usage, const struct pipe_box *box, struct pipe_transfer **ptransfer, @@ -290,7 +289,7 @@ static void *r600_buffer_get_transfer(struct pipe_context *ctx, struct r600_transfer *transfer = slab_alloc(&rctx->pool_transfers); transfer->transfer.resource = resource; - transfer->transfer.level = level; + transfer->transfer.level = 0; transfer->transfer.usage = usage; transfer->transfer.box = *box; transfer->transfer.stride = 0; @@ -373,7 +372,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx, if (staging) { data += box->x % R600_MAP_BUFFER_ALIGNMENT; - return r600_buffer_get_transfer(ctx, resource, level, usage, box, + return r600_buffer_get_transfer(ctx, resource, usage, box, ptransfer, data, staging, offset); } } else { @@ -406,7 +405,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx, } data += box->x % R600_MAP_BUFFER_ALIGNMENT; - return r600_buffer_get_transfer(ctx, resource, level, usage, box, + return r600_buffer_get_transfer(ctx, resource, usage, box, ptransfer, data, staging, 0); } } @@ -417,7 +416,7 @@ static void *r600_buffer_transfer_map(struct pipe_context *ctx, } data += box->x; - return r600_buffer_get_transfer(ctx, resource, level, usage, box, + return r600_buffer_get_transfer(ctx, resource, usage, box, ptransfer, data, NULL, 0); } |