From 3e2599d47538907a9cf7759da86f79461bdbd5af Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Wed, 20 Nov 2024 09:47:49 -0800 Subject: [PATCH] intel/brw: Use notation for FIXED_GRF and ARF source when printing IR Reviewed-by: Ian Romanick Part-of: --- src/intel/compiler/brw_print.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/intel/compiler/brw_print.cpp b/src/intel/compiler/brw_print.cpp index 0939b423f53..dae6cf582ac 100644 --- a/src/intel/compiler/brw_print.cpp +++ b/src/intel/compiler/brw_print.cpp @@ -611,13 +611,14 @@ brw_print_instruction_to_file(const fs_visitor &s, const fs_inst *inst, FILE *fi if (inst->src[i].file != IMM && !omit_src_type_and_region) { unsigned stride; if (inst->src[i].file == ARF || inst->src[i].file == FIXED_GRF) { - unsigned hstride = inst->src[i].hstride; - stride = (hstride == 0 ? 0 : (1 << (hstride - 1))); + fprintf(file, "<%u,%u,%u>", inst->src[i].vstride == 0 ? 0 : (1 << (inst->src[i].vstride - 1)), + 1 << inst->src[i].width, + inst->src[i].hstride == 0 ? 0 : (1 << (inst->src[i].hstride - 1))); } else { stride = inst->src[i].stride; + if (stride != 1) + fprintf(file, "<%u>", stride); } - if (stride != 1) - fprintf(file, "<%u>", stride); fprintf(file, ":%s", brw_reg_type_to_letters(inst->src[i].type)); }