osy / Polaris22Fixup

Metal driver patches for Vega M
MIT License
47 stars 7 forks source link

fix menu border render issue in Big Sur #9

Closed goodbest closed 4 years ago

goodbest commented 4 years ago

The issue https://github.com/osy86/HaC-Mini/issues/316 is solved on my Nuc after this patch. Need more tests for other machines.

You can grab the compiled kext here for testing https://github.com/goodbest/Polaris22Fixup/releases/download/1.3.0mod/Polaris22Fixup.kext.zip

goodbest commented 4 years ago

BTW, Big Sur don't have this file /private/var/db/dyld/dyld_shared_cache_x86_64h. https://github.com/osy86/Polaris22Fixup/blob/4d66dabed7844dd1d3f12859ea2a0a2a3e51a8b8/Polaris22Fixup/kern_start.cpp#L48

However, both dyld_shared_cache_x86_64h amd dyld_shared_cache_x86_64 exists in /System/Library/dylb in Big Sur. I don't know how to use them.

osy commented 4 years ago

Why did you add patched_getHardwareInfo_bigsur instead of modifying patched_getHardwareInfo? Is there a reason why the patch has to be different in Big Sur?

goodbest commented 4 years ago

Closing this PR due to the crash mentioned here: https://github.com/osy86/HaC-Mini/issues/316#issuecomment-692768974

I added the patched_getHardwareInfo_bigsur to keep the original function untouched (in order not to introduce new issues for existing system <11.0)