summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2021-03-31 10:09:58 +0200
committerMarge Bot <eric+marge@anholt.net>2021-04-09 03:57:51 +0000
commitd5e0be9342d032ce1180e6b77df22e698e688fbe (patch)
tree4d9dfd28752923fcaeba0f1e83f39b2197fe8379
parent01e012dab80850187bed48ea3a0c6a12ed9cb8ba (diff)
compiler/glsl: fix volatile string
The reason the member has a leading underscore is because volatile is a keyword in C. We don't want to carry that detail into the error-string, so let's drop the underscore. Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9896>
-rw-r--r--src/compiler/glsl/ast_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ast_type.cpp b/src/compiler/glsl/ast_type.cpp
index 4e09cc041ad..6d301139798 100644
--- a/src/compiler/glsl/ast_type.cpp
+++ b/src/compiler/glsl/ast_type.cpp
@@ -876,7 +876,7 @@ ast_type_qualifier::validate_flags(YYLTYPE *loc,
bad.flags.q.early_fragment_tests ? " early_fragment_tests" : "",
bad.flags.q.explicit_image_format ? " image_format" : "",
bad.flags.q.coherent ? " coherent" : "",
- bad.flags.q._volatile ? " _volatile" : "",
+ bad.flags.q._volatile ? " volatile" : "",
bad.flags.q.restrict_flag ? " restrict_flag" : "",
bad.flags.q.read_only ? " read_only" : "",
bad.flags.q.write_only ? " write_only" : "",