remove old loop break/cont stuff
authorBrian <brian@nostromo.localnet.net>
Wed, 7 Feb 2007 23:19:19 +0000 (16:19 -0700)
committerBrian <brian@nostromo.localnet.net>
Wed, 7 Feb 2007 23:19:19 +0000 (16:19 -0700)
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_typeinfo.h

index 61b5df5a78cdc6c5880f5e1e60ae02b2b5cf725f..bd7b30cd13ab1f9d093f871f5bfb4a8bc979b73d 100644 (file)
@@ -2295,25 +2295,15 @@ _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper)
    case slang_oper_while:
       return _slang_gen_while(A, oper);
    case slang_oper_break:
-      if (!A->CurLoop && !A->CurLoopBreak) {
+      if (!A->CurLoop) {
          RETURN_ERROR("'break' not in loop", 0);
       }
-      if (UseHighLevelInstructions) {
-         return new_break(A->CurLoop);
-      }
-      else {
-         return new_jump(A->CurLoopBreak);
-      }
+      return new_break(A->CurLoop);
    case slang_oper_continue:
-      if (!A->CurLoop && !A->CurLoopCont) {
+      if (!A->CurLoop) {
          RETURN_ERROR("'continue' not in loop", 0);
       }
-      if (UseHighLevelInstructions) {
-         return new_cont(A->CurLoop);
-      }
-      else {
-         return new_jump(A->CurLoopCont);
-      }
+      return new_cont(A->CurLoop);
    case slang_oper_discard:
       return new_node0(IR_KILL);
 
index d23bb6be146a9589d0944f368fd7b4e01b0cf5a8..0f72fad0901cca596885c61c44a21083b91e8459 100644 (file)
@@ -61,8 +61,6 @@ typedef struct slang_assemble_ctx_
    struct gl_program *program;
    slang_var_table *vartable;
    struct slang_function_ *CurFunction;
-   slang_atom CurLoopBreak;
-   slang_atom CurLoopCont;
    struct slang_ir_node_ *CurLoop;
 } slang_assemble_ctx;