glsl: Make ir_reader parse the "temporary" variable qualifier.
This lets ir_reader eat the output of builtin_compiler on actual function definitions. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
6a6cb03507
commit
41b47441d7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue