8 ms·
For clarity, this isn't the first conformant linux drivers. Apple themselves are not conformant to OpenGL® ES 3.1. So this is literally the first conformant O
by alberth 3y ago
For clarity, this isn't the first conformant linux drivers.
Apple themselves are not conformant to OpenGL® ES 3.1.
So this is literally the first conformant OpenGL ES 3.1 drivers for M-Series, for any operating system (Apple or Non-Apple).
Hence why the call to action to donate to the team.
https://asahilinux.org/support/ https://asahilinux.org/support/
- anentropic 3y agoMakes me wonder... is it possible to use this from macOS?
- klausa 3y agoCan you use Windows drivers for your GPU on Linux?
- bravetraveler 3y agoWith a cursed ndiswrapper fork, perhaps :D I jest, but using drivers from another OS has happened
- zamadatix 3y agoIntel did. Obviously there is more to it than just setting a different target and hitting compile but it's also not a ridiculous question because of that measure alone. It'd require enabling reduced security mode to load kexts or a custom kernel as well as a good amount of additional code for interfacing it with the macOS kernel interfaces but the majority of the code would be reused. Not trivial by any measure but also not an unreasonable approach in terms of total effort to get a working driver. I'd be very surprised if anyone was interested in doing all that work given the security limitations and ability to just use Linux. Edit: I forgot Metal is actually a userspace driver, you don't need to mess with the kernel side... though I can't remember if you still need to lower security to poke the right areas.
- ColonelPhantom 3y agoIf you look the other way around (which is more relevant anyways), you can compile Mesa for Windows. However I'm pretty sure only the software renderer is available because Mesa is not capable of interfacing with the Windows kernel driver, as all the other drivers are coupled with Linux driver interfaces, iirc. (At least I'm quite certain this is the case for AMD.) I'm also quite certain the proprietary NVIDIA driver shares a ton of code between Windows and Linux.
- zamadatix 3y agoTo add on, just because it's cool, there is a 3rd category in play with Mesa of layered drivers. Microsoft worked on and officially supports running OpenCL and OpenGL on devices which only have a DX12 driver via Mesa this fashion. Still all user space of course but not software rendering. More akin to MoltenVK from the blog post, except fully supported and maintained by the OS provider.
- kccqzy 3y agoDepends on what you precisely mean by "this". The user space part can easily be used from macOS. That's how the author first developed it without a working kernel driver. From https://asahilinux.org/2022/11/tales-of-the-m1-gpu/ https://asahilinux.org/2022/11/tales-of-the-m1-gpu/ > But wait, how can she work on the user space driver without a kernel driver to go with it? Easy, she did it on macOS! Alyssa reverse engineered the macOS GPU driver UAPI enough to allocate memory and submit her own commands to the GPU, and this way she could work on the user space part without having to worry about the kernel bit. That’s super cool! She started writing an M1 GPU OpenGL driver for Mesa, the Linux userspace graphics stack, and just a few months later she was already passing 75% of the OpenGL ES 2 conformance tests, all on macOS!
- rowanG077 3y agoI don't think the newer MESA drivers can interact with the OSX UAPI. That was just a stopgap until the Linux Kernel driver was far enough along.
- renewiltord 3y agoThe Github link there goes to marcan, who leads Asahi, but I want to primarily support this driver development. Is that an option? If so, where do I do that? If not, I'll just use this later today.
- lynguist 3y agoAsahi Lina is marcan’s alter ego that works solely on the graphics driver development.
- stirlo 3y agoIn Asahi Lina’s guest post[1] on the Asahi Linux blog she mentions “If you want to support my work, you can donate to marcan’s Asahi Linux support fund on GitHub Sponsors or Patreon, which helps me out too!” So yes, donating to Marcan helps driver development too. [1] https://asahilinux.org/2023/03/road-to-vulkan/ https://asahilinux.org/2023/03/road-to-vulkan/
- renewiltord 3y agoThanks!
- zamadatix 3y agoIn addition to the other post: I don't think Alyssa takes donations but Ella Stanforth has a GitHub sponsor page for the Vulkan driver.
- realjhol 3y ago[dead]
- ajdude 3y agoI love what they're doing, but last time I clicked a link for asahilinux on hacker news I was taken to a pop up that specifically said that readers from Hacker News are not welcomed on their site and couldn't read their content.
- ohgodplsno 3y ago[flagged]
- justin66 3y agoHalf of the average HN users spends their their either trying to dox Asahi Lina, or to be violently transphobic towards Rosenzweig. The other half is horribly pedantic assholes. Also, if you donate before 6PM you'll receive a free NPR mug and a t-shirt. (I predict this year's funding drive will be less successful than last year!)
- kossTKR 3y agoIsn't that a weird thing to say when this thread is filled with people absolutely praising them and this achievement? I doubt HN is more or less toxic than traffic from any other mainstream site, but maybe i'm wrong.