From 0fa74e848fd11c71bb70ea0a69650944e4f07571 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Mon, 6 Jan 2014 09:09:31 -0800 Subject: glsl/cs: Handle compute shader local_size_{x,y,z} declaration. Reviewed-by: Jordan Justen --- src/glsl/glsl_parser_extras.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/glsl/glsl_parser_extras.h') diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index 20ed2cfddc6..7d661473d04 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -196,6 +196,21 @@ struct _mesa_glsl_parse_state { */ GLenum gs_input_prim_type; + /** + * True if a compute shader input local size was specified using a layout + * directive. + * + * Note: this value is computed at ast_to_hir time rather than at parse + * time. + */ + bool cs_input_local_size_specified; + + /** + * If cs_input_local_size_specified is true, the local size that was + * specified. Otherwise ignored. + */ + unsigned cs_input_local_size[3]; + /** Output layout qualifiers from GLSL 1.50. (geometry shader controls)*/ struct ast_type_qualifier *out_qualifier; -- cgit v1.2.3