diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-09-09 15:25:32 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-09-09 15:39:52 -0700 |
commit | 2b70dbfe091af5ae7c788e16275e1af2cb1c284c (patch) | |
tree | a871cba91b90dfba4399b9ff366b8083b11c9acf /src/mesa/program/ir_to_mesa.cpp | |
parent | 547131ac8750acabd030972fc768705c13d19ef7 (diff) |
glsl2: Add EmitNoNoise flag, use it to remove noise opcodes
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 7307c8506c..6e7deae433 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2734,6 +2734,9 @@ _mesa_ir_link_shader(GLcontext *ctx, struct gl_shader_program *prog) if (options->EmitNoIfs) progress = do_if_to_cond_assign(ir) || progress; + if (options->EmitNoNoise) + progress = lower_noise(ir) || progress; + progress = do_vec_index_to_cond_assign(ir) || progress; } while (progress); |