Skip to content

Commit

Permalink
Enable GPU acceleration on VM (thanks goodusername123)
Browse files Browse the repository at this point in the history
  • Loading branch information
K4sum1 committed May 14, 2024
1 parent 8444dd8 commit b4308b4
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions widget/windows/GfxInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1945,30 +1945,29 @@ nsresult GfxInfo::GetFeatureStatusImpl(
!adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::Microsoft),
nsCaseInsensitiveStringComparator) &&
!adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::MicrosoftHyperV),
nsCaseInsensitiveStringComparator) &&
!adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::Parallels),
nsCaseInsensitiveStringComparator) &&
!adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::Qualcomm),
nsCaseInsensitiveStringComparator) &&
!adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VMWare),
nsCaseInsensitiveStringComparator) &&
!adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VirtualBox),
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.
!adapterVendorID.LowerCaseEqualsLiteral("0xabcd") &&
!adapterVendorID.LowerCaseEqualsLiteral("0xdcba") &&
!adapterVendorID.LowerCaseEqualsLiteral("0xabab") &&
!adapterVendorID.LowerCaseEqualsLiteral("0xdcdc")) {
if (adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::MicrosoftHyperV),
nsCaseInsensitiveStringComparator) ||
adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VMWare),
nsCaseInsensitiveStringComparator) ||
adapterVendorID.Equals(
GfxDriverInfo::GetDeviceVendor(DeviceVendor::VirtualBox),
nsCaseInsensitiveStringComparator)) {
aFailureId = "FEATURE_FAILURE_VM_VENDOR";
} else if (adapterVendorID.Equals(GfxDriverInfo::GetDeviceVendor(
if (adapterVendorID.Equals(GfxDriverInfo::GetDeviceVendor(
DeviceVendor::MicrosoftBasic),
nsCaseInsensitiveStringComparator)) {
aFailureId = "FEATURE_FAILURE_MICROSOFT_BASIC_VENDOR";
Expand Down

0 comments on commit b4308b4

Please sign in to comment.