mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
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:
parent
3eba593f35
commit
1f0cb24f8b
1 changed files with 2 additions and 3 deletions
|
|
@ -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(", ");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue