diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-04-07 14:40:44 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-28 15:34:52 -0700 |
commit | 1f0cb24f8bd0f2dba23c95331b04d0a1f89d2af4 (patch) | |
tree | d89d2d9b775416ed79ca5b106b9a7094f1c2f005 | |
parent | 3eba593f35a966949ee7c5990f3e9f519ea0191a (diff) |
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.
-rw-r--r-- | ir_print_visitor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ir_print_visitor.cpp b/ir_print_visitor.cpp index 8f917e48b2..99dbacca11 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(", "); |