diff --git a/CHANGELOG.md b/CHANGELOG.md index de6dfc164..401f7a670 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # OpenCore Legacy Patcher changelog ## 0.1.1 +- Fix iMac11,3 GFX0 pathing ## 0.1.0 - Fix crash on iMacs with Metal GPUs diff --git a/Resources/Build.py b/Resources/Build.py index c8a51e778..55a108433 100644 --- a/Resources/Build.py +++ b/Resources/Build.py @@ -276,15 +276,16 @@ class BuildOpenCore: else: self.config["DeviceProperties"]["Add"][hdef_path] = {"apple-layout-id": 90, "use-apple-layout-id": 1, "use-layout-id": 1, } + def nvidia_patch(self): self.constants.custom_mxm_gpu = True print("- Adding Nvidia Brightness Control patches") - if self.model == "iMac11,1": + if self.model in ["iMac11,1", "iMac11,3"]: backlight_path = "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)" self.config["DeviceProperties"]["Add"][backlight_path] = {"@0,backlight-control": binascii.unhexlify("01000000"), "@0,built-in": binascii.unhexlify("01000000")} shutil.copy(self.constants.backlight_path, self.constants.kexts_path) self.get_kext_by_bundle_path("AppleBacklightFixup.kext")["Enabled"] = True - elif self.model in ["iMac11,2", "iMac11,3", "iMac12,1", "iMac12,2"]: + elif self.model in ["iMac11,2", "iMac12,1", "iMac12,2"]: backlight_path = "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" self.config["DeviceProperties"]["Add"][backlight_path] = {"@0,backlight-control": binascii.unhexlify("01000000"), "@0,built-in": binascii.unhexlify("01000000")} print("- Disabling unsupported iGPU") @@ -297,9 +298,9 @@ class BuildOpenCore: def amd_patch(self): self.constants.custom_mxm_gpu = True print("- Adding AMD DRM patches") - if self.model == "iMac11,1": + if self.model in ["iMac11,1", "iMac11,3"]: self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)"] = {"shikigva": 80, "unfairgva": 1} - elif self.model in ["iMac11,2", "iMac11,3", "iMac12,1", "iMac12,2"]: + elif self.model in ["iMac11,2", "iMac12,1", "iMac12,2"]: self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)"] = {"shikigva": 80, "unfairgva": 1} print("- Disabling unsupported iGPU") self.config["DeviceProperties"]["Add"]["PciRoot(0x0)/Pci(0x2,0x0)"] = {"name": binascii.unhexlify("23646973706C6179"), "IOName": "#display", "class-code": binascii.unhexlify("FFFFFFFF")}