glsl/builtins: Simplify degenerate scalar float cases.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Sep 2010 06:16:26 +0000 (23:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Sep 2010 19:09:41 +0000 (12:09 -0700)
commit84160a0454b17306e6b9bff5b6e50e54959c5680
treec97c2cdc6995552d927bb6e13aa6011b9a2623d9
parent961f42c9bd795204e031ea6a31a2ae04ba2e4067
glsl/builtins: Simplify degenerate scalar float cases.

The code being generated was just stupid, considering that:
- normalize(x) = 1.0
- length(x) = x
- distance(x, y) = x - y
src/glsl/builtins/ir/distance
src/glsl/builtins/ir/length
src/glsl/builtins/ir/normalize