diff options
author | Marek Olšák <[email protected]> | 2012-02-26 19:00:26 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-02-27 16:22:34 +0100 |
commit | ab1328882101f67335a332e940fea92eeaf70e12 (patch) | |
tree | 06ec856cdc528a65d6384e41813c278251384357 /src/gallium/drivers/r600/r600_buffer.c | |
parent | 335facb502199353e6f73c8ba20a2bb4ff7bf336 (diff) |
r600g: use u_default_transfer_inline_write for all resource types
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index 2fc93e806b6..454d448beed 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -111,29 +111,6 @@ static void r600_transfer_destroy(struct pipe_context *ctx, util_slab_free(&rctx->pool_transfers, transfer); } -static void r600_buffer_transfer_inline_write(struct pipe_context *pipe, - struct pipe_resource *resource, - unsigned level, - unsigned usage, - const struct pipe_box *box, - const void *data, - unsigned stride, - unsigned layer_stride) -{ - struct r600_context *rctx = (struct r600_context*)pipe; - struct r600_resource *rbuffer = r600_resource(resource); - uint8_t *map = NULL; - - assert(rbuffer->b.user_ptr == NULL); - - map = rctx->ws->buffer_map(rbuffer->buf, rctx->cs, - PIPE_TRANSFER_WRITE | PIPE_TRANSFER_DISCARD_RANGE | usage); - - memcpy(map + box->x, data, box->width); - - rctx->ws->buffer_unmap(rbuffer->buf); -} - static const struct u_resource_vtbl r600_buffer_vtbl = { u_default_resource_get_handle, /* get_handle */ @@ -143,7 +120,7 @@ static const struct u_resource_vtbl r600_buffer_vtbl = r600_buffer_transfer_map, /* transfer_map */ r600_buffer_transfer_flush_region, /* transfer_flush_region */ r600_buffer_transfer_unmap, /* transfer_unmap */ - r600_buffer_transfer_inline_write /* transfer_inline_write */ + NULL /* transfer_inline_write */ }; bool r600_init_resource(struct r600_screen *rscreen, |