mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
nir: Improve printing of load_input/store_output variable names.
We were printing only when the channel was exactly the start channel, so scalarized loads/stores would be missing the name on the rest. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
43f40dc7cb
commit
a4f612b4cf
1 changed files with 4 additions and 2 deletions
|
|
@ -850,8 +850,10 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_state *state)
|
|||
nir_foreach_variable(var, var_list) {
|
||||
if ((var->data.driver_location == nir_intrinsic_base(instr)) &&
|
||||
(instr->intrinsic == nir_intrinsic_load_uniform ||
|
||||
var->data.location_frac == nir_intrinsic_component(instr)) &&
|
||||
var->name) {
|
||||
(nir_intrinsic_component(instr) >= var->data.location_frac &&
|
||||
nir_intrinsic_component(instr) <
|
||||
(var->data.location_frac + glsl_get_components(var->type)))) &&
|
||||
var->name) {
|
||||
fprintf(fp, "\t/* %s */", var->name);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue