gecko-dev/widget/GfxInfoDeviceVendorDefs.h
Andrew Osmond f6f0434b71 Bug 1921554 - Generate gfx blocklist features/status/etc list to create downloadable blocklist bindings. r=bradwerth,jnicol
This patch turns the various nsIGfxInfo::FEATURE_* constants into macros
that can be included to generate C++ code at runtime. This has been done
to automatically generate the necessary bindings for the downloadable
blocklist. This way we will never miss adding the necessary
prerequisities as we have in the past.

Differential Revision: https://phabricator.services.mozilla.com/D224056
2024-10-05 15:10:32 +00:00

29 lines
1.3 KiB
C

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// NOTE: No include guard. This is meant to be included to generate different
// code based on how GFXINFO_FEATURE_STATUS is defined, possibly multiple times
// in a single translation unit.
/* clang-format off */
// There is an assumption that this is the first enum
GFXINFO_DEVICE_VENDOR(All, "")
GFXINFO_DEVICE_VENDOR(Intel, "0x8086")
GFXINFO_DEVICE_VENDOR(NVIDIA, "0x10de")
GFXINFO_DEVICE_VENDOR(ATI, "0x1002")
// AMD has 0x1022 but continues to release GPU hardware under ATI.
GFXINFO_DEVICE_VENDOR(Microsoft, "0x1414")
GFXINFO_DEVICE_VENDOR(MicrosoftBasic, "0x00ba")
GFXINFO_DEVICE_VENDOR(MicrosoftHyperV, "0x000b")
GFXINFO_DEVICE_VENDOR(Parallels, "0x1ab8")
GFXINFO_DEVICE_VENDOR(VMWare, "0x15ad")
GFXINFO_DEVICE_VENDOR(VirtualBox, "0x80ee")
GFXINFO_DEVICE_VENDOR(Apple, "0x106b")
GFXINFO_DEVICE_VENDOR(Amazon, "0x1d0f")
// Choose an arbitrary Qualcomm PCI VENdor ID for now.
// TODO: This should be "QCOM" when Windows device ID parsing is reworked.
GFXINFO_DEVICE_VENDOR(Qualcomm, "0x5143")