summaryrefslogtreecommitdiff
path: root/src/compiler/nir_types.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-10-05 11:58:59 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-10-06 02:13:36 -0700
commitf7659e02c320fa9aac82e094e01786d2a5eb91e3 (patch)
tree2314a4e4023bf8efcb612c5017a0806ff9e88787 /src/compiler/nir_types.h
parent0408d50f43d8520d9feb3faef6e6f31871d18a74 (diff)
nir: Delete open coded type printing.
glsl_print_type() prints arrays of arrays incorrectly. For example, a type with name float[3][7] would be printed as float[7][3]. (This is an array of length 3 containing arrays of 7 floats.) cdecl says that the type name is correct. glsl_print_type() doesn't really do anything above and beyond printing type->name, and glsl_print_struct() wasn't used at all. So, drop them. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'src/compiler/nir_types.h')
-rw-r--r--src/compiler/nir_types.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index 6b4f646b20b..854d64fd875 100644
--- a/src/compiler/nir_types.h
+++ b/src/compiler/nir_types.h
@@ -40,8 +40,7 @@ extern "C" {
struct glsl_type;
#endif
-void glsl_print_type(const struct glsl_type *type, FILE *fp);
-void glsl_print_struct(const struct glsl_type *type, FILE *fp);
+const char *glsl_get_type_name(const struct glsl_type *type);
const struct glsl_type *glsl_get_struct_field(const struct glsl_type *type,
unsigned index);