summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_optimization.h
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/glsl/ir_optimization.h
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/glsl/ir_optimization.h')
-rw-r--r--src/glsl/ir_optimization.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h
index 4f39565e5f1..5dbb025d357 100644
--- a/src/glsl/ir_optimization.h
+++ b/src/glsl/ir_optimization.h
@@ -33,11 +33,9 @@ bool do_constant_folding(exec_list *instructions);
bool do_constant_variable(exec_list *instructions);
bool do_constant_variable_unlinked(exec_list *instructions);
bool do_copy_propagation(exec_list *instructions);
-bool do_dead_code(struct _mesa_glsl_parse_state *state,
- exec_list *instructions);
+bool do_dead_code(exec_list *instructions);
bool do_dead_code_local(exec_list *instructions);
-bool do_dead_code_unlinked(struct _mesa_glsl_parse_state *state,
- exec_list *instructions);
+bool do_dead_code_unlinked(exec_list *instructions);
bool do_div_to_mul_rcp(exec_list *instructions);
bool do_function_inlining(exec_list *instructions);
bool do_if_return(exec_list *instructions);