aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_div_to_mul_rcp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* glsl2: Fix ir_div_to_mul_rcp for integer division.Eric Anholt2010-07-071-9/+47
| | | | | | 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.
* glsl2: Add a pass to break ir_binop_div to _mul and _rcp.Eric Anholt2010-07-021-0/+77
This results in constant folding of a constant divisor.