glsl: Pass ctx->Const.NativeIntegers to do_algebraic.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Apr 2014 06:28:02 +0000 (23:28 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Apr 2014 07:02:06 +0000 (00:02 -0700)
commit73f80c20f68cd30421c13da29d7d7801ed096101
tree6478908221483953d212402d595ce60f4bb84f74
parent169c645f12337cdc3e02b628f9cde6a9fb72acc2
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 <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/glsl_parser_extras.cpp
src/glsl/ir_optimization.h
src/glsl/opt_algebraic.cpp
src/glsl/test_optpass.cpp