summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-07-08 12:03:13 +0200
committerChristian König <[email protected]>2011-07-08 12:03:13 +0200
commit2ec350ff1d9f13ec95d7b9d46f57ad9b9efcc8ea (patch)
tree64c473beacf39929a013d728b3639bdd98407f91 /src/gallium/drivers/softpipe
parent7eca76952b6726be9459375dde7478a01789577e (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.c11
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);
}
/**