From cc6661bfc87f6a8a46455ddaf2e0fb1c1fd332ed Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Fri, 10 Apr 2020 16:02:09 -0400 Subject: glsl: add NV_viewport_array2 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This enables gl_Layer/gl_ViewportIndex when the ext is enabled, as well as adding the new gl_ViewportMask[] array and viewport_relative layout qualifier for gl_Layer. Signed-off-by: Ilia Mirkin Acked-by: Marek Olšák Part-of: --- src/compiler/glsl/glsl_parser_extras.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/glsl/glsl_parser_extras.cpp') diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index c6e3999caf5..4f6a493f71a 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -1929,6 +1929,8 @@ set_shader_inout_layout(struct gl_shader *shader, shader->bindless_image = state->bindless_image_specified; shader->bound_sampler = state->bound_sampler_specified; shader->bound_image = state->bound_image_specified; + shader->redeclares_gl_layer = state->redeclares_gl_layer; + shader->layer_viewport_relative = state->layer_viewport_relative; } /* src can be NULL if only the symbols found in the exec_list should be -- cgit v1.2.3