Skip to content

Commit

Permalink
sys_patch_dict: Fix OpenCL on non-AVX2 legacy GCN
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Oct 7, 2022
1 parent 5aa7ab3 commit 5a2afa4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Expand Up @@ -28,7 +28,7 @@
- Add Ventura Boot Picker icons
- Implement KDK-less root patching for Metal Intel and Nvidia GPUs
- AMD GCN will still require a KDK installed for patching
- Resolve OpenCL support for legacy Metal Intel iGPUs
- Resolve OpenCL support for legacy Metal GPUs
- Implement Automatic Rosetta Cryptex installation on OS installs and updates
- Drops need for manual OS.dmg swapping on pre-Haswell
- Implement automatic Kernel Debug Kit downloader for systems requiring Boot/SysKC rebuilding
Expand All @@ -39,7 +39,7 @@
- OpenCorePkg 0.8.5 release
- Lilu 1.6.2 - release
- FeatureUnlock 1.0.9 release
- PatcherSupportPkg 0.6.6 - release
- PatcherSupportPkg 0.6.7 - release
- BrcmPatchRAM 2.6.4 - release
- AutoPkgInstaller 1.0.1 - release
- CryptexFixup 1.0.0 - release
Expand Down
21 changes: 21 additions & 0 deletions data/sys_patch_dict.py
Expand Up @@ -373,6 +373,27 @@ def SystemPatchDictionary(os_major, os_minor, non_metal_os_support):
},
},

# In Ventura, Apple added AVX2.0 code to the OpenCL/GL compilers
"AMD OpenCL": {
"Display Name": "",
"OS Support": {
"Minimum OS Support": {
"OS Major": os_data.os_data.ventura,
"OS Minor": 0
},
"Maximum OS Support": {
"OS Major": os_data.os_data.max_os,
"OS Minor": 99
},
},
"Install": {
"/System/Library/Frameworks": {
"OpenCL.framework": "12.5 non-AVX2.0",
"OpenGL.framework": "12.5 non-AVX2.0",
},
},
},

"Nvidia Tesla": {
"Display Name": "Graphics: Nvidia Tesla",
"OS Support": {
Expand Down
2 changes: 1 addition & 1 deletion resources/constants.py
Expand Up @@ -13,7 +13,7 @@ class Constants:
def __init__(self):
# Patcher Versioning
self.patcher_version = "0.5.0" # OpenCore-Legacy-Patcher
self.patcher_support_pkg_version = "0.6.6" # PatcherSupportPkg
self.patcher_support_pkg_version = "0.6.7" # 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/"
self.discord_link = "https://discord.gg/rqdPgH8xSN"
Expand Down
2 changes: 2 additions & 0 deletions resources/sys_patch_detect.py
Expand Up @@ -516,6 +516,8 @@ def generate_patchset(self, hardware_details):
required_patches.update({"Monterey GVA": all_hardware_patchset["Graphics"]["Monterey GVA"]})
required_patches.update({"Monterey OpenCL": all_hardware_patchset["Graphics"]["Monterey OpenCL"]})
required_patches.update({"AMD Legacy GCN": all_hardware_patchset["Graphics"]["AMD Legacy GCN"]})
if "AVX2" not in self.constants.computer.cpu.leafs:
required_patches.update({"AMD OpenCL": all_hardware_patchset["Graphics"]["AMD OpenCL"]})
if hardware_details["Brightness: Legacy Backlight Control"] is True:
required_patches.update({"Legacy Backlight Control": all_hardware_patchset["Brightness"]["Legacy Backlight Control"]})
if hardware_details["Audio: Legacy Realtek"] is True:
Expand Down

0 comments on commit 5a2afa4

Please sign in to comment.