sys_patch: Add AMD Vega support for pre-AVX2.0

This commit is contained in:
Mykola Grymalyuk
2022-12-22 20:14:10 -07:00
parent 1277fef735
commit 2331aeb6d9
5 changed files with 70 additions and 11 deletions
+46 -8
View File
@@ -630,6 +630,7 @@ def SystemPatchDictionary(os_major, os_minor, non_metal_os_support):
"AMD8000Controller.kext": "12.5",
"AMD9000Controller.kext": "12.5",
"AMD9500Controller.kext": "12.5",
"AMD10000Controller.kext": "12.5",
"AMDRadeonX4000.kext": "12.5",
"AMDRadeonX4000HWServices.kext": "12.5",
"AMDFramebuffer.kext": "12.5",
@@ -640,14 +641,6 @@ def SystemPatchDictionary(os_major, os_minor, non_metal_os_support):
"AMDShared.bundle": "12.5",
},
},
"Remove": {
"/System/Library/Extensions": [
# Due to downgraded AMDSupport.kext
# In the future, we will have to downgrade the entire AMD stack
# to support non-AVX2.0 machines with Vega or newer
"AMD10000Controller.kext",
],
},
},
# Used only for AMD Polaris with host lacking AVX2.0
# Note missing framebuffers are not restored (ex. 'ATY,Berbice')
@@ -673,6 +666,51 @@ def SystemPatchDictionary(os_major, os_minor, non_metal_os_support):
},
},
},
"AMD Legacy Vega": {
"Display Name": "Graphics: AMD Legacy Vega",
"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/Extensions": {
"AMDRadeonX5000.kext": "12.5",
"AMDRadeonX5000GLDriver.bundle": "12.5",
"AMDRadeonX5000MTLDriver.bundle": "12.5",
"AMDRadeonX5000Shared.bundle": "12.5",
"AMDShared.bundle": "12.5",
},
},
},
# Support mixed legacy and modern AMD GPUs
# Specifically systems using AMD GCN 1-3 and Vega (ex. MacPro6,1 with eGPU)
# Assume 'AMD Legacy GCN' patchset is installed alongside this
"AMD Legacy Vega Extended": {
"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/Extensions": {
"AMDRadeonX5000HWServices.kext": "12.5",
},
},
},
"Intel Ironlake": {
"Display Name": "Graphics: Intel Ironlake",
"OS Support": {