#include "ast.h"
#include "compiler/glsl_types.h"
#include "ir.h"
+#include "linker_util.h"
#include "main/shader_types.h"
#include "main/consts_exts.h"
#include "main/shaderobj.h"
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)
{
#include "gl_nir_link_varyings.h"
#include "gl_nir_linker.h"
+#include "linker_util.h"
#include "nir_builder.h"
#include "nir_gl_types.h"
#include "nir_types.h"
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 */
#include <inttypes.h> /* for PRIx64 macro */
#include "ir_print_visitor.h"
+#include "linker_util.h"
#include "compiler/glsl_types.h"
#include "glsl_parser_extras.h"
#include "main/macros.h"
#include "ir.h"
#include "ir_hierarchical_visitor.h"
+#include "linker_util.h"
#include "util/u_debug.h"
#include "util/hash_table.h"
#include "util/macros.h"
#include "glsl_symbol_table.h"
#include "ir.h"
#include "linker.h"
+#include "linker_util.h"
#include "link_varyings.h"
struct gl_shader_program;
struct gl_uniform_storage;
+/**
+ * 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
#include "ir.h"
#include "ir_visitor.h"
#include "ir_optimization.h"
+#include "linker_util.h"
/**
* Pre-linking, optimize unused built-in variables