diff options
author | Kenneth Graunke <[email protected]> | 2014-04-06 23:28:02 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-04-08 00:02:06 -0700 |
commit | 73f80c20f68cd30421c13da29d7d7801ed096101 (patch) | |
tree | 6478908221483953d212402d595ce60f4bb84f74 /src/glsl/glsl_parser_extras.cpp | |
parent | 169c645f12337cdc3e02b628f9cde6a9fb72acc2 (diff) |
glsl: Pass ctx->Const.NativeIntegers to do_algebraic.
The next patch will introduce an optimization that only works when
integers are not represented as floating point values.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 532b6a5e7c0..a42f3d23df0 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -1530,7 +1530,7 @@ do_common_optimization(exec_list *ir, bool linked, progress = do_constant_variable_unlinked(ir) || progress; progress = do_constant_folding(ir) || progress; progress = do_cse(ir) || progress; - progress = do_algebraic(ir) || progress; + progress = do_algebraic(ir, native_integers) || progress; progress = do_lower_jumps(ir) || progress; progress = do_vec_index_to_swizzle(ir) || progress; progress = lower_vector_insert(ir, false) || progress; |