From 2ec350ff1d9f13ec95d7b9d46f57ad9b9efcc8ea Mon Sep 17 00:00:00 2001 From: Christian König Date: Fri, 8 Jul 2011 12:03:13 +0200 Subject: [g3dvl] make pipe_context mandatory for creation pipe_video_context --- src/gallium/drivers/softpipe/sp_screen.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/gallium/drivers/softpipe') diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index b978fb4f61e..2a5485209d1 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -301,18 +301,11 @@ softpipe_flush_frontbuffer(struct pipe_screen *_screen, } static struct pipe_video_context * -sp_video_create(struct pipe_screen *screen, void *priv) +sp_video_create(struct pipe_screen *screen, struct pipe_context *context, void *priv) { - struct pipe_context *pipe; - assert(screen); - pipe = screen->context_create(screen, NULL); - if (!pipe) - return NULL; - - /* TODO: Use slice buffering for softpipe when implemented, no advantage to buffering an entire picture with softpipe */ - return vl_create_context(pipe); + return vl_create_context(context); } /** -- cgit v1.2.3