diff options
author | Eric Anholt <[email protected]> | 2010-07-12 11:04:07 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-12 13:26:46 -0700 |
commit | 6d8a0a0aadaafbab02dffcf7f89eb0210dd37b2e (patch) | |
tree | fe424ec3226da050c072fae82816448028800595 /src/glsl/ir_optimization.h | |
parent | 5723e5bb8b73cd2a3b77d750972e3d0b4d0d0ff8 (diff) |
glsl2: Add a new pass at the IR level to break down matrix ops to vector ops.
This will be used by the Mesa IR and likely most HW backends, as it
allows other optimizations to occur that might not otherwise.
Fixes glsl-vs-mat-sub-1, glsl-vs-mat-div-1.
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 b03c0644cf0..fae583df756 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -41,6 +41,7 @@ bool do_div_to_mul_rcp(exec_list *instructions); bool do_function_inlining(exec_list *instructions); bool do_if_return(exec_list *instructions); bool do_if_simplification(exec_list *instructions); +bool do_mat_op_to_vec(exec_list *instructions); bool do_mod_to_fract(exec_list *instructions); bool do_swizzle_swizzle(exec_list *instructions); bool do_vec_index_to_cond_assign(exec_list *instructions); |