@@ -84,6 +84,9 @@ class PlatformChecker {
84
84
} else if (machine.find (" mips" ) != string::npos) { // loongson
85
85
qDebug () << " match loongson" ;
86
86
_pf = Platform::Alpha;
87
+ } else if (machine.find (" aarch64" ) != string::npos) { // ARM64
88
+ qDebug () << " match arm" ;
89
+ _pf = Platform::Arm64;
87
90
}
88
91
}
89
92
}
@@ -120,7 +123,7 @@ CompositingManager::CompositingManager() {
120
123
if (GetScreenDriver) {
121
124
const char *name = (*GetScreenDriver) (QX11Info::display (), QX11Info::appScreen ());
122
125
qDebug () << " dri driver: " << name;
123
- _composited = name != NULL ;
126
+ _composited = name != nullptr ;
124
127
} else {
125
128
if (isDriverLoadedCorrectly () && isDirectRendered ()) {
126
129
_composited = true ;
@@ -305,7 +308,7 @@ bool CompositingManager::is_device_viable(int id) {
305
308
bool CompositingManager::isProprietaryDriver ()
306
309
{
307
310
if (is_device_viable (0 )) {
308
- vector<string> drivers = {" nvidia" , " fglrx" };
311
+ vector<string> drivers = {" nvidia" , " fglrx" , " hibmc-drm " };
309
312
return is_card_exists (drivers);
310
313
}
311
314
@@ -378,9 +381,9 @@ PlayerOptionList CompositingManager::getBestProfile()
378
381
switch (_platform) {
379
382
case Platform::Alpha:
380
383
case Platform::Mips:
384
+ case Platform::Arm64:
381
385
profile_name = _composited ? " composited" : " failsafe" ;
382
386
break ;
383
-
384
387
case Platform::X86:
385
388
profile_name = _composited ? " composited" : " default" ;
386
389
break ;
0 commit comments