BRK instruction's BranchTarget field now used for efficiently breaking out of loops.
authorBrian <brian@yutani.localnet.net>
Tue, 6 Feb 2007 01:01:02 +0000 (18:01 -0700)
committerBrian <brian@yutani.localnet.net>
Tue, 6 Feb 2007 01:01:02 +0000 (18:01 -0700)
commit2755c798f3cb89fcd4ece16cd740af1cd86a6b99
tree423205b0b37cf79f08f4b2b0a6d2a845e6f1dbc2
parent86080796471df6a9e126fd536b21c3b10cb5310c
BRK instruction's BranchTarget field now used for efficiently breaking out of loops.

BRK's BranchTarget field actually points to the top of the loop, not the
bottom, since we don't know the later's location yet.  In the interpreter,
basically do an indirect jump to update the PC.
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