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/r300/r300_screen.c | |
parent | 7eca76952b6726be9459375dde7478a01789577e (diff) |
[g3dvl] make pipe_context mandatory for creation pipe_video_context
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 10 |
1 files changed, 9 insertions, 1 deletions
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); |