Skip to content

Commit

Permalink
intel_haswell.py: Remove framebuffer hack for iMac15,1
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Sep 6, 2024
1 parent 1f000d8 commit 3a3bba4
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@ class IntelHaswell(BaseHardware):
def __init__(self, xnu_major, xnu_minor, os_build, global_constants: Constants) -> None:
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:
"""
Expand Down Expand Up @@ -70,8 +58,6 @@ def hardware_variant_graphics_subclass(self) -> HardwareVariantGraphicsSubclass:
"""
Type of hardware variant subclass
"""
if self._install_framebuffer_only is True:
return HardwareVariantGraphicsSubclass.HEADLESS_GRAPHICS
return HardwareVariantGraphicsSubclass.METAL_3802_GRAPHICS


Expand Down Expand Up @@ -125,9 +111,6 @@ def patches(self) -> dict:
if self.native_os() is True:
return {}

if self._install_framebuffer_only is True:
return {**self._framebuffer_only_patches()}

return {
**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(),
Expand Down

0 comments on commit 3a3bba4

Please sign in to comment.