From 8a2a9e9bb8879cf3e88870fc5ff4c36e190fa012 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 11 Sep 2020 15:45:48 +0200 Subject: [PATCH] glsl: fix per_vertex_accumulator::fields size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 49d35f3d882bd0f4418a1ce056344b8f06bd75dd moved gl_Layer/gl_ViewportIndex/gl_ViewportMask as builtins but fields size wasn't increased. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3508 Fixes: 49d35f3d882 ("glsl: declare gl_Layer/gl_ViewportIndex/gl_ViewportMask as vs builtins") Reviewed-by: Marek Olšák Part-of: --- src/compiler/glsl/builtin_variables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/builtin_variables.cpp b/src/compiler/glsl/builtin_variables.cpp index 24d0d403328..869d4523f6c 100644 --- a/src/compiler/glsl/builtin_variables.cpp +++ b/src/compiler/glsl/builtin_variables.cpp @@ -319,7 +319,7 @@ public: const glsl_type *construct_interface_instance() const; private: - glsl_struct_field fields[11]; + glsl_struct_field fields[14]; unsigned num_fields; };