diff options
author | Eric Anholt <[email protected]> | 2010-08-13 07:16:38 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-08-13 17:54:47 -0700 |
commit | 8f8cdbfba43550d0b8985fb087961864e4cd92b6 (patch) | |
tree | 3f8fb030267b1c128268e6beb84d4ab98523d81d /src/glsl/ir_optimization.h | |
parent | 42cab131dac469475c67ab38a2c29f2f66e6ff49 (diff) |
glsl2: Add a pass to strip out noop swizzles.
With the glsl2-965 branch, the optimization of glsl-algebraic-rcp-rcp
regressed due to noop swizzles hiding information from ir_algebraic.
This cleans up those noop swizzles for us.
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r-- | src/glsl/ir_optimization.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h index 0c4e548e44c..33f4bc78f79 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -48,6 +48,7 @@ bool do_if_simplification(exec_list *instructions); bool do_if_to_cond_assign(exec_list *instructions); bool do_mat_op_to_vec(exec_list *instructions); bool do_mod_to_fract(exec_list *instructions); +bool do_noop_swizzle(exec_list *instructions); bool do_structure_splitting(exec_list *instructions); bool do_sub_to_add_neg(exec_list *instructions); bool do_swizzle_swizzle(exec_list *instructions); |