Merge branch 'master' of ../mesa into vulkan
[mesa.git] / src / glsl / nir / nir_types.h
index a2fa7934e16c5125235004e47daf3d1bb7d61e86..1a0cb1fb77482b72f8abb8387f2dad44cc35ed93 100644 (file)
@@ -27,6 +27,8 @@
 
 #pragma once
 
+#include <stdio.h>
+
 /* C wrapper around glsl_types.h */
 
 #include "../glsl_types.h"
@@ -37,8 +39,6 @@ extern "C" {
 struct glsl_type;
 #endif
 
-#include <stdio.h>
-
 void glsl_print_type(const struct glsl_type *type, FILE *fp);
 void glsl_print_struct(const struct glsl_type *type, FILE *fp);
 
@@ -71,6 +71,9 @@ const char *glsl_get_struct_elem_name(const struct glsl_type *type,
 enum glsl_sampler_dim glsl_get_sampler_dim(const struct glsl_type *type);
 enum glsl_base_type glsl_get_sampler_result_type(const struct glsl_type *type);
 
+unsigned glsl_get_record_location_offset(const struct glsl_type *type,
+                                         unsigned length);
+
 bool glsl_type_is_void(const struct glsl_type *type);
 bool glsl_type_is_vector(const struct glsl_type *type);
 bool glsl_type_is_scalar(const struct glsl_type *type);