diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2013-08-10 20:19:24 -0400 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-08-16 09:48:47 +0200 |
commit | a2061eea0f89b44c816e6c7570b983e8cfda41cd (patch) | |
tree | df7ea1084a69bc4c20b8ef2c11df611613756283 /src/gallium/drivers/nv50/nv50_context.c | |
parent | b3f6f127f28737d034dcf1c12a9b66b88750e93b (diff) |
nv50: add vp3/vp4 support for mpeg2/vc1
h264/mpeg4 remain disabled for pre-nvc0, there's some minor
bug/difference which causes the decoding to hang after some frames.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_context.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_context.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_context.c b/src/gallium/drivers/nv50/nv50_context.c index 185d241e70f..0ed9d8f1839 100644 --- a/src/gallium/drivers/nv50/nv50_context.c +++ b/src/gallium/drivers/nv50/nv50_context.c @@ -268,8 +268,9 @@ nv50_create(struct pipe_screen *pscreen, void *priv) pipe->create_video_decoder = nv84_create_decoder; pipe->create_video_buffer = nv84_video_buffer_create; } else { - /* Unsupported, but need to init pointers. */ - nouveau_context_init_vdec(&nv50->base); + /* VP3/4 */ + pipe->create_video_decoder = nv98_create_decoder; + pipe->create_video_buffer = nv98_video_buffer_create; } flags = NOUVEAU_BO_VRAM | NOUVEAU_BO_RD; |