glsl: Bitwise conversion operator support in ir_constant_expression.
authorOlivier Galibert <galibert@pobox.com>
Tue, 8 May 2012 18:40:35 +0000 (20:40 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Jun 2012 07:06:18 +0000 (00:06 -0700)
commitabe976755318fa9dd88a5c48289623ab7c12ce02
tree6921bd0f129efc5e2c3ca41afe1f8b12d2ed2579
parent1b8a3aad09d67e72903fdcc79beadfc3c77cae62
glsl: Bitwise conversion operator support in ir_constant_expression.

A "test_out = floatBitsToUint(-1.0);" fired through the GLSL compiler
gives a correct "(assign (x) (var_ref test_out)
(constant uint (3212836864)))"

Signed-off-by: Olivier Galibert <galibert@pobox.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_constant_expression.cpp