From: Nicolai Hähnle Date: Fri, 24 May 2019 12:34:45 +0000 (+0200) Subject: amd/common/gfx10: print gfx10 registers in debug dumps X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d416ac7e18898716b3b14dae41be81fd3d45896;p=mesa.git amd/common/gfx10: print gfx10 registers in debug dumps Acked-by: Bas Nieuwenhuizen --- 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);