[PATCH umr] Update disasm CPU names to match what mesa uses
Tom St Denis
tom.stdenis at amd.com
Thu May 24 12:46:47 UTC 2018
Updates the CPU names for vega12/vegam/raven1.
Signed-off-by: Tom St Denis <tom.stdenis at amd.com>
---
src/lib/umr_llvm_disasm.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/lib/umr_llvm_disasm.c b/src/lib/umr_llvm_disasm.c
index 40e31774457f..f772db2eff29 100644
--- a/src/lib/umr_llvm_disasm.c
+++ b/src/lib/umr_llvm_disasm.c
@@ -46,12 +46,14 @@ int umr_llvm_disasm(struct umr_asic *asic,
// cpuname based on mesa usage
cpuname = asic->asicname;
- if (asic->family > FAMILY_VI)
+ if (asic->family == FAMILY_RV)
+ cpuname = "gfx902";
+ else if (asic->family > FAMILY_VI)
cpuname = "gfx900";
- if (!strcmp(cpuname, "polaris12"))
- cpuname = "polaris11";
- if (!strcmp(cpuname, "vegam"))
+ else if (!strcmp(cpuname, "polaris12") || !strcmp(cpuname, "vegam"))
cpuname = "polaris11";
+ else if (!strcmp(cpuname, "vega12"))
+ cpuname = "gfx902";
disasm_ref = LLVMCreateDisasmCPU(
"amdgcn-mesa-mesa3d", cpuname,
--
2.14.3
More information about the amd-gfx
mailing list