sys_patch_detect: Add MBP13,3 to GCN patchset

Ensure older framebuffer is correctly used

Credit to @OnesuchDev for original finding
This commit is contained in:
Mykola Grymalyuk
2022-10-22 16:41:33 -06:00
parent 20b5a55e6d
commit ebaa1f8176
2 changed files with 6 additions and 1 deletions

View File

@@ -126,7 +126,11 @@ class detect_root_patch:
if gpu.arch == device_probe.AMD.Archs.Polaris:
# Check if host supports AVX2.0
# If not, enable legacy GCN patch
if "AVX2" in self.constants.computer.cpu.leafs:
# MacBookPro13,3 does include an unsupported framebuffer, thus we'll patch to ensure
# full compatibility (namely power states, etc)
# Reference: https://github.com/dortania/bugtracker/issues/292
# TODO: Probe framebuffer families further
if "AVX2" in self.constants.computer.cpu.leafs and self.model != "MacBookPro13,3":
continue
self.legacy_gcn = True