Skip to contentSkip to conversation

Update disasm CPU names to match what mesa uses

PATCH New Tom St Denis 1 participant 1 message May 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update disasm CPU names to match what mesa uses

Updates the CPU names for vega12/vegam/raven1.

---
 src/lib/umr_llvm_disasm.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
src/lib/umr_llvm_disasm.c +6 -4
index 40e31774457f..f772db2eff29 100644
@@ -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,
Signature · 6 lines
2.14.3

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx