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 (cherry picked from commit dfacbbd96f3fbadaffa4a76dfd71c47ece6ed6a3)
This commit is contained in:
parent
0f0ee4a909
commit
50ba5fa130
@ -182,6 +182,8 @@ check_mesa_vendor (const CoglGpuInfoStrings *strings)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
else if (strcmp (strings->vendor_string, "VMware, Inc.") == 0)
|
else if (strcmp (strings->vendor_string, "VMware, Inc.") == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
else if (strcmp (strings->vendor_string, "Mesa Project") == 0)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -214,7 +216,8 @@ check_softpipe_architecture (const CoglGpuInfoStrings *strings)
|
|||||||
static CoglBool
|
static CoglBool
|
||||||
check_swrast_architecture (const CoglGpuInfoStrings *strings)
|
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
|
static CoglBool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user