freedreno/ir3: Fix GPU name in disasm test

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31446>
This commit is contained in:
Rob Clark
2024-09-30 08:55:40 -07:00
committed by Marge Bot
parent a422ebc500
commit 771fe03787
+4 -3
View File
@@ -539,15 +539,16 @@ main(int argc, char **argv)
code[1] = test->instr_raw >> 32;
}
printf("Testing a%d %08x_%08x: \"%s\"...\n", test->gpu_id, code[1], code[0],
test->expected);
struct fd_dev_id dev_id = {
.gpu_id = test->gpu_id,
.chip_id = test->chip_id,
};
const struct fd_dev_info *dev_info = fd_dev_info_raw(&dev_id);
const char *name = fd_dev_name(&dev_id);
printf("Testing %s %08x_%08x: \"%s\"...\n", name, code[1], code[0],
test->expected);
rewind(fdisasm);
memset(disasm_output, 0, output_size);