commit | 5854d4583c6e8885185e12a0636f77489a62e24c | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Mon Aug 09 21:22:17 2010 -0700 |
committer | Eric Anholt <eric@anholt.net> | Mon Aug 09 21:41:14 2010 -0700 |
tree | 38a132c8c1d5a1f09fc4733da1584fe5dbdd47a3 | |
parent | 8bebbeb7c5b26ec9166a4644a2c051238d18509b [diff] |
glsl2: Add a pass to transform ir_binop_sub to add(op0, neg(op1)) All the current HW backends transform subtract to adding the negation, so I haven't bothered peepholing it back out in Mesa IR. This allows some subtract of subtract to get removed in ir_algebraic.