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/r300/r300_screen.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/r300/r300_screen.c') diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index 53437d3ad08..854fc39e014 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -25,6 +25,7 @@ #include "util/u_format_s3tc.h" #include "util/u_memory.h" #include "os/os_time.h" +#include "vl/vl_context.h" #include "vl/vl_video_buffer.h" #include "r300_context.h" @@ -32,7 +33,6 @@ #include "r300_screen_buffer.h" #include "r300_state_inlines.h" #include "r300_public.h" -#include "r300_video_context.h" #include "draw/draw_context.h" @@ -425,6 +425,14 @@ static boolean r300_is_format_supported(struct pipe_screen* screen, return retval == usage; } +static struct pipe_video_context * +r300_video_create(struct pipe_screen *screen, struct pipe_context *pipe, void *priv) +{ + assert(screen); + + return vl_create_context(pipe); +} + static void r300_destroy_screen(struct pipe_screen* pscreen) { struct r300_screen* r300screen = r300_screen(pscreen); -- cgit v1.2.3