Shuffle some code around in the emit_tex() and emit_move() instructions.
authorBrian <brian@yutani.localnet.net>
Tue, 13 Mar 2007 16:49:08 +0000 (10:49 -0600)
committerBrian <brian@yutani.localnet.net>
Tue, 13 Mar 2007 16:49:08 +0000 (10:49 -0600)
commit8b9842a2560a1254e98b5e01927f73917a0597fc
treeaa5b8e18f274e49829256058194127b0ea90d967
parent7265e6928e873312d53eba4c24fcd3002e806831
Shuffle some code around in the emit_tex() and emit_move() instructions.

Note that the inst ptr returned by new_instruction() may become invalid
after calling emit_() since the emit functions may allocate new instructions
which is done vial realloc().
Also, add some new assertions to try to catch this kind of bug.
src/mesa/shader/slang/slang_emit.c