r300g: remove user_buffer_create
authorMarek Olšák <maraeo@gmail.com>
Fri, 11 May 2012 20:34:34 +0000 (22:34 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 11 May 2012 22:50:52 +0000 (00:50 +0200)
src/gallium/drivers/r300/r300_resource.c
src/gallium/drivers/r300/r300_screen_buffer.c
src/gallium/drivers/r300/r300_screen_buffer.h

index 823bc0fa775b8619cd20fc594773538deda60f0c..46399fb2397f99e6f3d24ff4bc37b1a605491d06 100644 (file)
@@ -56,5 +56,4 @@ void r300_init_screen_resource_functions(struct r300_screen *r300screen)
    r300screen->screen.resource_from_handle = r300_texture_from_handle;
    r300screen->screen.resource_get_handle = r300_resource_get_handle;
    r300screen->screen.resource_destroy = u_resource_destroy_vtbl;
-   r300screen->screen.user_buffer_create = r300_user_buffer_create;
 }
index 7927310a5787111732263a7857dbc112c4ee6625..0c3f8702c4a74d9751f222d25a9ebbe2e09380ea 100644 (file)
@@ -181,30 +181,3 @@ struct pipe_resource *r300_buffer_create(struct pipe_screen *screen,
 
     return &rbuf->b.b;
 }
-
-struct pipe_resource *r300_user_buffer_create(struct pipe_screen *screen,
-                                             void *ptr, unsigned size,
-                                             unsigned bind)
-{
-    struct r300_screen *r300screen = r300_screen(screen);
-    struct r300_resource *rbuf;
-
-    rbuf = util_slab_alloc(&r300screen->pool_buffers);
-
-    pipe_reference_init(&rbuf->b.b.reference, 1);
-    rbuf->b.b.screen = screen;
-    rbuf->b.b.target = PIPE_BUFFER;
-    rbuf->b.b.format = PIPE_FORMAT_R8_UNORM;
-    rbuf->b.b.usage = PIPE_USAGE_IMMUTABLE;
-    rbuf->b.b.bind = bind;
-    rbuf->b.b.width0 = ~0;
-    rbuf->b.b.height0 = 1;
-    rbuf->b.b.depth0 = 1;
-    rbuf->b.b.array_size = 1;
-    rbuf->b.b.flags = 0;
-    rbuf->b.vtbl = &r300_buffer_vtbl;
-    rbuf->domain = RADEON_DOMAIN_GTT;
-    rbuf->buf = NULL;
-    rbuf->constant_buffer = NULL;
-    return &rbuf->b.b;
-}
index 482b6e424ed9358dc447947828b4fe4760ba017f..b4c8520039bf7b76c0ef48f1bbb538b302f33675 100644 (file)
@@ -44,10 +44,6 @@ void r300_upload_index_buffer(struct r300_context *r300,
 struct pipe_resource *r300_buffer_create(struct pipe_screen *screen,
                                         const struct pipe_resource *templ);
 
-struct pipe_resource *r300_user_buffer_create(struct pipe_screen *screen,
-                                             void *ptr, unsigned size,
-                                             unsigned bind);
-
 /* Inline functions. */
 
 static INLINE struct r300_buffer *r300_buffer(struct pipe_resource *buffer)