Update disasm CPU names to match what mesa uses
PATCH 1/1 Update disasm CPU names to match what mesa uses
Updates the CPU names for vega12/vegam/raven1.
Signed-off-by Tom St Denis <[email protected]>
--- src/lib/umr_llvm_disasm.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
src/lib/umr_llvm_disasm.c +6 -4
@@ -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