aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2026-08-07 14:16:35 +0500
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2026-08-10 11:01:47 +0500
commita8ec9386ea2fe741f5adc065a81e672417fffae9 (patch)
tree59e8758f5aeeabb9f74dd962a5d89e38ee3ef52b /src
parent291ad323f0fbcdeccfdaaa73c20a6fb69532751f (diff)
src/gsr-info: Add Apple GPU support
Diffstat (limited to 'src')
-rw-r--r--src/gsr-info.c2
-rw-r--r--src/gsr-info.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gsr-info.c b/src/gsr-info.c
index 861cd38..2bca3de 100644
--- a/src/gsr-info.c
+++ b/src/gsr-info.c
@@ -130,6 +130,8 @@ parse_gpu_info(ParseState *st, const char *line, size_t len)
st->info->gpu_info.vendor = GSR_GPU_VENDOR_NVIDIA;
else if (str_eq(val, vlen, "broadcom"))
st->info->gpu_info.vendor = GSR_GPU_VENDOR_BROADCOM;
+ else if (str_eq(val, vlen, "apple"))
+ st->info->gpu_info.vendor = GSR_GPU_VENDOR_APPLE;
}
}
diff --git a/src/gsr-info.h b/src/gsr-info.h
index 8ce10d0..b6b6206 100644
--- a/src/gsr-info.h
+++ b/src/gsr-info.h
@@ -20,6 +20,7 @@ typedef enum {
GSR_GPU_VENDOR_INTEL,
GSR_GPU_VENDOR_NVIDIA,
GSR_GPU_VENDOR_BROADCOM,
+ GSR_GPU_VENDOR_APPLE,
} GsrGpuVendor;
typedef enum {