Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | glsl2: Fix ir_div_to_mul_rcp for integer division. | Eric Anholt | 2010-07-07 | 1 | -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 Anholt | 2010-07-02 | 1 | -0/+77 |
This results in constant folding of a constant divisor. |