Mesa (master): glsl: Mark tessellation qualifier maps static const.

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Aug 24 04:20:26 UTC 2016


Module: Mesa
Branch: master
Commit: eb1a0ddfd55ba606eb67fab2aaf337007acce904
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb1a0ddfd55ba606eb67fab2aaf337007acce904

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Aug 22 16:39:14 2016 -0700

glsl: Mark tessellation qualifier maps static const.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/compiler/glsl/glsl_parser.yy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/glsl/glsl_parser.yy b/src/compiler/glsl/glsl_parser.yy
index 4f4a83c..5b65861 100644
--- a/src/compiler/glsl/glsl_parser.yy
+++ b/src/compiler/glsl/glsl_parser.yy
@@ -1373,7 +1373,7 @@ layout_qualifier_id:
 
       /* Layout qualifiers for tessellation evaluation shaders. */
       if (!$$.flags.i) {
-         struct {
+         static const struct {
             const char *s;
             GLenum e;
          } map[] = {
@@ -1396,7 +1396,7 @@ layout_qualifier_id:
          }
       }
       if (!$$.flags.i) {
-         struct {
+         static const struct {
             const char *s;
             GLenum e;
          } map[] = {




More information about the mesa-commit mailing list