mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-18 05:34:42 +10:00
sys_patch: Drop Metal downgrade on Kepler
This commit is contained in:
@@ -79,8 +79,10 @@ def SystemPatchDictionary(os_major, os_minor, non_metal_os_support):
|
||||
},
|
||||
"Install Non-Root": {
|
||||
"/Library/Application Support/SkyLightPlugins": {
|
||||
**({ "DropboxHack.dylib": "SkyLightPlugins" } if os_major >= os_data.os_data.monterey else {}),
|
||||
**({ "DropboxHack.txt": "SkyLightPlugins" } if os_major >= os_data.os_data.monterey else {}),
|
||||
**({ "DropboxHack.dylib": "SkyLightPlugins" } if os_major >= os_data.os_data.monterey else {}),
|
||||
**({ "DropboxHack.txt": "SkyLightPlugins" } if os_major >= os_data.os_data.monterey else {}),
|
||||
**({ "CatalystButton.dylib": "SkyLightPlugins" } if os_major >= os_data.os_data.monterey else {}),
|
||||
**({ "CatalystButton.txt": "SkyLightPlugins" } if os_major >= os_data.os_data.monterey else {}),
|
||||
},
|
||||
},
|
||||
"Processes": {
|
||||
@@ -191,6 +193,33 @@ def SystemPatchDictionary(os_major, os_minor, non_metal_os_support):
|
||||
},
|
||||
},
|
||||
|
||||
# Temporary work-around for Kepler GPUs on Ventura
|
||||
# We removed the reliance on Metal.framework downgrade, however the new Kepler
|
||||
# patchset breaks with the old Metal. Thus we need to ensure stock variant is used
|
||||
# Remove this when OCLP is merged onto mainline
|
||||
"Revert Metal Downgrade": {
|
||||
"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.ventura,
|
||||
"OS Minor": 99
|
||||
},
|
||||
},
|
||||
"Remove": {
|
||||
"/System/Library/Frameworks/Metal.framework/Versions/A/": [
|
||||
"Metal",
|
||||
"MetalOld.dylib",
|
||||
],
|
||||
"/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSCore.framework/Versions/A": [
|
||||
"MPSCore",
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
# Monterey has a WebKit sandboxing issue where many UI elements fail to render
|
||||
# This patch simple replaces the sandbox profile with one supporting our GPUs
|
||||
# Note: Neither Big Sur nor Ventura have this issue
|
||||
@@ -416,7 +445,7 @@ def SystemPatchDictionary(os_major, os_minor, non_metal_os_support):
|
||||
"NVDAStartup.kext": "12.0 Beta 6",
|
||||
"GeForceAIRPlugin.bundle": "11.0 Beta 3",
|
||||
"GeForceGLDriver.bundle": "11.0 Beta 3",
|
||||
"GeForceMTLDriver.bundle": "11.0 Beta 3",
|
||||
"GeForceMTLDriver.bundle": "11.0 Beta 3" if os_major <= os_data.os_data.monterey else f"11.0 Beta 3-{os_major}",
|
||||
"GeForceVADriver.bundle": "12.0 Beta 6",
|
||||
},
|
||||
"/System/Library/Frameworks": {
|
||||
|
||||
Reference in New Issue
Block a user