glsl: Add support for constant expression evaluation on trunc().
authorEric Anholt <eric@anholt.net>
Tue, 27 Sep 2011 21:50:45 +0000 (14:50 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 28 Sep 2011 19:09:09 +0000 (12:09 -0700)
commit9f220bd1353b3d141d6a0308103ff403d8653e23
treeb42a6cd463947c0f00b79a3e3d0085af81aae736
parent158a5854502ce071e3f07d4ad9622b8ddb3c9859
glsl: Add support for constant expression evaluation on trunc().

Fixes the glsl-1.30/compiler/built-in-functions/trunc-* tests under 1.30.

Reviewed-by: Chad Versace <chad@chad-versace.us>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_constant_expression.cpp