diff options
author | Timothy Arceri <[email protected]> | 2015-12-29 21:15:52 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-03-05 19:38:26 +1100 |
commit | 6f45484ac7142d9ccda6ee009a0902147f62c75b (patch) | |
tree | b2dc6be084843848c06fdd077446d88f7fcd1e33 /src/compiler | |
parent | 1824ff1c2aa1800fde58e6c4ae2b8405baffc2a4 (diff) |
glsl: enable offset layout qualifier for ARB_enhanced_layouts
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/glsl_parser.yy | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/glsl/glsl_parser.yy b/src/compiler/glsl/glsl_parser.yy index 9d6ea29355f..2fb0da1f8c0 100644 --- a/src/compiler/glsl/glsl_parser.yy +++ b/src/compiler/glsl/glsl_parser.yy @@ -1498,7 +1498,8 @@ layout_qualifier_id: $$.binding = $3; } - if (state->has_atomic_counters() && + if ((state->has_atomic_counters() || + state->has_enhanced_layouts()) && match_layout_qualifier("offset", $1, state) == 0) { $$.flags.q.explicit_offset = 1; $$.offset = $3; |