diff options
author | Matt Turner <[email protected]> | 2013-07-11 11:28:58 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-07-11 16:22:07 -0700 |
commit | 08c90f651b2d00ad2f1423512c9dfea346866102 (patch) | |
tree | 187767d7b104571fcda65e5f441490c29c644251 /src/glsl/glsl_parser.yy | |
parent | 14ed9018de1e8816f3b99165a6e2afb1acc1d5d7 (diff) |
glsl: Add comment explaining "row_major" parsing.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser.yy')
-rw-r--r-- | src/glsl/glsl_parser.yy | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index 935eb2d83e4..afbafce4cba 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -1155,6 +1155,12 @@ layout_qualifier_id: $$.flags.q.shared = 1; } else if (strcmp($1, "column_major") == 0) { $$.flags.q.column_major = 1; + /* "row_major" is a reserved word in GLSL 1.30+. Its token is parsed + * below in the interface_block_layout_qualifier rule. + * + * It is not a reserved word in GLSL ES 3.00, so it's handled here as + * an identifier. + */ } else if (strcmp($1, "row_major") == 0) { $$.flags.q.row_major = 1; } |