diff options
author | Marek Olšák <[email protected]> | 2012-05-12 13:08:02 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-05-12 23:13:45 +0200 |
commit | b496136af84e396e7890082817b563dc53ac36fc (patch) | |
tree | 4ea3cc3f6e964e3452c7bbf18ac0b3b4c25e9e18 /src/gallium/drivers/r600/r600_buffer.c | |
parent | 1a840cc5925f52079916feb2c456816a7a91d627 (diff) |
gallium: remove user_buffer_create from the interface
Nothing uses it now.
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index 857d860aaea..2f7eb513d4e 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -220,28 +220,3 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen, } return &rbuffer->b.b; } - -struct pipe_resource *r600_user_buffer_create(struct pipe_screen *screen, - void *ptr, unsigned bytes, - unsigned bind) -{ - struct r600_screen *rscreen = (struct r600_screen*)screen; - struct r600_resource *rbuffer; - - rbuffer = util_slab_alloc(&rscreen->pool_buffers); - - pipe_reference_init(&rbuffer->b.b.reference, 1); - rbuffer->b.vtbl = &r600_buffer_vtbl; - rbuffer->b.b.screen = screen; - rbuffer->b.b.target = PIPE_BUFFER; - rbuffer->b.b.format = PIPE_FORMAT_R8_UNORM; - rbuffer->b.b.usage = PIPE_USAGE_IMMUTABLE; - rbuffer->b.b.bind = bind; - rbuffer->b.b.width0 = bytes; - rbuffer->b.b.height0 = 1; - rbuffer->b.b.depth0 = 1; - rbuffer->b.b.array_size = 1; - rbuffer->b.b.flags = 0; - rbuffer->buf = NULL; - return &rbuffer->b.b; -} |