nvfx: support clip planes sensibly and fix them on nv30
authorLuca Barbieri <luca@luca-barbieri.com>
Sun, 22 Aug 2010 22:31:08 +0000 (00:31 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Mon, 23 Aug 2010 13:09:22 +0000 (15:09 +0200)
commitbfaa2577c6474222c79341c0d90685ed579f3414
tree312af7416223bf2587c17e02806c9ae64a7a533c
parenteb430b0e948caf02b9f4095d0e1435880073c2aa
nvfx: support clip planes sensibly and fix them on nv30

Before, we were discarding the compiled vertex program on each
vertex program change.

Now we compile the program as if there were 6 clip planes and
dynamically patch in an "end program" bit at the right place.

Also, nv30 should now work.
src/gallium/auxiliary/util/u_dynarray.h
src/gallium/drivers/nvfx/nv30_vertprog.h
src/gallium/drivers/nvfx/nvfx_context.c
src/gallium/drivers/nvfx/nvfx_context.h
src/gallium/drivers/nvfx/nvfx_fragprog.c
src/gallium/drivers/nvfx/nvfx_state.h
src/gallium/drivers/nvfx/nvfx_state_emit.c
src/gallium/drivers/nvfx/nvfx_vertprog.c