mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1063048 - backout 35ff4bfb198f because on DriverVersionMismatch our blacklisting logic is fooled and doesn't protect us against real crashes - r=Bas
This commit is contained in:
parent
62d46c5e18
commit
6c2fb9cdee
@ -1026,11 +1026,11 @@ GfxInfo::GetGfxDriverInfo()
|
||||
GfxDriverInfo::allFeatures, nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION,
|
||||
DRIVER_LESS_THAN, V(6,2,0,0), "< 6.2.0.0" );
|
||||
|
||||
/* Bug 1008759: Optimus (NVidia) crash. Disable D2D on NV 310M. */
|
||||
APPEND_TO_DRIVER_BLOCKLIST2(DRIVER_OS_ALL,
|
||||
(nsAString&)GfxDriverInfo::GetDeviceVendor(VendorNVIDIA), (GfxDeviceFamily*)GfxDriverInfo::GetDeviceFamily(Nvidia310M),
|
||||
nsIGfxInfo::FEATURE_DIRECT2D, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
|
||||
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions);
|
||||
/* Bug 1008759: Optimus (NVidia) crash. Disable D2D on NV 310M. */
|
||||
APPEND_TO_DRIVER_BLOCKLIST2(DRIVER_OS_ALL,
|
||||
(nsAString&)GfxDriverInfo::GetDeviceVendor(VendorNVIDIA), (GfxDeviceFamily*)GfxDriverInfo::GetDeviceFamily(Nvidia310M),
|
||||
nsIGfxInfo::FEATURE_DIRECT2D, nsIGfxInfo::FEATURE_BLOCKED_DEVICE,
|
||||
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions);
|
||||
}
|
||||
return *mDriverInfo;
|
||||
}
|
||||
@ -1099,6 +1099,17 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
|
||||
// OTOH Windows Server 2008 R1 and R2 already have the same version numbers as Vista and Seven respectively
|
||||
if (os == DRIVER_OS_WINDOWS_SERVER_2003)
|
||||
os = DRIVER_OS_WINDOWS_XP;
|
||||
|
||||
if (mHasDriverVersionMismatch) {
|
||||
if (aFeature == nsIGfxInfo::FEATURE_DIRECT3D_10_LAYERS ||
|
||||
aFeature == nsIGfxInfo::FEATURE_DIRECT3D_10_1_LAYERS ||
|
||||
aFeature == nsIGfxInfo::FEATURE_DIRECT2D ||
|
||||
aFeature == nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS)
|
||||
{
|
||||
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_DRIVER_VERSION;
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return GfxInfoBase::GetFeatureStatusImpl(aFeature, aStatus, aSuggestedDriverVersion, aDriverInfo, &os);
|
||||
|
Loading…
Reference in New Issue
Block a user