summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_optimization.h
Commit message (Collapse)AuthorAgeFilesLines
* glsl2: Add a pass to break ir_binop_div to _mul and _rcp.Eric Anholt2010-07-021-0/+1
| | | | This results in constant folding of a constant divisor.
* glsl2: Add a pass to convert mod(a, b) to b * fract(a/b).Eric Anholt2010-07-011-0/+1
| | | | This is used by the Mesa IR backend to implement mod, fixing glsl-fs-mod.
* glsl2: Use the parser state as the talloc context for dead code elimination.Eric Anholt2010-06-251-2/+4
| | | | This cuts runtime by around 20% from talloc_parent() lookups.
* glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt2010-06-241-0/+41