summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-27 11:28:26 -0700
committerEric Anholt <[email protected]>2010-07-27 11:46:05 -0700
commit66d4c65ee2c311ea0c71c39a28456d0c11798d6b (patch)
tree1ac5615584028ada121a23c83101e6b45c28408e /src/mesa
parent8bbdf6e7cdfc3265439761a06eea79627f4ee2fa (diff)
glsl2: Make the dead code handler make its own talloc context.
This way, we don't need to pass in a parse state, and the context doesn't grow with the number of passes through optimization.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 5cc999c2e35..409b6d72881 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2237,7 +2237,7 @@ _mesa_glsl_compile_shader(GLcontext *ctx, struct gl_shader *shader)
progress = do_if_simplification(shader->ir) || progress;
progress = do_copy_propagation(shader->ir) || progress;
progress = do_dead_code_local(shader->ir) || progress;
- progress = do_dead_code_unlinked(state, shader->ir) || progress;
+ progress = do_dead_code_unlinked(shader->ir) || progress;
progress = do_constant_variable_unlinked(shader->ir) || progress;
progress = do_constant_folding(shader->ir) || progress;
progress = do_algebraic(shader->ir) || progress;