PhoronixIt is pointed out that the current Linux porting work on Apple M1 / M2 is still stuck on the CPU graphics acceleration (or “soft solution”) based on the LLVM pipeline.
And well-known contributor Asahi Lina said that their next step is to use the Rust programming language to provide new kernel GPU acceleration support for Apple AGX.
its on thursdayrust-for-linuxThe mailing announcement list reads:
The Apple Silicon Mac’s GPU runs firmware with fairly complex shared memory data structures that need to be managed by the host computer.
Based on this, we prefer to use Rust because of its higher safety, metaprogramming, and general expressiveness.
I had previously written a prototype driver in Python, but it was running in user space from a remote host.
But embracing higher-level programming languages will benefit our GPU reverse-engineering and driver design based on different philosophies.
Of course, I realize that Rust support on Linux is still in its early stages, but I have ambitions to take up the corresponding challenge by volunteering to learn.
It will take some time for the driver to become stable (especially UAPI) before it is stable enough to be submitted upstream.
If all goes well, Rust could complete the merge in the next few kernel cycles at the latest.