From 60221edb0775aa80c4aec1c49afe0810d9ea3847 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Mon, 22 Nov 2021 14:04:45 -0700 Subject: [PATCH] Sync PatcherSupportPkg --- CHANGELOG.md | 3 ++- resources/constants.py | 14 +++++++------- resources/sys_patch.py | 2 ++ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d363ac10..4a3ff25c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ - OpenCore 0.7.5 - release - BrcmPatchRAM 2.6.1 - release - WhateverGreen 1.5.5 - release - - PatcherSupportPkg 0.2.4 - release + - PatcherSupportPkg 0.2.5 - release - FeatureUnlock 1.0.4 - rolling (4161389) - Fix AirPlay to Mac on macOS 12.1 - Add macOS InstallAssistant downloader to TUI @@ -26,6 +26,7 @@ - Credit to parrotgeek1 for LegacyUSBVideoSupport - Fix Wifi Password prompt in Monterey on legacy wifi - Applicable for Atheros, BCM94328, BCM94322 +- Fix OpenCL Acceleration on Ivy Bridge and Kepler ## 0.3.1 - Increment Binaries: diff --git a/resources/constants.py b/resources/constants.py index 3e6c70fb8..6b73b4332 100644 --- a/resources/constants.py +++ b/resources/constants.py @@ -15,7 +15,7 @@ class Constants: def __init__(self): # Patcher Versioning self.patcher_version = "0.3.2" # OpenCore-Legacy-Patcher - self.patcher_support_pkg_version = "0.2.4" # PatcherSupportPkg + self.patcher_support_pkg_version = "0.2.5" # PatcherSupportPkg self.url_patcher_support_pkg = "https://github.com/dortania/PatcherSupportPkg/releases/download/" self.nightly_url_patcher_support_pkg = "https://nightly.link/dortania/PatcherSupportPkg/workflows/build/master/" @@ -529,7 +529,7 @@ class Constants: @property def payload_apple_frameworks_path_accel(self): - return self.payload_apple_frameworks_path / Path("Graphics-Acceleration") + return self.payload_apple_frameworks_path / Path("Graphics-Acceleration-Non-Metal") @property def payload_apple_frameworks_path_accel_ts2(self): @@ -538,22 +538,22 @@ class Constants: @property def payload_apple_frameworks_path_accel_ivy(self): return self.payload_apple_frameworks_path / Path("Graphics-Acceleration-Ivy-Bridge") + + @property + def payload_apple_frameworks_path_accel_kepler(self): + return self.payload_apple_frameworks_path / Path("Graphics-Acceleration-Kepler") @property def payload_apple_lauchd_path(self): return self.payload_apple_root_path / Path("LaunchDaemons") - @property - def payload_apple_lauchd_path_accel(self): - return self.payload_apple_lauchd_path / Path("Graphics-Acceleration") - @property def payload_apple_private_frameworks_path(self): return self.payload_apple_root_path / Path("PrivateFrameworks") @property def payload_apple_private_frameworks_path_accel(self): - return self.payload_apple_private_frameworks_path / Path("Graphics-Acceleration") + return self.payload_apple_private_frameworks_path / Path("Graphics-Acceleration-Non-Metal") @property def payload_apple_private_frameworks_path_accel_ts2(self): diff --git a/resources/sys_patch.py b/resources/sys_patch.py index 46f0995fd..16ea16734 100644 --- a/resources/sys_patch.py +++ b/resources/sys_patch.py @@ -481,6 +481,8 @@ set million colour before rebooting""" if self.constants.detected_os == os_data.os_data.monterey: print("- Installing Kepler Acceleration Kext patches for Monterey") self.add_new_binaries(sys_patch_data.AddNvidiaKeplerAccel11, self.constants.legacy_nvidia_kepler_path) + print("- Merging Kepler Frameworks") + utilities.elevated(["rsync", "-r", "-i", "-a", f"{self.constants.payload_apple_frameworks_path_accel_kepler}/", self.mount_frameworks], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) else: print("- Installing Kepler Kext patches for generic OS") self.add_new_binaries(sys_patch_data.AddNvidiaKeplerAccel11, self.constants.legacy_nvidia_kepler_path)