summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-09-09 15:25:32 -0700
committerIan Romanick <[email protected]>2010-09-09 15:39:52 -0700
commit2b70dbfe091af5ae7c788e16275e1af2cb1c284c (patch)
treea871cba91b90dfba4399b9ff366b8083b11c9acf /src/mesa/program
parent547131ac8750acabd030972fc768705c13d19ef7 (diff)
glsl2: Add EmitNoNoise flag, use it to remove noise opcodes
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp3
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 7307c8506c0..6e7deae4331 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);