mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 13:29:16 +00:00
import from UXP: Whitelist virtual GPUs (VirtualBox, VMware, VirtIO (QEMU and forks like UTM), Parallels) (235bcb01)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user