Bug 816695 - Blocklist llvmpipe graphics driver - r=jgilbert

This commit is contained in:
Benoit Jacob 2012-12-04 11:40:21 -05:00
parent 7fca1ab91e
commit 8cd6a3db7a
2 changed files with 5 additions and 3 deletions

View File

@ -44,6 +44,7 @@ GfxInfo::Init()
mIsNouveau = false;
mIsIntel = false;
mIsOldSwrast = false;
mIsLlvmpipe = false;
mHasTextureFromPixmap = false;
return GfxInfoBase::Init();
}
@ -213,6 +214,8 @@ GfxInfo::GetData()
mIsNouveau = true;
if (strcasestr(mRenderer.get(), "intel")) // yes, intel is in the renderer string
mIsIntel = true;
if (strcasestr(mRenderer.get(), "llvmpipe"))
mIsLlvmpipe = true;
if (strcasestr(mRenderer.get(), "software rasterizer"))
mIsOldSwrast = true;
} else if (strstr(mVendor.get(), "NVIDIA Corporation")) {
@ -334,9 +337,8 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION;
aSuggestedDriverVersion.AssignLiteral("Mesa 7.10.3");
}
else if (mIsOldSwrast) {
else if (mIsOldSwrast || mIsLlvmpipe) {
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION;
aSuggestedDriverVersion.AssignLiteral("LLVMpipe");
}
else if (aFeature == nsIGfxInfo::FEATURE_WEBGL_MSAA)
{

View File

@ -67,7 +67,7 @@ private:
nsCString mAdapterDescription;
nsCString mOS;
nsCString mOSRelease;
bool mIsMesa, mIsNVIDIA, mIsFGLRX, mIsNouveau, mIsIntel, mIsOldSwrast;
bool mIsMesa, mIsNVIDIA, mIsFGLRX, mIsNouveau, mIsIntel, mIsOldSwrast, mIsLlvmpipe;
bool mHasTextureFromPixmap;
int mGLMajorVersion, mMajorVersion, mMinorVersion, mRevisionVersion;