glsl: Introduce a new "const_in" variable mode.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Jan 2011 23:37:37 +0000 (15:37 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 31 Jan 2011 19:10:59 +0000 (11:10 -0800)
commit819d57fce94b20fa0d34da6f037f0a53c4a5bdc2
treeea4c12c2a582e0f4a4119b4ace0bfecc5245d14b
parentc5a27b5939427bdc95c926b450ed3de1ff4baafb
glsl: Introduce a new "const_in" variable mode.

This annotation is for an "in" function parameter for which it is only legal
to pass constant expressions.  The only known example of this, currently,
is the textureOffset functions.

This should never be used for globals.
12 files changed:
src/glsl/ast_function.cpp
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/ir_function.cpp
src/glsl/ir_print_visitor.cpp
src/glsl/ir_reader.cpp
src/glsl/ir_variable.cpp
src/glsl/linker.cpp
src/glsl/lower_variable_index_to_cond_assign.cpp
src/glsl/opt_constant_folding.cpp
src/glsl/opt_function_inlining.cpp
src/glsl/opt_tree_grafting.cpp