diff options
author | Marek Olšák <maraeo@gmail.com> | 2012-05-12 13:08:02 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2012-05-12 23:13:45 +0200 |
commit | b496136af84e396e7890082817b563dc53ac36fc (patch) | |
tree | 4ea3cc3f6e964e3452c7bbf18ac0b3b4c25e9e18 /src/gallium/drivers/noop | |
parent | 1a840cc5925f52079916feb2c456816a7a91d627 (diff) |
gallium: remove user_buffer_create from the interface
Nothing uses it now.
Diffstat (limited to 'src/gallium/drivers/noop')
-rw-r--r-- | src/gallium/drivers/noop/noop_pipe.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gallium/drivers/noop/noop_pipe.c b/src/gallium/drivers/noop/noop_pipe.c index e47f944b59..4c233d1ec4 100644 --- a/src/gallium/drivers/noop/noop_pipe.c +++ b/src/gallium/drivers/noop/noop_pipe.c @@ -142,23 +142,6 @@ static void noop_resource_destroy(struct pipe_screen *screen, FREE(resource); } -static struct pipe_resource *noop_user_buffer_create(struct pipe_screen *screen, - void *ptr, unsigned bytes, - unsigned bind) -{ - struct pipe_resource templ; - - templ.target = PIPE_BUFFER; - templ.format = PIPE_FORMAT_R8_UNORM; - templ.usage = PIPE_USAGE_IMMUTABLE; - templ.bind = bind; - templ.width0 = bytes; - templ.height0 = 1; - templ.depth0 = 1; - templ.flags = 0; - return noop_resource_create(screen, &templ); -} - /* * transfer @@ -392,7 +375,6 @@ struct pipe_screen *noop_screen_create(struct pipe_screen *oscreen) screen->resource_from_handle = noop_resource_from_handle; screen->resource_get_handle = noop_resource_get_handle; screen->resource_destroy = noop_resource_destroy; - screen->user_buffer_create = noop_user_buffer_create; screen->flush_frontbuffer = noop_flush_frontbuffer; return screen; |