diff options
author | Brian Paul <[email protected]> | 2009-06-25 09:30:53 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-26 13:16:34 -0600 |
commit | dd453fa37c243a98ca2e2c76d3b396e2d294350e (patch) | |
tree | 800e8e0bb32e8be893a95d270c4abe4d862fbeb1 /src/mesa/shader/slang/slang_codegen.c | |
parent | 2f1c5c58b33dc616a3744cd40fcae20971309b3c (diff) |
glsl: remove test for loop unrolling when we hit conditional cont/break
This is no longer needed since we added the new
_slang_loop_contains_continue_or_break() function/test.
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index f182ae6e06a..aa8e44cf602 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -3465,8 +3465,6 @@ _slang_gen_if(slang_assemble_ctx * A, const slang_operation *oper) if (is_operation_type(&oper->children[1], SLANG_OPER_BREAK) && !haveElseClause) { /* Special case: generate a conditional break */ - if (!A->CurLoop) /* probably trying to unroll */ - return NULL; ifBody = new_break_if_true(A, cond); return ifBody; } @@ -3475,8 +3473,6 @@ _slang_gen_if(slang_assemble_ctx * A, const slang_operation *oper) && A->CurLoopOper && A->CurLoopOper->type != SLANG_OPER_FOR) { /* Special case: generate a conditional continue */ - if (!A->CurLoop) /* probably trying to unroll */ - return NULL; ifBody = new_cont_if_true(A, cond); return ifBody; } |