diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2016-10-05 11:58:59 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2016-10-06 02:13:36 -0700 |
commit | f7659e02c320fa9aac82e094e01786d2a5eb91e3 (patch) | |
tree | 2314a4e4023bf8efcb612c5017a0806ff9e88787 /src/compiler/nir_types.h | |
parent | 0408d50f43d8520d9feb3faef6e6f31871d18a74 (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.h | 3 |
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); |