mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
nir: Make the printer include nir_variable::location too.
Being able to see both location and driver_location can be useful when debugging IO mistakes. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
a72fb69604
commit
b9c2fa15e3
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ print_var_decl(nir_variable *var, print_var_state *state, FILE *fp)
|
|||
if (var->data.mode == nir_var_shader_in ||
|
||||
var->data.mode == nir_var_shader_out ||
|
||||
var->data.mode == nir_var_uniform) {
|
||||
fprintf(fp, " (%u)", var->data.driver_location);
|
||||
fprintf(fp, " (%u, %u)", var->data.location, var->data.driver_location);
|
||||
}
|
||||
|
||||
fprintf(fp, "\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue