Originally posted by marios
View Post
Announcement
Collapse
No announcement yet.
Asahi Linux May Pursue Writing Apple Silicon GPU Driver In Rust
Collapse
X
-
- Likes 8
-
Originally posted by Developer12 View Post
Yes. It currently runs at 2 frames per second (because it's written in python) but it works. A surprisingly-spec-complaint prototype openGL driver.
But i also think it probably runs a lot faster than 2fps even in python, it's the fact that they are running it remotely over USB that slows it down. It has to copy the framebuffer over USB every frame. And most of the driver is in c (in mesa), where a lot of the expensive logic goes. The kernel driver side written in python doesn't really have to do that much comparatively.Last edited by smitty3268; 12 August 2022, 12:38 AM.
- Likes 5
Comment
-
Originally posted by ferry View Post
C language and GCC is a proven tool for device driver development. Rust is not a proven tool for device driver development, in fact there is no kernel code at all, except some very trivial example.
Writing a driver for undocumented hardware is challenging, doing so with an experimental compiler is ... hobby-ism?Last edited by CommunityMember; 12 August 2022, 01:18 AM.
- Likes 10
Comment
-
Originally posted by smitty3268 View Post
Pretty sure it's GLES, and it's definitely not advanced desktop opengl.
But i also think it probably runs a lot faster than 2fps even in python, it's the fact that they are running it remotely over USB that slows it down. It has to copy the framebuffer over USB every frame. And most of the driver is in c (in mesa), where a lot of the expensive logic goes. The kernel driver side written in python doesn't really have to do that much comparatively.
Comment
-
I wonder if people that are against writing drivers in Rust because "Such important thing as driver should be written only in C" would be against C years ago saying "Such important thing as driver should be written only in Assembler".
- Likes 14
Comment
Comment