diff options
author | Ilia Mirkin <[email protected]> | 2020-04-10 16:02:09 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2020-04-15 20:12:00 -0400 |
commit | cc6661bfc87f6a8a46455ddaf2e0fb1c1fd332ed (patch) | |
tree | 9f8dd8677bff5ca9304f0265de9f11a2ee251072 /src/compiler/glsl/glsl_parser_extras.cpp | |
parent | 54424a3d13f97bb1714f168f127f40d180f78a6b (diff) |
glsl: add NV_viewport_array2 support
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 <[email protected]>
Acked-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4529>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |