mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 04:38:20 +10:00
defaults.py: Fix Vega/Navi logic
This commit is contained in:
@@ -170,6 +170,8 @@ class generate_defaults:
|
||||
device_probe.AMD.Archs.Legacy_GCN_8000,
|
||||
device_probe.AMD.Archs.Legacy_GCN_9000,
|
||||
device_probe.AMD.Archs.Polaris,
|
||||
device_probe.AMD.Archs.Vega,
|
||||
device_probe.AMD.Archs.Navi,
|
||||
]:
|
||||
if gpu in [
|
||||
device_probe.AMD.Archs.Legacy_GCN_7000,
|
||||
@@ -191,7 +193,11 @@ class generate_defaults:
|
||||
self.constants.serial_settings = "Minimal"
|
||||
|
||||
# See if system can use the native AMD stack in Ventura
|
||||
if gpu == device_probe.AMD.Archs.Polaris:
|
||||
if gpu in [
|
||||
device_probe.AMD.Archs.Polaris,
|
||||
device_probe.AMD.Archs.Vega,
|
||||
device_probe.AMD.Archs.Navi,
|
||||
]:
|
||||
if self.host_is_target:
|
||||
if "AVX2" in self.constants.computer.cpu.leafs:
|
||||
continue
|
||||
|
||||
@@ -117,8 +117,7 @@ class detect_root_patch:
|
||||
device_probe.AMD.Archs.Polaris,
|
||||
]:
|
||||
if self.constants.detected_os > os_data.os_data.monterey:
|
||||
translated = subprocess.run("sysctl -in sysctl.proc_translated".split(), stdout=subprocess.PIPE).stdout.decode()
|
||||
if translated:
|
||||
if self.constants.computer.rosetta_active is True:
|
||||
continue
|
||||
|
||||
if gpu.arch == device_probe.AMD.Archs.Polaris:
|
||||
|
||||
Reference in New Issue
Block a user