glsl_to_tgsi: separate immediates from array constants during IR translation
authorBryan Cain <bryancain3@gmail.com>
Thu, 21 Jul 2011 20:49:26 +0000 (15:49 -0500)
committerBryan Cain <bryancain3@gmail.com>
Mon, 1 Aug 2011 22:59:09 +0000 (17:59 -0500)
commit7732822c833ee22e259af3f8bd2bfb57c986612e
tree16781cee1e751e00f0cec6a52e176a7a79f114fb
parent87f8d8547db9b947ae847c509a464e06d0ac6c64
glsl_to_tgsi: separate immediates from array constants during IR translation

Before, if any uniform or constant array was accessed with indirect
addressing, st_translate_program() would emit uniform constants in the place
of immediates.  This behavior was unavoidable with ir_to_mesa/mesa_to_tgsi, but
glsl_to_tgsi can work around it since the GLSL IR backend and the TGSI
emission are both inside the state tracker.
src/mesa/state_tracker/st_glsl_to_tgsi.cpp