glsl: Add a variable context to constant_expression_value().
authorOlivier Galibert <galibert@pobox.com>
Wed, 2 May 2012 21:11:38 +0000 (23:11 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 May 2012 19:55:46 +0000 (12:55 -0700)
commit6e4852a3a5f3cbe52c53d91d343a37861f207563
tree9f15052bae230f5511ff3f462de278faeae3ac79
parent27a198388ed78c83d9a255efc0fb2294d985f3ad
glsl: Add a variable context to constant_expression_value().

Signed-off-by: Olivier Galibert <galibert@pobox.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net> [v1]
src/glsl/ast_function.cpp
src/glsl/ir.h
src/glsl/ir_constant_expression.cpp