mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-18 21:30:00 +10:00
defaults: Skip disabled GPUs
This commit is contained in:
+7
-4
@@ -1103,6 +1103,7 @@ smbios_dictionary = {
|
|||||||
"Ethernet Chipset": None,
|
"Ethernet Chipset": None,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Haswell,
|
device_probe.Intel.Archs.Haswell,
|
||||||
|
device_probe.NVIDIA.Archs.Kepler,
|
||||||
],
|
],
|
||||||
"Stock Storage": [
|
"Stock Storage": [
|
||||||
"NVMe",
|
"NVMe",
|
||||||
@@ -2137,7 +2138,6 @@ smbios_dictionary = {
|
|||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Ivy_Bridge,
|
device_probe.Intel.Archs.Ivy_Bridge,
|
||||||
device_probe.NVIDIA.Archs.Kepler,
|
|
||||||
],
|
],
|
||||||
"Stock Storage": [
|
"Stock Storage": [
|
||||||
"SATA 3.5",
|
"SATA 3.5",
|
||||||
@@ -2155,7 +2155,6 @@ smbios_dictionary = {
|
|||||||
"Ethernet Chipset": "Broadcom",
|
"Ethernet Chipset": "Broadcom",
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Haswell,
|
device_probe.Intel.Archs.Haswell,
|
||||||
device_probe.NVIDIA.Archs.Kepler,
|
|
||||||
],
|
],
|
||||||
"Stock Storage": [
|
"Stock Storage": [
|
||||||
"SATA 3.5",
|
"SATA 3.5",
|
||||||
@@ -2300,7 +2299,7 @@ smbios_dictionary = {
|
|||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Skylake,
|
device_probe.Intel.Archs.Skylake,
|
||||||
device_probe.AMD.Archs.Legacy_GCN_8000,
|
device_probe.AMD.Archs.Legacy_GCN_8000,
|
||||||
# System also shipped with Legacy_GCN_9000 (ie. R9 M395X)
|
device_probe.AMD.Archs.Legacy_GCN_9000,
|
||||||
],
|
],
|
||||||
"Stock Storage": [
|
"Stock Storage": [
|
||||||
"SATA 3.5",
|
"SATA 3.5",
|
||||||
@@ -2319,6 +2318,7 @@ smbios_dictionary = {
|
|||||||
"5K Display": True,
|
"5K Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Skylake,
|
device_probe.Intel.Archs.Skylake,
|
||||||
|
device_probe.AMD.Archs.Legacy_GCN_8000,
|
||||||
device_probe.AMD.Archs.Legacy_GCN_9000,
|
device_probe.AMD.Archs.Legacy_GCN_9000,
|
||||||
],
|
],
|
||||||
"Stock Storage": [
|
"Stock Storage": [
|
||||||
@@ -2338,6 +2338,7 @@ smbios_dictionary = {
|
|||||||
"5K Display": True,
|
"5K Display": True,
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.Intel.Archs.Skylake,
|
device_probe.Intel.Archs.Skylake,
|
||||||
|
device_probe.AMD.Archs.Legacy_GCN_8000,
|
||||||
device_probe.AMD.Archs.Legacy_GCN_9000,
|
device_probe.AMD.Archs.Legacy_GCN_9000,
|
||||||
],
|
],
|
||||||
"Stock Storage": [
|
"Stock Storage": [
|
||||||
@@ -2590,7 +2591,9 @@ smbios_dictionary = {
|
|||||||
"Ethernet Chipset": "Intel 80003ES2LAN",
|
"Ethernet Chipset": "Intel 80003ES2LAN",
|
||||||
"Socketed GPUs": "PCIe",
|
"Socketed GPUs": "PCIe",
|
||||||
"Stock GPUs": [
|
"Stock GPUs": [
|
||||||
device_probe.AMD.Archs.TeraScale_1
|
device_probe.AMD.Archs.TeraScale_1,
|
||||||
|
device_probe.AMD.Archs.Polaris,
|
||||||
|
|
||||||
],
|
],
|
||||||
"Stock Storage": [
|
"Stock Storage": [
|
||||||
"SATA 3.5",
|
"SATA 3.5",
|
||||||
|
|||||||
@@ -157,6 +157,9 @@ class generate_defaults:
|
|||||||
|
|
||||||
for gpu in gpu_dict:
|
for gpu in gpu_dict:
|
||||||
if self.host_is_target:
|
if self.host_is_target:
|
||||||
|
if gpu.class_code:
|
||||||
|
if gpu.class_code == 0xFFFFFFFF:
|
||||||
|
continue
|
||||||
gpu = gpu.arch
|
gpu = gpu.arch
|
||||||
|
|
||||||
# Legacy Metal Logic
|
# Legacy Metal Logic
|
||||||
|
|||||||
Reference in New Issue
Block a user