diff options
Diffstat (limited to 'src/gallium/winsys/g3dvl/radeon/radeon_vl.c')
-rw-r--r-- | src/gallium/winsys/g3dvl/radeon/radeon_vl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/winsys/g3dvl/radeon/radeon_vl.c b/src/gallium/winsys/g3dvl/radeon/radeon_vl.c index 269a9577a..65fad38f5 100644 --- a/src/gallium/winsys/g3dvl/radeon/radeon_vl.c +++ b/src/gallium/winsys/g3dvl/radeon/radeon_vl.c @@ -34,7 +34,6 @@ #include <fcntl.h> - #include "radeon_buffer.h" #include "radeon_r300.h" #include "r300_screen.h" @@ -328,7 +327,8 @@ struct pipe_screen *vl_screen_create(Display *display, int screen) return screen_pipe; } -struct pipe_video_context *vl_video_create(struct pipe_screen *screen, +struct pipe_video_context *vl_video_create(Display *display, int screen, + struct pipe_screen *p_screen, enum pipe_video_profile profile, enum pipe_video_chroma_format chr_f, unsigned int width, @@ -337,14 +337,14 @@ struct pipe_video_context *vl_video_create(struct pipe_screen *screen, struct pipe_video_context *vpipe; struct radeon_vl_context *rvl_ctx; - assert(screen); + assert(p_screen); assert(width && height); /* create radeon pipe_context */ switch(u_reduce_video_profile(profile)) { case PIPE_VIDEO_CODEC_MPEG12: - vpipe = radeon_mpeg12_context_create(screen, profile, chr_f, + vpipe = radeon_mpeg12_context_create(p_screen, profile, chr_f, width, height); break; default: @@ -353,8 +353,9 @@ struct pipe_video_context *vl_video_create(struct pipe_screen *screen, /* create radeon_vl_context */ rvl_ctx = calloc(1, sizeof(struct radeon_vl_context)); + rvl_ctx->display = display; rvl_ctx->screen = screen; - rvl_ctx->vpipe = vpipe; + vpipe->priv = rvl_ctx; return vpipe; |