From b496136af84e396e7890082817b563dc53ac36fc Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 12 May 2012 13:08:02 +0200 Subject: gallium: remove user_buffer_create from the interface Nothing uses it now. --- src/gallium/drivers/galahad/glhd_screen.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/gallium/drivers/galahad') diff --git a/src/gallium/drivers/galahad/glhd_screen.c b/src/gallium/drivers/galahad/glhd_screen.c index 49702b6e424..7d03763a663 100644 --- a/src/gallium/drivers/galahad/glhd_screen.c +++ b/src/gallium/drivers/galahad/glhd_screen.c @@ -222,28 +222,6 @@ galahad_screen_resource_destroy(struct pipe_screen *screen, } -static struct pipe_resource * -galahad_screen_user_buffer_create(struct pipe_screen *_screen, - void *ptr, - unsigned bytes, - unsigned usage) -{ - struct galahad_screen *glhd_screen = galahad_screen(_screen); - struct pipe_screen *screen = glhd_screen->screen; - struct pipe_resource *result; - - result = screen->user_buffer_create(screen, - ptr, - bytes, - usage); - - if (result) - return galahad_resource_create(glhd_screen, result); - return NULL; -} - - - static void galahad_screen_flush_frontbuffer(struct pipe_screen *_screen, struct pipe_resource *_resource, @@ -323,7 +301,6 @@ galahad_screen_create(struct pipe_screen *screen) glhd_screen->base.resource_from_handle = galahad_screen_resource_from_handle; glhd_screen->base.resource_get_handle = galahad_screen_resource_get_handle; glhd_screen->base.resource_destroy = galahad_screen_resource_destroy; - glhd_screen->base.user_buffer_create = galahad_screen_user_buffer_create; glhd_screen->base.flush_frontbuffer = galahad_screen_flush_frontbuffer; glhd_screen->base.fence_reference = galahad_screen_fence_reference; glhd_screen->base.fence_signalled = galahad_screen_fence_signalled; -- cgit v1.2.3