diff options
author | Luca Barbieri <[email protected]> | 2010-09-05 22:29:58 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-09-08 20:36:37 -0700 |
commit | e591c4625cae63660c5000fbab366e40fe154ab0 (patch) | |
tree | 06b65ce727933c9bc7be208085c7400ed5b37f6f /src/glsl/main.cpp | |
parent | 6d3a2c97f4a78e85545286e0e126cd3a27bd1cbd (diff) |
glsl: add several EmitNo* options, and MaxUnrollIterations
This increases the chance that GLSL programs will actually work.
Note that continues and returns are not yet lowered, so linking
will just fail if not supported.
Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r-- | src/glsl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 2a7a7136ff9..94c14a58a7b 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -215,7 +215,7 @@ compile_shader(GLcontext *ctx, struct gl_shader *shader) loop_state *ls = analyze_loop_variables(shader->ir); progress = set_loop_controls(shader->ir, ls) || progress; - progress = unroll_loops(shader->ir, ls) || progress; + progress = unroll_loops(shader->ir, ls, 32) || progress; delete ls; } while (progress); |