diff options
author | Christian König <[email protected]> | 2011-07-08 12:03:13 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2011-07-08 12:03:13 +0200 |
commit | 2ec350ff1d9f13ec95d7b9d46f57ad9b9efcc8ea (patch) | |
tree | 64c473beacf39929a013d728b3639bdd98407f91 /src/gallium/drivers/softpipe | |
parent | 7eca76952b6726be9459375dde7478a01789577e (diff) |
[g3dvl] make pipe_context mandatory for creation pipe_video_context
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 11 |
1 files changed, 2 insertions, 9 deletions
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); } /** |