diff options
author | Kenneth Graunke <[email protected]> | 2014-04-06 23:25:00 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-04-08 00:02:03 -0700 |
commit | 169c645f12337cdc3e02b628f9cde6a9fb72acc2 (patch) | |
tree | 6495da83c2faef2f37016d0a343947b4189dde7d /src/glsl/ir_optimization.h | |
parent | 40d9337406709d0e5e143c51dc5d57921a91aab9 (diff) |
glsl: Pass ctx->Const.NativeIntegers to do_common_optimization().
The next few patches will introduce an optimization that only works when
integers are not represented as floating point values.
v2: Re-word-wrap a line, as requested by Ian Romanick.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r-- | src/glsl/ir_optimization.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h index 5f4a2f4051c..9f31826d901 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -67,7 +67,8 @@ enum lower_packing_builtins_op { bool do_common_optimization(exec_list *ir, bool linked, bool uniform_locations_assigned, unsigned max_unroll_iterations, - const struct gl_shader_compiler_options *options); + const struct gl_shader_compiler_options *options, + bool native_integers); bool do_algebraic(exec_list *instructions); bool do_constant_folding(exec_list *instructions); |