Add TeraScale 2 Acceleration for Monterey

This commit is contained in:
Mykola Grymalyuk
2021-09-18 16:33:02 -06:00
parent 48c838d92b
commit afdf49a074
5 changed files with 12 additions and 10 deletions

View File

@@ -351,7 +351,7 @@ set million colour before rebooting"""
print("- Installing TeraScale 2 Acceleration Kext patches for Mojave/Catalina")
self.gpu_accel_legacy()
self.add_new_binaries(SysPatchArray.AddAMDAccelLegacy, self.constants.legacy_amd_path)
elif self.constants.detected_os == self.constants.big_sur and self.constants.allow_ts2_accel is True:
elif self.constants.detected_os in [self.constants.big_sur, self.constants.monterey] and self.constants.allow_ts2_accel is True:
# TODO: Enable for Monterey when acceleration patches proress
print("- Installing TeraScale 2 Acceleration Kext patches for Big Sur")
self.delete_old_binaries(SysPatchArray.DeleteAMDAccel11)
@@ -498,14 +498,13 @@ set million colour before rebooting"""
self.amd_ts2 is True
and self.constants.detected_os in self.constants.legacy_accel_support
and self.constants.allow_ts2_accel is True
and self.constants.detected_os != self.constants.monterey
):
# TeraScale 2 patches must be installed after Intel HD3000
self.add_new_binaries(SysPatchArray.AddAMDAccel11TS2, self.constants.legacy_amd_path_ts2)
if self.added_legacy_kexts is True and self.constants.detected_os in self.constants.legacy_accel_support:
self.gpu_accel_legacy_extended()
if self.amd_ts2 is True and self.constants.allow_ts2_accel is True and self.constants.detected_os != self.constants.monterey:
if self.amd_ts2 is True and self.constants.allow_ts2_accel is True:
self.gpu_accel_legacy_extended_ts2()
# Misc patches