Add TeraScale 2 Acceleration

This commit is contained in:
Mykola Grymalyuk
2021-06-14 08:57:55 -06:00
parent 88ee0e813e
commit 803a699658
5 changed files with 31 additions and 1 deletions
+25
View File
@@ -493,5 +493,30 @@ OpenCore will enable NVMe support in it's picker
self.constants.nvme_boot = True
elif change_menu == "n":
self.constants.nvme_boot = False
else:
print("Invalid option")
def enable_terascale(self):
Utilities.cls()
Utilities.header(["Enable TeraScale 2 Acceleration"])
print("""
Currently TeraScale 2 graphics acceleration is in beta with
some unfortunate bugs on login including strobing colours
until the user forces Million Colours on the Display with
SwitchResX or resXtreme
Users sensitive to seizures should avoid using TeraScale 2
patches or ask someone to handle inital setup to ensure
no issues
Note: Acceleration only applies to macOS Big Sur
""")
change_menu = input("Enable TS2 Acceleration?(y/n): ")
if change_menu == "y":
self.constants.terscale_2_patch = True
elif change_menu == "n":
self.constants.terscale_2_patch = False
else:
print("Invalid option")
+1
View File
@@ -86,6 +86,7 @@ class Constants:
self.firewire_boot = False
self.nvme_boot = False
self.disable_amfi = False
self.terscale_2_patch = False
# OS Versions
self.tiger = 8
+2 -1
View File
@@ -362,7 +362,8 @@ class PatchSysVolume:
self.amfi_must_disable = True
# TODO: Enable TS2 support
elif dgpu_device in PCIIDArray.amd_ids().terascale_2_ids:
if self.constants.detected_os > self.constants.catalina:
# Requires manual permission from user to avoid medical issues
if self.constants.detected_os > self.constants.catalina and self.constants.terscale_2_patch is True:
self.amd_ts2 = True
self.amfi_must_disable = True
if igpu_vendor: