Merge remote branch 'origin/master' into pipe-video
[mesa.git] / src / gallium / drivers / r600 / r600_video_context.c
1 #include "r600_video_context.h"
2 #include <softpipe/sp_video_context.h>
3
4 struct pipe_video_context *
5 r600_video_create(struct pipe_screen *screen, enum pipe_video_profile profile,
6 enum pipe_video_chroma_format chroma_format,
7 unsigned width, unsigned height, void *priv)
8 {
9 struct pipe_context *pipe;
10
11 assert(screen);
12
13 pipe = screen->context_create(screen, priv);
14 if (!pipe)
15 return NULL;
16
17 return sp_video_create_ex(pipe, profile, chroma_format, width, height,
18 VL_MPEG12_MC_RENDERER_BUFFER_PICTURE,
19 true,
20 PIPE_FORMAT_VUYX);
21 }