Skip to content

Commit 5034082

Browse files
committed
Enable GPU acceleration on VM (thanks goodusername123)
1 parent 877339b commit 5034082

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

widget/windows/GfxInfo.cpp

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,30 +1945,29 @@ nsresult GfxInfo::GetFeatureStatusImpl(
19451945
!adapterVendorID.Equals(
19461946
GfxDriverInfo::GetDeviceVendor(DeviceVendor::Microsoft),
19471947
nsCaseInsensitiveStringComparator) &&
1948+
!adapterVendorID.Equals(
1949+
GfxDriverInfo::GetDeviceVendor(DeviceVendor::MicrosoftHyperV),
1950+
nsCaseInsensitiveStringComparator) &&
19481951
!adapterVendorID.Equals(
19491952
GfxDriverInfo::GetDeviceVendor(DeviceVendor::Parallels),
19501953
nsCaseInsensitiveStringComparator) &&
19511954
!adapterVendorID.Equals(
19521955
GfxDriverInfo::GetDeviceVendor(DeviceVendor::Qualcomm),
19531956
nsCaseInsensitiveStringComparator) &&
1957+
!adapterVendorID.Equals(
1958+
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VMWare),
1959+
nsCaseInsensitiveStringComparator) &&
1960+
!adapterVendorID.Equals(
1961+
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VirtualBox),
1962+
nsCaseInsensitiveStringComparator) &&
19541963
// FIXME - these special hex values are currently used in xpcshell tests
19551964
// introduced by bug 625160 patch 8/8. Maybe these tests need to be
19561965
// adjusted now that we're only whitelisting intel/ati/nvidia.
19571966
!adapterVendorID.LowerCaseEqualsLiteral("0xabcd") &&
19581967
!adapterVendorID.LowerCaseEqualsLiteral("0xdcba") &&
19591968
!adapterVendorID.LowerCaseEqualsLiteral("0xabab") &&
19601969
!adapterVendorID.LowerCaseEqualsLiteral("0xdcdc")) {
1961-
if (adapterVendorID.Equals(
1962-
GfxDriverInfo::GetDeviceVendor(DeviceVendor::MicrosoftHyperV),
1963-
nsCaseInsensitiveStringComparator) ||
1964-
adapterVendorID.Equals(
1965-
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VMWare),
1966-
nsCaseInsensitiveStringComparator) ||
1967-
adapterVendorID.Equals(
1968-
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VirtualBox),
1969-
nsCaseInsensitiveStringComparator)) {
1970-
aFailureId = "FEATURE_FAILURE_VM_VENDOR";
1971-
} else if (adapterVendorID.Equals(GfxDriverInfo::GetDeviceVendor(
1970+
if (adapterVendorID.Equals(GfxDriverInfo::GetDeviceVendor(
19721971
DeviceVendor::MicrosoftBasic),
19731972
nsCaseInsensitiveStringComparator)) {
19741973
aFailureId = "FEATURE_FAILURE_MICROSOFT_BASIC_VENDOR";

0 commit comments

Comments
 (0)