mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
Add Curie and Comet Lake IDs
This commit is contained in:
@@ -3,6 +3,18 @@ class nvidia_ids:
|
||||
# Courteous of envytools as well as Macrumors:
|
||||
# https://envytools.readthedocs.io/en/latest/hw/pciid.html
|
||||
# https://forums.macrumors.com/threads/2011-imac-graphics-card-upgrade.1596614/
|
||||
curie_ids = [
|
||||
0x0040,
|
||||
0x00f0,
|
||||
0x0220,
|
||||
0x0140,
|
||||
0x0160,
|
||||
0x0090,
|
||||
0x01d0,
|
||||
0x0390,
|
||||
0x0290,
|
||||
]
|
||||
|
||||
tesla_ids = [
|
||||
# G80
|
||||
0x0190, # G80 [GeForce 8800 GTS / 8800 GTX]
|
||||
@@ -843,6 +855,12 @@ class intel_ids:
|
||||
0x3E98,
|
||||
]
|
||||
|
||||
comet_lake_ids = [
|
||||
0x9BC8,
|
||||
0x9BC5,
|
||||
0x9BC4,
|
||||
]
|
||||
|
||||
ice_lake_ids = [
|
||||
# AppleIntelICLLPGraphicsFramebuffer IDs
|
||||
0xFF05,
|
||||
|
||||
@@ -160,6 +160,7 @@ class NVIDIA(GPU):
|
||||
|
||||
class Archs(enum.Enum):
|
||||
# pylint: disable=invalid-name
|
||||
Curie = "Curie"
|
||||
Fermi = "Fermi"
|
||||
Tesla = "Tesla"
|
||||
Kepler = "Kepler"
|
||||
@@ -169,7 +170,9 @@ class NVIDIA(GPU):
|
||||
|
||||
def detect_arch(self):
|
||||
# G80/G80GL
|
||||
if self.device_id in pci_data.nvidia_ids.tesla_ids:
|
||||
if self.device_id in pci_data.nvidia_ids.curie_ids:
|
||||
self.arch = NVIDIA.Archs.Curie
|
||||
elif self.device_id in pci_data.nvidia_ids.tesla_ids:
|
||||
self.arch = NVIDIA.Archs.Tesla
|
||||
elif self.device_id in pci_data.nvidia_ids.fermi_ids:
|
||||
self.arch = NVIDIA.Archs.Fermi
|
||||
@@ -237,6 +240,7 @@ class Intel(GPU):
|
||||
Skylake = "Skylake"
|
||||
Kaby_Lake = "Kaby Lake"
|
||||
Coffee_Lake = "Coffee Lake"
|
||||
Comet_Lake = "Comet Lake"
|
||||
Ice_Lake = "Ice Lake"
|
||||
Unknown = "Unknown"
|
||||
|
||||
@@ -263,6 +267,8 @@ class Intel(GPU):
|
||||
self.arch = Intel.Archs.Kaby_Lake
|
||||
elif self.device_id in pci_data.intel_ids.coffee_lake_ids:
|
||||
self.arch = Intel.Archs.Coffee_Lake
|
||||
elif self.device_id in pci_data.intel_ids.comet_lake_ids:
|
||||
self.arch = Intel.Archs.Comet_Lake
|
||||
elif self.device_id in pci_data.intel_ids.ice_lake_ids:
|
||||
self.arch = Intel.Archs.Ice_Lake
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user