diff options
author | Eric Anholt <eric@anholt.net> | 2010-08-09 21:22:17 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-08-09 21:41:14 -0700 |
commit | 5854d4583c6e8885185e12a0636f77489a62e24c (patch) | |
tree | 38a132c8c1d5a1f09fc4733da1584fe5dbdd47a3 /src/glsl/Makefile | |
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.
Diffstat (limited to 'src/glsl/Makefile')
-rw-r--r-- | src/glsl/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/Makefile b/src/glsl/Makefile index 841e2b9ce9..85298d06a0 100644 --- a/src/glsl/Makefile +++ b/src/glsl/Makefile @@ -59,6 +59,7 @@ CXX_SOURCES = \ ir_reader.cpp \ ir_set_program_inouts.cpp \ ir_structure_splitting.cpp \ + ir_sub_to_add_neg.cpp \ ir_swizzle_swizzle.cpp \ ir_tree_grafting.cpp \ ir_validate.cpp \ |