diff options
author | Christian König <[email protected]> | 2011-03-17 00:08:20 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2011-03-17 00:08:20 +0100 |
commit | a1fecd09c2c5fdba3da5c38fce567b5bd2e6053d (patch) | |
tree | 5c3dff571cfaabd94142e0c005d25c95807d1e77 /src/gallium/drivers/nv40 | |
parent | e87bd8c9578dee384ff03039aa792e1a8dae7f36 (diff) |
[g3dvl] move mpeg12 context out of softpipe
Diffstat (limited to 'src/gallium/drivers/nv40')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_video_context.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gallium/drivers/nv40/nv40_video_context.c b/src/gallium/drivers/nv40/nv40_video_context.c index e6e57ee787c..35395e848fc 100644 --- a/src/gallium/drivers/nv40/nv40_video_context.c +++ b/src/gallium/drivers/nv40/nv40_video_context.c @@ -26,7 +26,8 @@ **************************************************************************/ #include "nv40_video_context.h" -#include <softpipe/sp_video_context.h> +#include "util/u_video.h" +#include <vl/vl_mpeg12_context.h> struct pipe_video_context * nv40_video_create(struct pipe_screen *screen, enum pipe_video_profile profile, @@ -41,7 +42,14 @@ nv40_video_create(struct pipe_screen *screen, enum pipe_video_profile profile, if (!pipe) return NULL; - return sp_video_create_ex(pipe, profile, chroma_format, width, height, - VL_MPEG12_MC_RENDERER_BUFFER_PICTURE, - true); + switch (u_reduce_video_profile(profile)) { + case PIPE_VIDEO_CODEC_MPEG12: + return vl_create_mpeg12_context(pipe, profile, + chroma_format, + width, height, + true, + PIPE_FORMAT_XYUV); + default: + return NULL; + } } |