From ff77c6430913912d171be86553a52a0e4e2e039e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 23 Oct 2024 22:01:03 +0200 Subject: Mesa && AMD check --- src/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils.c b/src/utils.c index 14b629a..c28208d 100644 --- a/src/utils.c +++ b/src/utils.c @@ -398,7 +398,9 @@ bool gl_get_gpu_info(gsr_egl *egl, gsr_gpu_info *info) { } } - if(strstr((const char*)gl_vendor, "AMD") || strstr((const char*)gl_vendor, "Mesa")) + if(strstr((const char*)gl_vendor, "AMD")) + info->vendor = GSR_GPU_VENDOR_AMD; + else if(strstr((const char*)gl_vendor, "Mesa") && gl_renderer && strstr((const char*)gl_renderer, "AMD")) info->vendor = GSR_GPU_VENDOR_AMD; else if(strstr((const char*)gl_vendor, "Intel")) info->vendor = GSR_GPU_VENDOR_INTEL; -- cgit v1.2.3