glsl: Make ir_reader parse the "temporary" variable qualifier.
authorEric Anholt <eric@anholt.net>
Wed, 18 Apr 2012 21:43:12 +0000 (14:43 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 24 Apr 2012 17:01:07 +0000 (10:01 -0700)
This lets ir_reader eat the output of builtin_compiler on actual
function definitions.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_reader.cpp

index 7ce683ef7d33c70ffd287c2c884a5f8ea406d3e6..03dbb67c327c37ce99d9eb6899d3e1155b0e4339 100644 (file)
@@ -407,6 +407,8 @@ ir_reader::read_declaration(s_expression *expr)
         var->mode = ir_var_out;
       } else if (strcmp(qualifier->value(), "inout") == 0) {
         var->mode = ir_var_inout;
+      } else if (strcmp(qualifier->value(), "temporary") == 0) {
+        var->mode = ir_var_temporary;
       } else if (strcmp(qualifier->value(), "smooth") == 0) {
         var->interpolation = INTERP_QUALIFIER_SMOOTH;
       } else if (strcmp(qualifier->value(), "flat") == 0) {