mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-19 13:46:05 +10:00
intel_haswell.py: Remove framebuffer hack for iMac15,1
This commit is contained in:
@@ -21,18 +21,6 @@ class IntelHaswell(BaseHardware):
|
|||||||
def __init__(self, xnu_major, xnu_minor, os_build, global_constants: Constants) -> None:
|
def __init__(self, xnu_major, xnu_minor, os_build, global_constants: Constants) -> None:
|
||||||
super().__init__(xnu_major, xnu_minor, os_build, global_constants)
|
super().__init__(xnu_major, xnu_minor, os_build, global_constants)
|
||||||
|
|
||||||
self._install_framebuffer_only = False
|
|
||||||
|
|
||||||
# Special case for iMac15,1
|
|
||||||
if self._computer.real_model.startswith("iMac") and self._xnu_major >= os_data.sequoia.value and self._is_gpu_architecture_present(
|
|
||||||
[
|
|
||||||
device_probe.AMD.Archs.Legacy_GCN_7000,
|
|
||||||
device_probe.AMD.Archs.Legacy_GCN_8000,
|
|
||||||
device_probe.AMD.Archs.Legacy_GCN_9000,
|
|
||||||
]
|
|
||||||
):
|
|
||||||
self._install_framebuffer_only = True
|
|
||||||
|
|
||||||
|
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
"""
|
"""
|
||||||
@@ -70,8 +58,6 @@ class IntelHaswell(BaseHardware):
|
|||||||
"""
|
"""
|
||||||
Type of hardware variant subclass
|
Type of hardware variant subclass
|
||||||
"""
|
"""
|
||||||
if self._install_framebuffer_only is True:
|
|
||||||
return HardwareVariantGraphicsSubclass.HEADLESS_GRAPHICS
|
|
||||||
return HardwareVariantGraphicsSubclass.METAL_3802_GRAPHICS
|
return HardwareVariantGraphicsSubclass.METAL_3802_GRAPHICS
|
||||||
|
|
||||||
|
|
||||||
@@ -125,9 +111,6 @@ class IntelHaswell(BaseHardware):
|
|||||||
if self.native_os() is True:
|
if self.native_os() is True:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
if self._install_framebuffer_only is True:
|
|
||||||
return {**self._framebuffer_only_patches()}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
**LegacyMetal3802(self._xnu_major, self._xnu_minor, self._constants.detected_os_version).patches(),
|
**LegacyMetal3802(self._xnu_major, self._xnu_minor, self._constants.detected_os_version).patches(),
|
||||||
**MontereyGVA(self._xnu_major, self._xnu_minor, self._constants.detected_os_version).patches(),
|
**MontereyGVA(self._xnu_major, self._xnu_minor, self._constants.detected_os_version).patches(),
|
||||||
|
|||||||
Reference in New Issue
Block a user