freedreno: add tgsi lowering pass
authorRob Clark <robclark@freedesktop.org>
Wed, 15 Jan 2014 13:08:18 +0000 (08:08 -0500)
committerRob Clark <robclark@freedesktop.org>
Sat, 1 Feb 2014 16:50:10 +0000 (11:50 -0500)
commit0f2df4ff90b255456cfd45f5582016744fbfd0f7
tree8c0643444b09947e41d618041fd020eb036e4b70
parent752475619997ce1d596dd0073d0fa5785d8f2646
freedreno: add tgsi lowering pass

Currently lowers the following instructions:

   DST, XPD, SCS, LRP, FRC, POW, LIT, EXP, LOG, DP4,
   DP3, DPH, DP2

translating these into equivalent simpler TGSI instructions.

This probably should be moved to util so other drivers can use
it, but just adding under freedreno for now so that I can clear
out a lot of the lowering code in a3xx compiler before beginning
to add new compiler.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/Makefile.sources
src/gallium/drivers/freedreno/a3xx/fd3_program.c
src/gallium/drivers/freedreno/freedreno_lowering.c [new file with mode: 0644]
src/gallium/drivers/freedreno/freedreno_lowering.h [new file with mode: 0644]