From 9c08686e12c95335e899e5db71ef8570c85245df Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 17 Sep 2012 14:33:15 -0400 Subject: [PATCH] cogl-1.11.4-mesa-strings.patch: Update match strings for Mesa. --- cogl-1.11.4-mesa-strings.patch | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 cogl-1.11.4-mesa-strings.patch diff --git a/cogl-1.11.4-mesa-strings.patch b/cogl-1.11.4-mesa-strings.patch new file mode 100644 index 0000000..e20d6fb --- /dev/null +++ b/cogl-1.11.4-mesa-strings.patch @@ -0,0 +1,38 @@ +From dfacbbd96f3fbadaffa4a76dfd71c47ece6ed6a3 Mon Sep 17 00:00:00 2001 +From: Robert Bragg +Date: Wed, 12 Sep 2012 13:36:00 +0000 +Subject: gpu-info: Match latest Mesa strings + +Mesa now reports a vendor string of "Mesa Project" instead of "VMWare, +Inc." and the software rasterizer renderer string is now "Software +Rasterizer". This update cogl-gpu-info.c to recognize these new strings. + +Thanks to Alexander Larsson for the original patch. + +https://bugzilla.gnome.org/show_bug.cgi?id=683818 +--- +diff --git a/cogl/cogl-gpu-info.c b/cogl/cogl-gpu-info.c +index 8e64d04..5bb0e65 100644 +--- a/cogl/cogl-gpu-info.c ++++ b/cogl/cogl-gpu-info.c +@@ -182,6 +182,8 @@ check_mesa_vendor (const CoglGpuInfoStrings *strings) + return TRUE; + else if (strcmp (strings->vendor_string, "VMware, Inc.") == 0) + return TRUE; ++ else if (strcmp (strings->vendor_string, "Mesa Project") == 0) ++ return TRUE; + + return FALSE; + } +@@ -214,7 +216,8 @@ check_softpipe_architecture (const CoglGpuInfoStrings *strings) + static CoglBool + check_swrast_architecture (const CoglGpuInfoStrings *strings) + { +- return match_phrase (strings->renderer_string, "software rasterizer"); ++ return match_phrase (strings->renderer_string, "software rasterizer") || ++ match_phrase (strings->renderer_string, "Software Rasterizer"); + } + + static CoglBool +-- +cgit v0.9.0.2