summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_optimization.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-10 13:06:49 -0700
committerEric Anholt <[email protected]>2010-08-13 17:47:00 -0700
commit2f4fe151681a6f6afe1d452eece6cf4144f44e49 (patch)
tree89fa7ab114f76786b6a84b83b77c8f603486457d /src/glsl/ir_optimization.h
parentc55aa4292f35a6d08b0660e23f248a37988a5f99 (diff)
glsl2: Move the common optimization passes to a helper function.
These are passes that we expect all codegen to be happy with. The other lowering passes for Mesa IR are moved to the Mesa IR generator.
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r--src/glsl/ir_optimization.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h
index 5997a30eab3..0c4e548e44c 100644
--- a/src/glsl/ir_optimization.h
+++ b/src/glsl/ir_optimization.h
@@ -28,6 +28,8 @@
* Prototypes for optimization passes to be called by the compiler and drivers.
*/
+bool do_common_optimization(exec_list *ir, bool linked);
+
bool do_algebraic(exec_list *instructions);
bool do_constant_folding(exec_list *instructions);
bool do_constant_variable(exec_list *instructions);