[Mesa-dev] [PATCH 2/4] glsl: Make ir_reader parse the "temporary" variable qualifier.

Eric Anholt eric at anholt.net
Wed Apr 18 18:40:30 PDT 2012


This lets ir_reader eat the output of builtin_compiler on actual
function definitions.
---
 src/glsl/ir_reader.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp
index 7ce683e..03dbb67 100644
--- a/src/glsl/ir_reader.cpp
+++ b/src/glsl/ir_reader.cpp
@@ -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) {
-- 
1.7.10



More information about the mesa-dev mailing list