cell: perform triangle cull a little earlier
authorJonathan Adamczewski <jadamcze@utas.edu.au>
Thu, 21 May 2009 14:19:00 +0000 (08:19 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 21 May 2009 14:19:00 +0000 (08:19 -0600)
commit2c007517b541ab470ad251365bd95c83002dfb16
tree3e2501e11a76dbb264575723c7401aed35f8ce1b
parentb4824520ecf453cd8de90e57e839cb11a698d9c0
cell: perform triangle cull a little earlier

In spu_tri.c:setup_sort_vertices() triangles are culled after the
vertices are sorted.  This patch moves the check a little earlier
and performs the actual check a little faster through intrinsics and
a little trickery.

Reduced code size and less work is done before a triangle is deemed
OK to skip.
src/gallium/drivers/cell/spu/spu_tri.c