From df70bf4a0a2b159cd76c0eea5254e10dc98bc2f4 Mon Sep 17 00:00:00 2001 From: goodusername123 <61405538+goodusername123@users.noreply.github.com> Date: Fri, 17 Nov 2023 11:55:08 -0600 Subject: [PATCH] feat: allow hardware acceleration in VMware on Windows (cherry picked from commit dd5a1ea020d3c8eb4adac1667a4712f242766e46) --- widget/windows/GfxInfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widget/windows/GfxInfo.cpp b/widget/windows/GfxInfo.cpp index ff0c90f96ed0..88c9417194b7 100644 --- a/widget/windows/GfxInfo.cpp +++ b/widget/windows/GfxInfo.cpp @@ -1971,6 +1971,9 @@ nsresult GfxInfo::GetFeatureStatusImpl( !adapterVendorID.Equals( GfxDriverInfo::GetDeviceVendor(DeviceVendor::Qualcomm), nsCaseInsensitiveStringComparator) && + !adapterVendorID.Equals( + GfxDriverInfo::GetDeviceVendor(DeviceVendor::VMWare), + nsCaseInsensitiveStringComparator) && // FIXME - these special hex values are currently used in xpcshell tests // introduced by bug 625160 patch 8/8. Maybe these tests need to be // adjusted now that we're only whitelisting intel/ati/nvidia. @@ -1981,9 +1984,6 @@ nsresult GfxInfo::GetFeatureStatusImpl( if (adapterVendorID.Equals( GfxDriverInfo::GetDeviceVendor(DeviceVendor::MicrosoftHyperV), nsCaseInsensitiveStringComparator) || - adapterVendorID.Equals( - GfxDriverInfo::GetDeviceVendor(DeviceVendor::VMWare), - nsCaseInsensitiveStringComparator) || adapterVendorID.Equals( GfxDriverInfo::GetDeviceVendor(DeviceVendor::VirtualBox), nsCaseInsensitiveStringComparator)) {