146 points · by mmastrac · 4y ago · 56 comments
https://asahilinux.org/2021/12/progress-report-oct-nov-2021/
As an interesting aside, in the progress report he mentions that after he installed Arch Linux, even without support for the hardware GPU:
>glxgears has no right to run at >60FPS with software rendering, but it does
1. https://wiki.cchtml.com/index.php/Glxgears_is_not_a_Benchmar...
I only glanced at the last minute, sounds like it's not working, but pretty close (I could have interpreted his comments wrong though).
"It will take Asahi Linux years to get graphical acceleration."
"Maybe they'll have graphics figured out by 2024 if they are lucky."
Doubters gonna doubt. OpenGLES 2 for Asahi Linux on the M1, 94% conformity, just 1 year later.
It's just attitude & elbow grease at the end of the day, and Asahi Linux clearly had plenty of both of those! Cheers.
I would assume the last 10% is going to be just as hard as the first 90%, just like most engineering projects.
Writing a truly high performance modern graphics drivers is really no small task. There is a reason why NVidia, AMD and Intel employ large teams to the task.
The folks working on Asahi are terrific, and deserve credit where it’s due—most would have trouble contributing, especially at the pace they’re working at. They are experienced, driven, creative and overall good at what they do.
However, I think it’s also instructive to realize that ultimately, there really are plenty of top-tier developers out there who aren’t working on cool things like this, for one reason or another.
Asahi at least has funding. And while Patron funding isn’t new, it is relatively underutilized for open source. I believe the Patron model is the most promising avenue for open source projects to route money from willing participants. I may only contribute a relatively tiny amount, especially when you consider the wages you can get working for a well-funded SV company, but when you pool it altogether, it’s still nothing to sneeze at.
So in my mind, Asahi achieves success in the face of skepticism because it has the combination of great engineers and enough funding to meaningfully help the effort.
P.S. Even though I do that most graphics vendors have huge teams and Asahi is a strong outlier in this case, they probably have a lot of fish to fry that doesn’t yet or may never apply to the M1 graphics drivers. Valve has found success in writing their own Vulkan drivers; I’d love to know how much engineering effort went into that, both people and time. It might be a somewhat closer comparison. (Well.. not really, because it’s not taking into account the impressive reversing effort needed for M1, but perhaps in terms of actually writing the high level graphics drivers.)
P.P.S.: and also, I firmly believe that the ambition and drive to work on such hard problems is what breeds impressive engineers. In my opinion, you shouldn’t feel intimidated; you should feel inspired. Go out there and hack some hardware for yourself.
If they have coverage of the GPU, then Vulcan and so on will play for the features ES2 does. Besides you don't need support for all exotic features to run Linux with hw acceleration.
OpenGL ES 2.0 is pretty simple in comparison, and you won't have to deal with undocumented features and so on.
It's also not as simple as coverage, you also need good performance, which means you need a good optimizing compiler for the GPU architecture, and that's not obvious either. Unless they are using Apple's drivers? I don't know that they are. From reading her website it seems they are not.
the asahi team is very talented, but I don’t think their progress means building a software stack for an undocumented gpu is not difficult.
Is that really an option? Can we drop in the binary blob at will, or will it break if Apple pushes an update?even if that's the case, dual booting may be impossible then. Unless that firmware is downloaded every boot.
If you can reverse-engineer Apple's completely new chips it should be a breeze to do the same with already very well know chips form Nvidia, isn't it?
What's the difference? Is there any difference at all?
However even on older cards where this is not an issue, community drivers tend to lag behind. It is far for a breeze. So far they are leveraging the Mesa driver infrastructure to implement OpenGL ES 2.0, which is a good beginning. The really hard part is supporting all of the latest technologies at a good performance. It's too early to know if that will be a breeze or not.
So maybe by 2032 we will have some M1s with somehow HW accelerated graphics. At least it looks like that given the history of Nouveau.
I don't want to put the work down those people are doing! But the truth is likely that without vendor support this will never fly beyond some tech demos.