From d7d206bc51ee311f2a31cd08065ff5b24a980699 Mon Sep 17 00:00:00 2001 From: Mingcong Bai Date: Fri, 2 Aug 2024 14:21:18 +0800 Subject: [PATCH] fix(libdmr): strip LoongArch out of Platform::Mips LoongArch is not MIPS-based Loongson and exhibits significantly different performance characteristics (try ~50 - 100% faster with current hardware versus 3A4000). There is no need to strip out functionalities in order to obtain acceptable performance. The current 3A6000 processors can easily keep up with 10th Gen Intel i3 processors. --- src/libdmr/compositing_manager.cpp | 3 +-- src/libdmr/compositing_manager.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libdmr/compositing_manager.cpp b/src/libdmr/compositing_manager.cpp index 3979abf6..cb4da769 100644 --- a/src/libdmr/compositing_manager.cpp +++ b/src/libdmr/compositing_manager.cpp @@ -64,8 +64,7 @@ class PlatformChecker qInfo() << "match shenwei"; _pf = Platform::Alpha; - } else if (machine.find("mips") != string::npos - || machine.find("loongarch64") != string::npos) { // loongson + } else if (machine.find("mips") != string::npos) { // MIPS-based Loongson qInfo() << "match loongson"; _pf = Platform::Mips; } else if (machine.find("aarch64") != string::npos) { // ARM64 diff --git a/src/libdmr/compositing_manager.h b/src/libdmr/compositing_manager.h index 2687f2b8..3acae5dc 100644 --- a/src/libdmr/compositing_manager.h +++ b/src/libdmr/compositing_manager.h @@ -17,7 +17,7 @@ namespace dmr { enum Platform { Unknown, X86, // intel & amd - Mips, // loongson + Mips, // MIPS-based Loongson Alpha, // sunway Arm64 };