r600g: optimise draw vbo function a bit more.
authorDave Airlie <airlied@redhat.com>
Tue, 21 Jun 2011 04:20:49 +0000 (14:20 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 21 Jun 2011 04:20:49 +0000 (14:20 +1000)
commit59a402cecd74e0a7a277f5af0b8a2707857846ed
tree3a13ea7601dbbf9621d6e8a07f2c05a0de3dbb46
parentabe74a9820bc5b512ab24518622368db20187637
r600g: optimise draw vbo function a bit more.

this drop a bunch of unnecessary checks (i.e. should be trapped
at gallium level), and also removes the switch statement in favour
of some calculated values for the vgt values.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_state_common.c