nir: Delete open coded type printing.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Oct 2016 18:58:59 +0000 (11:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 6 Oct 2016 09:13:36 +0000 (02:13 -0700)
commitf7659e02c320fa9aac82e094e01786d2a5eb91e3
tree2314a4e4023bf8efcb612c5017a0806ff9e88787
parent0408d50f43d8520d9feb3faef6e6f31871d18a74
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>
src/compiler/nir/nir_print.c
src/compiler/nir_types.cpp
src/compiler/nir_types.h