glsl: Add a constant_referenced method to ir_dereference*
authorOlivier Galibert <galibert@pobox.com>
Wed, 2 May 2012 21:11:39 +0000 (23:11 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 May 2012 19:55:47 +0000 (12:55 -0700)
commita270e86d382597d4d01ebcfa1693e21d778cbe6d
tree6c6ffca23f454b70e1edda4fe3efe19e83a00fff
parent6e4852a3a5f3cbe52c53d91d343a37861f207563
glsl: Add a constant_referenced method to ir_dereference*

The method is used to get a reference to an ir_constant * within the
context of evaluating an assignment when calculating a
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/ir.h
src/glsl/ir_constant_expression.cpp