From 6d416ac7e18898716b3b14dae41be81fd3d45896 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Fri, 24 May 2019 14:34:45 +0200 Subject: [PATCH] amd/common/gfx10: print gfx10 registers in debug dumps Acked-by: Bas Nieuwenhuizen --- src/amd/common/ac_debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/amd/common/ac_debug.c b/src/amd/common/ac_debug.c index cd37b6f4da9..e4cb6a13a3a 100644 --- a/src/amd/common/ac_debug.c +++ b/src/amd/common/ac_debug.c @@ -118,7 +118,9 @@ void ac_dump_reg(FILE *file, enum chip_class chip_class, unsigned offset, { const struct si_reg *reg = NULL; - if (chip_class >= GFX9) + if (chip_class >= GFX10) + reg = find_register(gfx10_reg_table, ARRAY_SIZE(gfx10_reg_table), offset); + else if (chip_class >= GFX9) reg = find_register(gfx9_reg_table, ARRAY_SIZE(gfx9_reg_table), offset); else if (chip_class >= GFX8) reg = find_register(gfx8_reg_table, ARRAY_SIZE(gfx8_reg_table), offset); -- 2.30.2