mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 22:50:51 +10:00
Strip unneeded agdpmod patches
This commit is contained in:
+3
-6
@@ -421,7 +421,7 @@ class BuildOpenCore:
|
|||||||
"IOName": "#display",
|
"IOName": "#display",
|
||||||
"class-code": binascii.unhexlify("FFFFFFFF"),
|
"class-code": binascii.unhexlify("FFFFFFFF"),
|
||||||
}
|
}
|
||||||
else:
|
elif self.constants.serial_settings != "None":
|
||||||
self.config["DeviceProperties"]["Add"][self.gfx0_path] = {"agdpmod": "vit9696"}
|
self.config["DeviceProperties"]["Add"][self.gfx0_path] = {"agdpmod": "vit9696"}
|
||||||
|
|
||||||
# Audio Patch
|
# Audio Patch
|
||||||
@@ -496,7 +496,6 @@ class BuildOpenCore:
|
|||||||
"@0,backlight-control": binascii.unhexlify("01000000"),
|
"@0,backlight-control": binascii.unhexlify("01000000"),
|
||||||
"@0,built-in": binascii.unhexlify("01000000"),
|
"@0,built-in": binascii.unhexlify("01000000"),
|
||||||
"shikigva": 256,
|
"shikigva": 256,
|
||||||
# "agdpmod": "vit9696",
|
|
||||||
}
|
}
|
||||||
if self.constants.serial_settings != "None":
|
if self.constants.serial_settings != "None":
|
||||||
self.config["DeviceProperties"]["Add"][backlight_path] += {
|
self.config["DeviceProperties"]["Add"][backlight_path] += {
|
||||||
@@ -511,7 +510,6 @@ class BuildOpenCore:
|
|||||||
"@0,backlight-control": binascii.unhexlify("01000000"),
|
"@0,backlight-control": binascii.unhexlify("01000000"),
|
||||||
"@0,built-in": binascii.unhexlify("01000000"),
|
"@0,built-in": binascii.unhexlify("01000000"),
|
||||||
"shikigva": 256,
|
"shikigva": 256,
|
||||||
#"agdpmod": "vit9696",
|
|
||||||
}
|
}
|
||||||
if self.constants.serial_settings != "None":
|
if self.constants.serial_settings != "None":
|
||||||
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"] += {
|
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"] += {
|
||||||
@@ -524,7 +522,6 @@ class BuildOpenCore:
|
|||||||
"@0,backlight-control": binascii.unhexlify("01000000"),
|
"@0,backlight-control": binascii.unhexlify("01000000"),
|
||||||
"@0,built-in": binascii.unhexlify("01000000"),
|
"@0,built-in": binascii.unhexlify("01000000"),
|
||||||
"shikigva": 256,
|
"shikigva": 256,
|
||||||
#"agdpmod": "vit9696",
|
|
||||||
}
|
}
|
||||||
if self.constants.serial_settings != "None":
|
if self.constants.serial_settings != "None":
|
||||||
self.config["DeviceProperties"]["Add"][backlight_path] += {
|
self.config["DeviceProperties"]["Add"][backlight_path] += {
|
||||||
@@ -543,11 +540,11 @@ class BuildOpenCore:
|
|||||||
|
|
||||||
def amd_patch(self, backlight_path):
|
def amd_patch(self, backlight_path):
|
||||||
print("- Adding AMD DRM patches")
|
print("- Adding AMD DRM patches")
|
||||||
self.config["DeviceProperties"]["Add"][backlight_path] = {"shikigva": 80, "unfairgva": 1}
|
self.config["DeviceProperties"]["Add"][backlight_path] = {"shikigva": 128, "unfairgva": 1}
|
||||||
if self.constants.custom_model and self.model == "iMac11,2":
|
if self.constants.custom_model and self.model == "iMac11,2":
|
||||||
# iMac11,2 can have either PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0) or PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)
|
# iMac11,2 can have either PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0) or PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)
|
||||||
# Set both properties when we cannot run hardware detection
|
# Set both properties when we cannot run hardware detection
|
||||||
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"] = {"shikigva": 80, "unfairgva": 1}
|
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"] = {"shikigva": 128, "unfairgva": 1}
|
||||||
if self.model in ["iMac12,1", "iMac12,2"]:
|
if self.model in ["iMac12,1", "iMac12,2"]:
|
||||||
print("- Disabling unsupported iGPU")
|
print("- Disabling unsupported iGPU")
|
||||||
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {
|
self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user