summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_optimization.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-26 22:50:29 -0700
committerEric Anholt <[email protected]>2010-07-27 09:43:52 -0700
commit832aad989e3d319a8aaac046aa49df25da134d82 (patch)
treea0646404b655dbaac4ef112074ad985d02b4dea7 /src/glsl/ir_optimization.h
parent5533c6e38030ff6e26375a1a4e4bfa9ab2204d4c (diff)
glsl2: Add optimization pass for algebraic simplifications.
This cleans up the assembly output of almost all the non-logic tests glsl-algebraic-*. glsl-algebraic-pow-two needs love (basically, flattening to a temporary and squaring it).
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r--src/glsl/ir_optimization.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h
index 06cb4d22ca8..4f39565e5f1 100644
--- a/src/glsl/ir_optimization.h
+++ b/src/glsl/ir_optimization.h
@@ -23,11 +23,12 @@
/**
- * \file ir_dead_code.h
+ * \file ir_optimization.h
*
* Prototypes for optimization passes to be called by the compiler and drivers.
*/
+bool do_algebraic(exec_list *instructions);
bool do_constant_folding(exec_list *instructions);
bool do_constant_variable(exec_list *instructions);
bool do_constant_variable_unlinked(exec_list *instructions);