diff options
author | Rhys Perry <pendingchaos02@gmail.com> | 2023-10-02 15:44:49 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-10-04 18:53:43 +0000 |
commit | 26fce534b51c1ce723174c1311eea2547afd14eb (patch) | |
tree | aba66427da6ffbc44ab48460e205c5beddb02b57 /src/amd/compiler/aco_print_ir.cpp | |
parent | e90b5385a0374f3f4ff39a68b646171565c430b3 (diff) |
aco: shrink DPP8_instruction
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25525>
Diffstat (limited to 'src/amd/compiler/aco_print_ir.cpp')
-rw-r--r-- | src/amd/compiler/aco_print_ir.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/amd/compiler/aco_print_ir.cpp b/src/amd/compiler/aco_print_ir.cpp index ef8132f694f..d5f35e5672d 100644 --- a/src/amd/compiler/aco_print_ir.cpp +++ b/src/amd/compiler/aco_print_ir.cpp @@ -709,9 +709,10 @@ print_instr_format_specific(enum amd_gfx_level gfx_level, const Instruction* ins fprintf(output, " bound_ctrl:1"); } else if (instr->isDPP8()) { const DPP8_instruction& dpp = instr->dpp8(); - fprintf(output, " dpp8:[%d,%d,%d,%d,%d,%d,%d,%d]", dpp.lane_sel[0], dpp.lane_sel[1], - dpp.lane_sel[2], dpp.lane_sel[3], dpp.lane_sel[4], dpp.lane_sel[5], dpp.lane_sel[6], - dpp.lane_sel[7]); + fprintf(output, " dpp8:["); + for (unsigned i = 0; i < 8; i++) + fprintf(output, "%s%u", i ? "," : "", (dpp.lane_sel >> (i * 3)) & 0x8); + fprintf(output, "]"); } else if (instr->isSDWA()) { const SDWA_instruction& sdwa = instr->sdwa(); if (!instr->isVOPC()) { |