kathenas / rpms / mutter

Forked from rpms/mutter 5 years ago
Clone

Blame SOURCES/0002-cogl-gpu-info-Fix-software-acceleration-detection.patch

0e33ea
From 03c30b76bae4c2e3f51a6689ebb7c0c60bd7b29a Mon Sep 17 00:00:00 2001
0e33ea
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
0e33ea
Date: Tue, 9 Feb 2021 18:00:26 +0100
0e33ea
Subject: [PATCH 2/2] cogl/gpu-info: Fix software acceleration detection
0e33ea
0e33ea
The string used to match mesa changed; update to fix software rendering
0e33ea
detection.
0e33ea
---
0e33ea
 cogl/cogl/cogl-gpu-info.c | 2 ++
0e33ea
 1 file changed, 2 insertions(+)
0e33ea
0e33ea
diff --git a/cogl/cogl/cogl-gpu-info.c b/cogl/cogl/cogl-gpu-info.c
0e33ea
index f44319e96..c1817b3b0 100644
0e33ea
--- a/cogl/cogl/cogl-gpu-info.c
0e33ea
+++ b/cogl/cogl/cogl-gpu-info.c
0e33ea
@@ -192,6 +192,8 @@ check_mesa_vendor (const CoglGpuInfoStrings *strings)
0e33ea
     return TRUE;
0e33ea
   else if (strcmp (strings->vendor_string, "Mesa Project") == 0)
0e33ea
     return TRUE;
0e33ea
+  else if (strcmp (strings->vendor_string, "Mesa/X.org") == 0)
0e33ea
+    return TRUE;
0e33ea
 
0e33ea
   return FALSE;
0e33ea
 }
0e33ea
-- 
0e33ea
2.29.2
0e33ea