diff options
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer.c | 25 | ||||
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 3 | ||||
-rw-r--r-- | src/gallium/drivers/r600/r600_resource.c | 1 |
3 files changed, 0 insertions, 29 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; -} diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index a3ec9e5f7fa..d6a97077641 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -400,9 +400,6 @@ bool r600_init_resource(struct r600_screen *rscreen, unsigned bind, unsigned usage); struct pipe_resource *r600_buffer_create(struct pipe_screen *screen, const struct pipe_resource *templ); -struct pipe_resource *r600_user_buffer_create(struct pipe_screen *screen, - void *ptr, unsigned bytes, - unsigned bind); /* r600_pipe.c */ void r600_flush(struct pipe_context *ctx, struct pipe_fence_handle **fence, diff --git a/src/gallium/drivers/r600/r600_resource.c b/src/gallium/drivers/r600/r600_resource.c index de339e03512..ef0b4ceffd0 100644 --- a/src/gallium/drivers/r600/r600_resource.c +++ b/src/gallium/drivers/r600/r600_resource.c @@ -50,7 +50,6 @@ void r600_init_screen_resource_functions(struct pipe_screen *screen) screen->resource_from_handle = r600_resource_from_handle; screen->resource_get_handle = u_resource_get_handle_vtbl; screen->resource_destroy = u_resource_destroy_vtbl; - screen->user_buffer_create = r600_user_buffer_create; } void r600_init_context_resource_functions(struct r600_context *r600) |