st/mesa: Add a GLSL IR to TGSI translator.
authorBryan Cain <bryancain3@gmail.com>
Tue, 26 Apr 2011 04:37:47 +0000 (23:37 -0500)
committerBryan Cain <bryancain3@gmail.com>
Mon, 1 Aug 2011 22:59:07 +0000 (17:59 -0500)
commitf379d8f73063a4c4d6cf379318c6b37118d46bfa
tree4781440de470ee78ba321f6713009864fe0466d9
parent6f243ec25d88589747c7a595903e201b90a4d767
st/mesa: Add a GLSL IR to TGSI translator.

It is still a work in progress at this point, but it produces working and
reasonably well-optimized code.

Originally based on ir_to_mesa and st_mesa_to_tgsi, but does not directly use
Mesa IR instructions in TGSI generation, instead generating TGSI from the
intermediate class glsl_to_tgsi_instruction.  It also has new optimization
passes to replace _mesa_optimize_program.
src/mesa/sources.mak
src/mesa/state_tracker/st_cb_program.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp [new file with mode: 0644]
src/mesa/state_tracker/st_glsl_to_tgsi.h [new file with mode: 0644]
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_mesa_to_tgsi.h
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h