summaryrefslogtreecommitdiff
path: root/src/glsl/ir_div_to_mul_rcp.cpp
AgeCommit message (Collapse)Author
2010-07-07glsl2: Fix ir_div_to_mul_rcp for integer division.Eric Anholt
rcp of an integer value did not produce the result you're looking for. Instead, do the a * rcp(b) as float and truncate after. This mostly fixes glsl-fs-loop-nested.
2010-07-02glsl2: Add a pass to break ir_binop_div to _mul and _rcp.Eric Anholt
This results in constant folding of a constant divisor.