summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_type.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-07-13 19:20:37 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-07-18 16:57:22 -0700
commit1b719df14dcde947f3d9c43282866a65cf3a3fd2 (patch)
tree98b7d3ea832cb08854c3eef5ad41c8a46420735a /src/glsl/ast_type.cpp
parenteb30af51d68e3cc137dd640e57c81bdda1aae527 (diff)
downloadexternal_mesa3d-1b719df14dcde947f3d9c43282866a65cf3a3fd2.zip
external_mesa3d-1b719df14dcde947f3d9c43282866a65cf3a3fd2.tar.gz
external_mesa3d-1b719df14dcde947f3d9c43282866a65cf3a3fd2.tar.bz2
glsl: Add a new ast_type_qualifier::has_auxiliary_storage() method.
"Auxiliary storage qualifiers" is the new term given to "centroid", "patch", and "sample" by GLSL 4.20/GL_ARB_shading_language_420pack. Even though we only support "centroid", it's useful to add this now so that all auxiliary storage qualifiers get handled in the right places once they're eventually supported. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl/ast_type.cpp')
-rw-r--r--src/glsl/ast_type.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp
index 2e55b76..4cbb835 100644
--- a/src/glsl/ast_type.cpp
+++ b/src/glsl/ast_type.cpp
@@ -85,6 +85,12 @@ ast_type_qualifier::has_storage() const
|| this->flags.q.uniform;
}
+bool
+ast_type_qualifier::has_auxiliary_storage() const
+{
+ return this->flags.q.centroid;
+}
+
const char*
ast_type_qualifier::interpolation_string() const
{