mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 22:50:51 +10:00
Add GMA data set
This commit is contained in:
@@ -789,6 +789,17 @@ class amd_ids:
|
|||||||
|
|
||||||
|
|
||||||
class intel_ids:
|
class intel_ids:
|
||||||
|
gma_950_ids = [
|
||||||
|
0x2582,
|
||||||
|
0x2592,
|
||||||
|
0x2772,
|
||||||
|
0x27A2,
|
||||||
|
]
|
||||||
|
|
||||||
|
gma_x3100_ids = [
|
||||||
|
0x2a02,
|
||||||
|
]
|
||||||
|
|
||||||
iron_ids = [
|
iron_ids = [
|
||||||
# AppleIntelHDGraphics IDs
|
# AppleIntelHDGraphics IDs
|
||||||
0x0044,
|
0x0044,
|
||||||
|
|||||||
@@ -224,6 +224,8 @@ class Intel(GPU):
|
|||||||
|
|
||||||
class Archs(enum.Enum):
|
class Archs(enum.Enum):
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
|
GMA_950 = "GMA 950"
|
||||||
|
GMA_X3100 = "GMA X3100"
|
||||||
Iron_Lake = "Iron Lake"
|
Iron_Lake = "Iron Lake"
|
||||||
Sandy_Bridge = "Sandy Bridge"
|
Sandy_Bridge = "Sandy Bridge"
|
||||||
Ivy_Bridge = "Ivy Bridge"
|
Ivy_Bridge = "Ivy Bridge"
|
||||||
@@ -238,7 +240,11 @@ class Intel(GPU):
|
|||||||
arch: Archs = field(init=False)
|
arch: Archs = field(init=False)
|
||||||
|
|
||||||
def detect_arch(self):
|
def detect_arch(self):
|
||||||
if self.device_id in pci_data.intel_ids.iron_ids:
|
if self.device_id in pci_data.intel_ids.gma_950_ids:
|
||||||
|
self.arch = Intel.Archs.GMA_950
|
||||||
|
elif self.device_id in pci_data.intel_ids.gma_x3100_ids:
|
||||||
|
self.arch = Intel.Archs.GMA_X3100
|
||||||
|
elif self.device_id in pci_data.intel_ids.iron_ids:
|
||||||
self.arch = Intel.Archs.Iron_Lake
|
self.arch = Intel.Archs.Iron_Lake
|
||||||
elif self.device_id in pci_data.intel_ids.sandy_ids:
|
elif self.device_id in pci_data.intel_ids.sandy_ids:
|
||||||
self.arch = Intel.Archs.Sandy_Bridge
|
self.arch = Intel.Archs.Sandy_Bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user