[Mesa-dev] [PATCH] glsl: Don't consider "centroid" a storage qualifier.

Kenneth Graunke kenneth at whitecape.org
Wed Jul 17 18:23:50 PDT 2013


In the old language rules, you can't specify "centroid" by itself; it's
always "centroid in", "centroid out", or "centroid varying."  So one of
the other storage qualifiers will always be set; there's no need to
specifically check for centroid.

In the new rules, centroid is an auxiliary storage qualifier, not a
storage qualifier.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/glsl/ast_type.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp
index dc03cca..4cbb835 100644
--- a/src/glsl/ast_type.cpp
+++ b/src/glsl/ast_type.cpp
@@ -80,7 +80,6 @@ ast_type_qualifier::has_storage() const
    return this->flags.q.constant
           || this->flags.q.attribute
           || this->flags.q.varying
-          || this->flags.q.centroid
           || this->flags.q.in
           || this->flags.q.out
           || this->flags.q.uniform;
-- 
1.8.3.2



More information about the mesa-dev mailing list