diff options
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/r600_buffer.c | 25 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/r600_resource.c | 1 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pipe.h | 3 |
3 files changed, 0 insertions, 29 deletions
diff --git a/src/gallium/drivers/radeonsi/r600_buffer.c b/src/gallium/drivers/radeonsi/r600_buffer.c index c6b707187a8..8fd7e277431 100644 --- a/src/gallium/drivers/radeonsi/r600_buffer.c +++ b/src/gallium/drivers/radeonsi/r600_buffer.c @@ -178,31 +178,6 @@ 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; -} - void r600_upload_index_buffer(struct r600_context *rctx, struct pipe_index_buffer *ib, unsigned count) { diff --git a/src/gallium/drivers/radeonsi/r600_resource.c b/src/gallium/drivers/radeonsi/r600_resource.c index 0e861c12be3..d9be706b6b8 100644 --- a/src/gallium/drivers/radeonsi/r600_resource.c +++ b/src/gallium/drivers/radeonsi/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) diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.h b/src/gallium/drivers/radeonsi/radeonsi_pipe.h index bba4cf23691..b16ec1069c9 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.h +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.h @@ -384,9 +384,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); void r600_upload_index_buffer(struct r600_context *rctx, struct pipe_index_buffer *ib, unsigned count); |