nv40: implement user clip planes
authorBen Skeggs <skeggsb@gmail.com>
Mon, 7 Apr 2008 10:10:40 +0000 (20:10 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Mon, 7 Apr 2008 11:43:29 +0000 (21:43 +1000)
commit2655f6901289bcfe3835cf28d7b9eefa242045b8
tree220e78d1dd1b6b2af2da986870106c928572ce53
parent2946a5a012f494bad280a0ecf082d81ed4e89c3b
nv40: implement user clip planes

It turns out the user planes handed to the driver are already in clip space.
Hence, we no longer need to transform incoming vertices before computing the
clip distance, and no longer need to change the interface provided by
gallium.  Yay :)

The clip state change handling could be better, but this works.
src/gallium/drivers/nv40/Makefile
src/gallium/drivers/nv40/nv40_context.h
src/gallium/drivers/nv40/nv40_draw.c
src/gallium/drivers/nv40/nv40_state.h
src/gallium/drivers/nv40/nv40_state_clip.c [deleted file]
src/gallium/drivers/nv40/nv40_state_emit.c
src/gallium/drivers/nv40/nv40_vertprog.c