feat: allow hardware acceleration in VMware on Windows

(cherry picked from commit dd5a1ea020d3c8eb4adac1667a4712f242766e46)
This commit is contained in:
goodusername123
2023-11-17 11:55:08 -06:00
committed by Alex Kontos
parent 74f71b8e0b
commit df70bf4a0a

View File

@@ -1971,6 +1971,9 @@ nsresult GfxInfo::GetFeatureStatusImpl(
!adapterVendorID.Equals( !adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::Qualcomm), GfxDriverInfo::GetDeviceVendor(DeviceVendor::Qualcomm),
nsCaseInsensitiveStringComparator) && nsCaseInsensitiveStringComparator) &&
!adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VMWare),
nsCaseInsensitiveStringComparator) &&
// FIXME - these special hex values are currently used in xpcshell tests // FIXME - these special hex values are currently used in xpcshell tests
// introduced by bug 625160 patch 8/8. Maybe these tests need to be // introduced by bug 625160 patch 8/8. Maybe these tests need to be
// adjusted now that we're only whitelisting intel/ati/nvidia. // adjusted now that we're only whitelisting intel/ati/nvidia.
@@ -1981,9 +1984,6 @@ nsresult GfxInfo::GetFeatureStatusImpl(
if (adapterVendorID.Equals( if (adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::MicrosoftHyperV), GfxDriverInfo::GetDeviceVendor(DeviceVendor::MicrosoftHyperV),
nsCaseInsensitiveStringComparator) || nsCaseInsensitiveStringComparator) ||
adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VMWare),
nsCaseInsensitiveStringComparator) ||
adapterVendorID.Equals( adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VirtualBox), GfxDriverInfo::GetDeviceVendor(DeviceVendor::VirtualBox),
nsCaseInsensitiveStringComparator)) { nsCaseInsensitiveStringComparator)) {