import from UXP: Whitelist virtual GPUs (VirtualBox, VMware, VirtIO (QEMU and forks like UTM), Parallels) (235bcb01)

This commit is contained in:
2026-05-19 22:53:26 +08:00
parent c84685d78a
commit 1f850cf78e
+7 -2
View File
@@ -1220,11 +1220,16 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
!adapterVendorID.Equals(GfxDriverInfo::GetDeviceVendor(VendorMicrosoft), 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.
// intel/ati/nvidia. Also allow common virtual GPU vendor IDs (VirtualBox, VMware, QEMU/virtio, Parallels).
!adapterVendorID.LowerCaseEqualsLiteral("0xabcd") &&
!adapterVendorID.LowerCaseEqualsLiteral("0xdcba") &&
!adapterVendorID.LowerCaseEqualsLiteral("0xabab") &&
!adapterVendorID.LowerCaseEqualsLiteral("0xdcdc"))
!adapterVendorID.LowerCaseEqualsLiteral("0xdcdc") &&
!adapterVendorID.LowerCaseEqualsLiteral("0x80ee") && /* VirtualBox */
!adapterVendorID.LowerCaseEqualsLiteral("0x15ad") && /* VMware */
!adapterVendorID.LowerCaseEqualsLiteral("0x1234") && /* QEMU (common) */
!adapterVendorID.LowerCaseEqualsLiteral("0x1af4") && /* virtio/QEMU */
!adapterVendorID.LowerCaseEqualsLiteral("0x1ab8") ) /* Parallels */
{
aFailureId = "FEATURE_FAILURE_UNKNOWN_DEVICE_VENDOR";
*aStatus = FEATURE_BLOCKED_DEVICE;