glsl: fix a bug involving 'continue' in 'for' loops
authorBrian Paul <brianp@vmware.com>
Tue, 23 Jun 2009 19:33:28 +0000 (13:33 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Jun 2009 19:16:33 +0000 (13:16 -0600)
commit2102e301a7f218c26878deaed2d94c15cd53f292
tree4f98c71b87c7eeb70a1ce9f8430a0e348807ef4a
parent541594b04432710b5dba74277443420c9aa97e04
glsl: fix a bug involving 'continue' in 'for' loops

Need to execute the for loop's increment code before we continue.
Add a slang_assemble_ctx::CurLoopOper field to keep track of the containing
loop and avoid the "cont if true" path in this situation.

Plus, assorted clean-ups.
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_codegen.h