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 <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Kenneth Graunke
2014-04-06 23:25:00 -07:00
parent 40d9337406
commit 169c645f12
8 changed files with 18 additions and 9 deletions

View File

@@ -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);