st/mesa: better handling of indirect addressing of temp/const register files
authorBrian Paul <brianp@vmware.com>
Fri, 30 Jul 2010 20:27:03 +0000 (14:27 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Jul 2010 20:29:19 +0000 (14:29 -0600)
commitb3e3d0da586812c61f7bd3933a9a3c2511b8d55b
treec161235865ad8a6b1e43bb85c5a0e5a1dcc02480
parent56643096f1eb01eefa1a532ac096b32d23b6b8ba
st/mesa: better handling of indirect addressing of temp/const register files

With gl_program::IndirectRegisterFiles we can distinguish between indirect
addressing of constants vs. temporaries.  In the case of temporaries,
declare all temps up front sequentially.

Fixes fd.o bug 29305.
src/mesa/state_tracker/st_mesa_to_tgsi.c