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.
This commit is contained in:
Kenneth Graunke
2011-01-12 15:37:37 -08:00
parent c5a27b5939
commit 819d57fce9
12 changed files with 36 additions and 4 deletions
+1
View File
@@ -123,6 +123,7 @@ parameter_lists_match(const exec_list *list_a, const exec_list *list_b)
assert(0);
return -1;
case ir_var_const_in:
case ir_var_in:
score = type_compare(param->type, actual->type);
break;