glsl2: Add a pass to break ir_binop_div to _mul and _rcp.
authorEric Anholt <eric@anholt.net>
Fri, 2 Jul 2010 18:27:06 +0000 (11:27 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 2 Jul 2010 18:27:06 +0000 (11:27 -0700)
commit9a0e421983edc31371440c08687fa2bb2207924d
tree95b2cab4e5f98cb61c5e4a8075186289f8526f08
parent667f4e1940c4c4660e35dc9906672a476369660f
glsl2: Add a pass to break ir_binop_div to _mul and _rcp.

This results in constant folding of a constant divisor.
src/glsl/Makefile
src/glsl/ir_div_to_mul_rcp.cpp [new file with mode: 0644]
src/glsl/ir_optimization.h
src/mesa/shader/ir_to_mesa.cpp