From 3cec66512de9c424088ff4fd9332bcceec8ee3c6 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 19 Jan 2007 13:13:15 -0700 Subject: Implement do/while loops. Replace IR_CJUMP with IR_CJUMP0 and IR_CJUMP1 so we can either jump on zero, or non-zero predicate. --- src/mesa/shader/slang/slang_ir.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/shader/slang/slang_ir.h') diff --git a/src/mesa/shader/slang/slang_ir.h b/src/mesa/shader/slang/slang_ir.h index a337d61712..4072c70f90 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, -- cgit v1.2.3