diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f6541679..8cee44f06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ - Big thanks to Jackluke, EduCovas, DhinakG, MykolaG! - Add DebugEnhancer for better macOS Monterey logs - DebugEnhancer (1.0.3 rolling - 06-08-2021) +- Add TeraScale 2 Graphics Acceleration to Big Sur + - User configurable, those prone to seizures are recommended to avoid or have another setup the machine due to initial colour strobing before forcing Million Colours on the display with SwitchResX or ResXtreme ## 0.1.6 - Add XHCI UEFI Driver for 3rd Party USB 3.0 Controllers diff --git a/OpenCore-Patcher.command b/OpenCore-Patcher.command index c98b11e6d..8519792c0 100755 --- a/OpenCore-Patcher.command +++ b/OpenCore-Patcher.command @@ -111,6 +111,7 @@ system_profiler SPHardwareDataType | grep 'Model Identifier' [f"Set Vault Mode:\t\t\tCurrently {self.constants.vault}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).change_vault], [f"Allow FireWire Boot:\t\tCurrently {self.constants.firewire_boot}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).allow_firewire], [f"Allow NVMe Boot:\t\t\tCurrently {self.constants.nvme_boot}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).allow_nvme], + [f"Enable TeraScale 2 Acceleration:\tCurrently {self.constants.terscale_2_patch}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).enable_terascale], [f"Disable AMFI:\t\t\tCurrently {self.constants.disable_amfi}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).set_amfi], [f"Set SIP and SecureBootModel:\tSIP: {self.constants.sip_status} SBM: {self.constants.secure_status}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).change_sip], [f"Allow OpenCore on native Models:\tCurrently {self.constants.allow_oc_everywhere}", CliMenu.MenuOptions(self.constants.custom_model or self.current_model, self.constants).allow_native_models], diff --git a/Resources/CliMenu.py b/Resources/CliMenu.py index 8c0c805e0..4cebc6f14 100644 --- a/Resources/CliMenu.py +++ b/Resources/CliMenu.py @@ -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") \ No newline at end of file diff --git a/Resources/Constants.py b/Resources/Constants.py index 3092efa5b..2cc3847a7 100644 --- a/Resources/Constants.py +++ b/Resources/Constants.py @@ -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 diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index b32f1ea6d..64cfa829e 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -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: