mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 21:50:11 +01:00
Attach a pointer to variable names in LIR dumping.
Since variable names are not unique, and we like to make lots of __retvals and assignment_tmps and a,b,c,d this helps in debugging.
This commit is contained in:
parent
9ca0a022e6
commit
ebefeb2bdd
1 changed files with 3 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ void ir_print_visitor::visit(ir_variable *ir)
|
|||
cent, inv, mode[ir->mode], interp[ir->interpolation]);
|
||||
|
||||
print_type(ir->type);
|
||||
printf(" %s)", ir->name);
|
||||
printf(" %s@%p)", ir->name, ir);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -220,7 +220,8 @@ void ir_print_visitor::visit(ir_swizzle *ir)
|
|||
|
||||
void ir_print_visitor::visit(ir_dereference_variable *ir)
|
||||
{
|
||||
printf("(var_ref %s) ", ir->variable_referenced()->name);
|
||||
ir_variable *var = ir->variable_referenced();
|
||||
printf("(var_ref %s@%p) ", var->name, var);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue