cell: improvements to spu_tri.c
authorJonathan Adamczewski <jadamcze@utas.edu.a>
Mon, 5 Jan 2009 01:48:46 +0000 (18:48 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 5 Jan 2009 01:48:46 +0000 (18:48 -0700)
commitbd2e8888ed6dac7420466404f61ce5ea15bf52bc
tree3fd368f311e16473f3e002b88b978854175209dd
parent921ec940f0c639831d378d425dbc454d496da9eb
cell: improvements to spu_tri.c

Replace int setup.span{left,right}[2] with vec_uint4 setup.span.quad
SIMDize calculate_mask() and inline into into flush_spans()
Set setup.span.quad members using spu_shuffle() or spu_sel().
Reduces spu_tri.o by ~116 bytes.
src/gallium/drivers/cell/spu/spu_tri.c