summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_ir.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-01-19 13:13:15 -0700
committerBrian <[email protected]>2007-01-19 13:13:15 -0700
commit3cec66512de9c424088ff4fd9332bcceec8ee3c6 (patch)
treeded3abcdef36414cf4c68514e3ca2c6d12628f66 /src/mesa/shader/slang/slang_ir.h
parenteff9690351c07940a976fade4302b480e9731917 (diff)
Implement do/while loops. Replace IR_CJUMP with IR_CJUMP0 and IR_CJUMP1 so
we can either jump on zero, or non-zero predicate.
Diffstat (limited to 'src/mesa/shader/slang/slang_ir.h')
-rw-r--r--src/mesa/shader/slang/slang_ir.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_ir.h b/src/mesa/shader/slang/slang_ir.h
index a337d61712b..4072c70f902 100644
--- a/src/mesa/shader/slang/slang_ir.h
+++ b/src/mesa/shader/slang/slang_ir.h
@@ -48,7 +48,8 @@ typedef enum
IR_SCOPE, /* new variable scope (one child) */
IR_LABEL, /* target of a jump or cjump */
IR_JUMP, /* unconditional jump */
- IR_CJUMP, /* conditional jump */
+ IR_CJUMP0, /* conditional jump if zero */
+ IR_CJUMP1, /* conditional jump if one (or non-zero) */
IR_COND, /* conditional expression */
IR_CALL, /* call subroutine */
IR_MOVE,