cell: implement function calls from shader code. fslight demo runs now.
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 9 Oct 2008 02:44:32 +0000 (20:44 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 9 Oct 2008 02:44:32 +0000 (20:44 -0600)
commitd48a92e88040470f93e2186f8eb23e4797a09860
tree7fbfd01dc04b42e42b4457eae507693ef8dc5f3b
parenta4e477433f485a39b5de448d0a9cb6f4bf9bb90f
cell: implement function calls from shader code.  fslight demo runs now.

Used for SIN, COS, EXP2, LOG2, POW instructions.  TEX next.

Fixed some bugs in MIN, MAX, DP3, DP4, DPH instructions.

In rtasm code:
  Special-case spe_lqd(), spe_stqd() functions so they take byte offsets but
  low-order 4 bits are shifted out.  This makes things consistant with SPU
  assembly language conventions.
  Added spe_get_registers_used() function.
src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
src/gallium/auxiliary/rtasm/rtasm_ppc_spe.h
src/gallium/drivers/cell/ppu/cell_gen_fp.c
src/gallium/drivers/cell/ppu/cell_vertex_fetch.c