mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue