nv50: Xv support
authorBen Skeggs <skeggsb@gmail.com>
Tue, 8 Jul 2008 02:09:09 +0000 (12:09 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Tue, 8 Jul 2008 02:10:52 +0000 (12:10 +1000)
commit17fbd810748b61b298c1ea9729d94f7d1177253b
tree69b7354bf599770b747e704c5956b75594d86f8e
parentec452786d9aa3b6db41f1ab3c89aaa20a758f89e
nv50: Xv support

The NV12 YCbCr->RGB shader is hand-written just like the composite shaders,
hopefully correct!  I'll probably put a disasm next to each opcode at some
point so it doesn't look like just a bunch of magics.

You'll need to use a composite manager if you want to watch videos, we can't
render directly to the screen for the same reasons as mentioned in the
composite commit.  Though, a simple workaround is possible in the Xv case,
so that'll probably come at some point.  For now, PutImage() will fail with
BadMatch.

The Y and UV plane upload may not be 100% for what NV50 requires, I want to
rework all that at some point anyway.  For now, at least there's some form
of accelerated video to work with.

Enjoy :)
src/Makefile.am
src/nouveau_bo.c
src/nouveau_bo.h
src/nouveau_xv.c
src/nv50_exa.c
src/nv50_texture.h
src/nv50_xv.c [new file with mode: 0644]
src/nv_proto.h