mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
i965: Print reg_offset for vgrf of size > 1 in dump_instruction().
Previously we wouldn't print the +0 for the first part of a VGRF of size greater than 1. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
955c93dc08
commit
71bc11a375
2 changed files with 4 additions and 4 deletions
|
|
@ -2857,7 +2857,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
|
|||
switch (inst->dst.file) {
|
||||
case GRF:
|
||||
printf("vgrf%d", inst->dst.reg);
|
||||
if (inst->dst.reg_offset)
|
||||
if (virtual_grf_sizes[inst->dst.reg] != 1)
|
||||
printf("+%d", inst->dst.reg_offset);
|
||||
break;
|
||||
case MRF:
|
||||
|
|
@ -2910,7 +2910,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
|
|||
switch (inst->src[i].file) {
|
||||
case GRF:
|
||||
printf("vgrf%d", inst->src[i].reg);
|
||||
if (inst->src[i].reg_offset)
|
||||
if (virtual_grf_sizes[inst->src[i].reg] != 1)
|
||||
printf("+%d", inst->src[i].reg_offset);
|
||||
break;
|
||||
case MRF:
|
||||
|
|
@ -2918,7 +2918,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
|
|||
break;
|
||||
case UNIFORM:
|
||||
printf("u%d", inst->src[i].reg);
|
||||
if (inst->src[i].reg_offset)
|
||||
if (virtual_grf_sizes[inst->src[i].reg] != 1)
|
||||
printf(".%d", inst->src[i].reg_offset);
|
||||
break;
|
||||
case BAD_FILE:
|
||||
|
|
|
|||
|
|
@ -1242,7 +1242,7 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
|
|||
break;
|
||||
}
|
||||
|
||||
if (inst->src[i].reg_offset)
|
||||
if (virtual_grf_sizes[inst->src[i].reg] != 1)
|
||||
printf(".%d", inst->src[i].reg_offset);
|
||||
|
||||
if (inst->src[i].file != IMM) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue