Use IR node's BranchNode field for IF/ELSE/ENDIF instructions.
authorBrian <brian@yutani.localnet.net>
Tue, 6 Feb 2007 00:18:10 +0000 (17:18 -0700)
committerBrian <brian@yutani.localnet.net>
Tue, 6 Feb 2007 00:18:10 +0000 (17:18 -0700)
commit86080796471df6a9e126fd536b21c3b10cb5310c
tree26d7c96f3aa66061aacf5c9ca68f1a073b685f93
parentd9731b26e759671d63e357eee2c921e90448ada2
Use IR node's BranchNode field for IF/ELSE/ENDIF instructions.

This allows us to back-patch the IF/ELSE instruction's BranchTarget field
to point to the location of the ELSE/ENDIF instructions.  No longer have to
search for ELSE/ENDIF in the interpreter.  Also makes it trivial to translate
IF/ELSE instructions into conditional/unconditional BRA instructions.
src/mesa/shader/prog_print.c
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_emit.c
src/mesa/swrast/s_fragprog.c