[Mesa-dev] [PATCH 1/7] glsl: enable offset layout qualifier for ARB_enhanced_layouts

eocallaghan at alterapraxis.com eocallaghan at alterapraxis.com
Mon Jan 11 03:01:13 PST 2016


This series is,

Reviewed-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>

On 2016-01-11 14:13, Timothy Arceri wrote:
> ---
>  src/glsl/glsl_parser.yy | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
> index 6b634f2..b2b94f4 100644
> --- a/src/glsl/glsl_parser.yy
> +++ b/src/glsl/glsl_parser.yy
> @@ -1505,7 +1505,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;



More information about the mesa-dev mailing list