From: Kenneth Graunke Date: Wed, 7 Apr 2010 21:40:44 +0000 (-0700) Subject: Print full type for ir_constant instead of base and component count. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f0cb24f8bd0f2dba23c95331b04d0a1f89d2af4;p=mesa.git Print full type for ir_constant instead of base and component count. vec4 and mat2x2 have the same base type and number of components; printing the full type allows us to distinguish the two. --- diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp index 8f917e48b22..99dbacca112 100644 --- a/ir_print_visitor.cpp +++ b/ir_print_visitor.cpp @@ -238,10 +238,9 @@ void ir_print_visitor::visit(ir_constant *ir) const glsl_type *const base_type = ir->type->get_base_type(); printf("(constant ("); - print_type(base_type); - printf(") "); + print_type(ir->type); + printf(") ("); - printf("(%d) (", ir->type->components()); for (unsigned i = 0; i < ir->type->components(); i++) { if (i != 0) printf(", ");