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.
This commit is contained in:
Kenneth Graunke 2010-04-07 14:40:44 -07:00 committed by Ian Romanick
parent 3eba593f35
commit 1f0cb24f8b

View file

@ -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(", ");