From dd2bda70022d6d80aee47cea718bab43e5586fe8 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 6 Sep 2016 21:48:42 +0200 Subject: glsl: process local_size_variable input qualifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the new layout qualifier introduced by ARB_compute_variable_group_size which allows to use a variable work group size. v4: - add missing '%s' in the monster format string Signed-off-by: Samuel Pitoiset Reviewed-by: Ian Romanick Reviewed-by: Nicolai Hähnle --- src/compiler/glsl/glsl_parser_extras.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/compiler/glsl/glsl_parser_extras.h') diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index 3abeb9ff563..5bdebf684bb 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -404,6 +404,12 @@ struct _mesa_glsl_parse_state { */ unsigned cs_input_local_size[3]; + /** + * True if a compute shader input local variable size was specified using + * a layout directive as specified by ARB_compute_variable_group_size. + */ + bool cs_input_local_size_variable_specified; + /** * Output layout qualifiers from GLSL 1.50 (geometry shader controls), * and GLSL 4.00 (tessellation control shader). -- cgit v1.2.3