glsl: Pass ctx->Const.NativeIntegers to do_common_optimization().
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Apr 2014 06:25:00 +0000 (23:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Apr 2014 07:02:03 +0000 (00:02 -0700)
commit169c645f12337cdc3e02b628f9cde6a9fb72acc2
tree6495da83c2faef2f37016d0a343947b4189dde7d
parent40d9337406709d0e5e143c51dc5d57921a91aab9
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>
src/glsl/glsl_parser_extras.cpp
src/glsl/ir_optimization.h
src/glsl/linker.cpp
src/glsl/test_optpass.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/main/ff_fragment_shader.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp