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

Author: Kenneth Graunke <[email protected]>
Date:   Mon Aug 22 16:39:14 2016 -0700

glsl: Mark tessellation qualifier maps static const.

Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>

---

 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[] = {

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to