diff options
author | Kenneth Graunke <[email protected]> | 2016-04-29 14:40:26 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-05-15 23:59:20 -0700 |
commit | 329fe93210ce8f603f831ebd8431786d12cd1057 (patch) | |
tree | ede5b4b2a66fe4cce14aa0e3204e7feea0533351 /src/compiler/glsl/ir_optimization.h | |
parent | 3bf27a9a002fd5c23937e4e34aff35c94824008f (diff) |
glsl: Consolidate duplicate copies of constant folding.
We could probably clean this up more (maybe make it a method), but at
least there's only one copy of this code now, and that's a start.
No change in shader-db.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_optimization.h')
-rw-r--r-- | src/compiler/glsl/ir_optimization.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir_optimization.h b/src/compiler/glsl/ir_optimization.h index f9599a39ff5..5fc27409a05 100644 --- a/src/compiler/glsl/ir_optimization.h +++ b/src/compiler/glsl/ir_optimization.h @@ -73,6 +73,8 @@ bool do_common_optimization(exec_list *ir, bool linked, const struct gl_shader_compiler_options *options, bool native_integers); +bool ir_constant_fold(ir_rvalue **rvalue); + bool do_rebalance_tree(exec_list *instructions); bool do_algebraic(exec_list *instructions, bool native_integers, const struct gl_shader_compiler_options *options); |