projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nir/spirv: Use a C99-style initializer for structure fields
[mesa.git]
/
src
/
glsl
/
glsl_parser.yy
diff --git
a/src/glsl/glsl_parser.yy
b/src/glsl/glsl_parser.yy
index 7eb383ac60ca6b064698375bb4cff31f49bb292b..51796a65df99c6dca2918725e5a1b93ac5ebdaf7 100644
(file)
--- a/
src/glsl/glsl_parser.yy
+++ b/
src/glsl/glsl_parser.yy
@@
-1130,6
+1130,10
@@
fully_specified_type:
$$->set_location_range(@1, @2);
$$->qualifier = $1;
$$->specifier = $2;
+ if ($$->specifier->structure != NULL &&
+ $$->specifier->structure->is_declaration) {
+ $$->specifier->structure->layout = &$$->qualifier;
+ }
}
;