diff options
Diffstat (limited to 'src/compiler/glsl/ast.h')
-rw-r--r-- | src/compiler/glsl/ast.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler/glsl/ast.h b/src/compiler/glsl/ast.h index eee22482812..2a38a4b1f73 100644 --- a/src/compiler/glsl/ast.h +++ b/src/compiler/glsl/ast.h @@ -28,6 +28,7 @@ #include "list.h" #include "glsl_parser_extras.h" #include "compiler/glsl_types.h" +#include "util/bitset.h" struct _mesa_glsl_parse_state; @@ -473,8 +474,11 @@ enum { struct ast_type_qualifier { DECLARE_RALLOC_CXX_OPERATORS(ast_type_qualifier); + DECLARE_BITSET_T(bitset_t, 128); + + union flags { + flags() : i(0) {} - union { struct { unsigned invariant:1; unsigned precise:1; @@ -636,7 +640,7 @@ struct ast_type_qualifier { q; /** \brief Set of flags, accessed as a bitmask. */ - uint64_t i; + bitset_t i; } flags; /** Precision of the type (highp/medium/lowp). */ |