mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 01:00:10 +01:00
intel/brw: Correctly dump subnr for FIXED_GRF in INTEL_DEBUG=optimizer
v2: Also update printing FIXED_GRF as destionation. Suggested by Lionel. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27552>
This commit is contained in:
parent
f89d9cc53d
commit
31f640bc5f
1 changed files with 7 additions and 1 deletions
|
|
@ -2515,6 +2515,8 @@ fs_visitor::dump_instruction_to_file(const fs_inst *inst, FILE *file) const
|
|||
break;
|
||||
case FIXED_GRF:
|
||||
fprintf(file, "g%d", inst->dst.nr);
|
||||
if (inst->dst.subnr != 0)
|
||||
fprintf(file, ".%d", inst->dst.subnr / type_sz(inst->dst.type));
|
||||
break;
|
||||
case BAD_FILE:
|
||||
fprintf(file, "(null)");
|
||||
|
|
@ -2644,7 +2646,11 @@ fs_visitor::dump_instruction_to_file(const fs_inst *inst, FILE *file) const
|
|||
break;
|
||||
}
|
||||
|
||||
if (inst->src[i].offset ||
|
||||
if (inst->src[i].file == FIXED_GRF && inst->src[i].subnr != 0) {
|
||||
assert(inst->src[i].offset == 0);
|
||||
|
||||
fprintf(file, ".%d", inst->src[i].subnr / type_sz(inst->src[i].type));
|
||||
} else if (inst->src[i].offset ||
|
||||
(inst->src[i].file == VGRF &&
|
||||
alloc.sizes[inst->src[i].nr] * REG_SIZE != inst->size_read(i))) {
|
||||
const unsigned reg_size = (inst->src[i].file == UNIFORM ? 4 : REG_SIZE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue