GPU: correct detection of Apple M1 GPU

Don't cheat
This commit is contained in:
李通洲
2022-09-16 18:11:39 +08:00
committed by Carter Li
parent 413d126bcc
commit 09f3bd5a79
7 changed files with 43 additions and 52 deletions
+2
View File
@@ -6,6 +6,7 @@
#include "fastfetch.h"
#define FF_GPU_TEMP_UNSET (0/0.0)
#define FF_GPU_CORE_COUNT_UNSET -1
typedef struct FFGPUResult
{
@@ -13,6 +14,7 @@ typedef struct FFGPUResult
FFstrbuf name;
FFstrbuf driver;
double temperature;
int coreCount;
} FFGPUResult;
const FFlist* ffDetectGPU(const FFinstance* instance);