This reverts commit
f9860a84b3cf1735ece78bc5907b2be4e2878f8e. It's a
bit annoying having this scattered around but it's 100% a GLSL thing and
there's no reason why it should go in glsl_types.h. The fact that
glsl_print_type() even uses it is a bit sketchy.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24491>
BITSET_WORD *indices;
};
+/**
+ * Built-in / reserved GL variables names start with "gl_"
+ */
+static inline bool
+is_gl_identifier(const char *s)
+{
+ return s && s[0] == 'g' && s[1] == 'l' && s[2] == '_';
+}
+
static unsigned
uniform_storage_size(const struct glsl_type *type)
{
}
/**
+ * Built-in / reserved GL variables names start with "gl_"
+ */
+static bool
+is_gl_identifier(const char *s)
+{
+ return s && s[0] == 'g' && s[1] == 'l' && s[2] == '_';
+}
+
+/**
* Record the given producer/consumer variable pair in the list of variables
* that should later be assigned locations.
*
}
}
+/**
+ * Built-in / reserved GL variables names start with "gl_"
+ */
+static inline bool
+is_gl_identifier(const char *s)
+{
+ return s && s[0] == 'g' && s[1] == 'l' && s[2] == '_';
+}
+
static bool
inout_has_same_location(const nir_variable *var, unsigned stage)
{
memset(info->backcolor, 0, sizeof(info->backcolor));
}
+/**
+ * Built-in / reserved GL variables names start with "gl_"
+ */
+static bool
+is_gl_identifier(const char *s)
+{
+ return s && s[0] == 'g' && s[1] == 'l' && s[2] == '_';
+}
+
static void
gather_info_on_varying_deref(struct varying_info *info, nir_deref_instr *deref)
{
const char *
mode_string(const ir_variable *var);
+/**
+ * Built-in / reserved GL variables names start with "gl_"
+ */
+static inline bool
+is_gl_identifier(const char *s)
+{
+ return s && s[0] == 'g' && s[1] == 'l' && s[2] == '_';
+}
+
extern "C" {
#endif /* __cplusplus */
}
}
+static inline bool
+is_gl_identifier(const char *s)
+{
+ return s && s[0] == 'g' && s[1] == 'l' && s[2] == '_';
+}
+
void
glsl_print_type(FILE *f, const glsl_type *t)
{
GLSL_PRECISION_LOW
};
-/**
- * Built-in / reserved GL variables names start with "gl_"
- */
-static inline bool
-is_gl_identifier(const char *s)
-{
- return s && s[0] == 'g' && s[1] == 'l' && s[2] == '_';
-}
-
#ifdef __cplusplus
} /* extern "C" */
#endif