glsl: Delete LRP_TO_ARITH lowering pass flag.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Feb 2014 00:34:04 +0000 (16:34 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Feb 2014 10:16:56 +0000 (02:16 -0800)
commitac0a8b9540b29eb6faa55e4c77ba8fa99478884a
tree51825bdd208e8a7917e4738e8b809b28ee78d067
parent2fdea48e21c48f4543e1239787d34cf84ab96959
glsl: Delete LRP_TO_ARITH lowering pass flag.

Tt's kind of a trap---calling do_common_optimization() after
lower_instructions() may cause opt_algebraic() to reintroduce
ir_triop_lrp expressions that were lowered, effectively defeating the
point.  Because of this, nobody uses it.

v2: Delete more code (caught by Ian Romanick).

Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Eric Anholt <eric@anholt.net>
src/glsl/ir_optimization.h
src/glsl/lower_instructions.cpp