nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 16 Jul 2013 21:50:43 +0000 (17:50 -0400)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Thu, 18 Jul 2013 05:52:32 +0000 (07:52 +0200)
commitfbdae1ca41946af374c7924fd4c296199172890d
treec5cbfa59180eb586e0efebd9a99fa5c4e23dd276
parentf96c07abf6ded1ac07a1e8fe3952321ec170193d
nv50: H.264/MPEG2 decoding support via VP2, available on NV84-NV96, NVA0

Adds H.264 and MPEG2 codec support via VP2, using firmware from the
blob. Acceleration is supported at the bitstream level for H.264 and
IDCT level for MPEG2.

Known issues:
 - H.264 interlaced doesn't render properly
 - H.264 shows very occasional artifacts on a small fraction of videos
 - MPEG2 + VDPAU shows frequent but small artifacts, which aren't there
   when using XvMC on the same videos

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nv50/Makefile.sources
src/gallium/drivers/nv50/nv50_context.c
src/gallium/drivers/nv50/nv50_context.h
src/gallium/drivers/nv50/nv50_miptree.c
src/gallium/drivers/nv50/nv50_resource.h
src/gallium/drivers/nv50/nv50_screen.c
src/gallium/drivers/nv50/nv50_winsys.h
src/gallium/drivers/nv50/nv84_video.c [new file with mode: 0644]
src/gallium/drivers/nv50/nv84_video.h [new file with mode: 0644]
src/gallium/drivers/nv50/nv84_video_bsp.c [new file with mode: 0644]
src/gallium/drivers/nv50/nv84_video_vp.c [new file with mode: 0644]