glsl: Use i2u and u2i to implement constructor conversions.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Jun 2011 06:23:49 +0000 (23:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jun 2011 23:07:13 +0000 (16:07 -0700)
commit6b1ba7ccef18232e5586fcda2ff75ef5bd05b57b
treeac6fa8f006161412e3bda5352c83897583d61c7c
parentb633ddeb9fd951ddc49e8a3fd25a946e5a16361f
glsl: Use i2u and u2i to implement constructor conversions.

Inspired by a patch from Bryan Cain <bryancain3@gmail.com>.

Fixes piglit tests:
- ctor-int-uint.vert
- ctor-ivec4-uvec4.vert
- ctor-uint-int.vert
- ctor-uvec4-ivec4.vert

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ast_function.cpp