diff options
author | Eric Anholt <[email protected]> | 2010-07-01 10:09:58 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-01 11:07:23 -0700 |
commit | 8a1f186cc55979bb9df0a88b48da8d81460c3e7c (patch) | |
tree | 7a39126f77b75f94c09f441fdbca6c2be57d34cb /src/glsl/ir_optimization.h | |
parent | 9acf618f24428eba72650c0e328e7ed52986728e (diff) |
glsl2: Add a pass to convert mod(a, b) to b * fract(a/b).
This is used by the Mesa IR backend to implement mod, fixing glsl-fs-mod.
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 147f92176bf..1a8b740566b 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -39,5 +39,6 @@ bool do_dead_code_unlinked(struct _mesa_glsl_parse_state *state, exec_list *instructions); bool do_function_inlining(exec_list *instructions); bool do_if_simplification(exec_list *instructions); +bool do_mod_to_fract(exec_list *instructions); bool do_swizzle_swizzle(exec_list *instructions); bool do_vec_index_to_swizzle(exec_list *instructions); |