Live data from Hacker News

Conformant OpenGL 4.6 on the M1

rosenzweig.io

1–10 of 118 posts

Re: Conformant OpenGL 4.6 on the M1

#5

This is for Fedora on the M1. It would be amazing to get this for macOS. What's involved in pulling something like that off?

Ultimately they build command buffers and send them to the GPU. You'd need a way to do that from macOS.

The original Mesa drivers for the M1 GPU were bootstrapped by doing just that, sending command buffers to the AGX driver in macOS using IOKit.

https://rosenzweig.io/blog/asahi-gpu-part-2.html

https://github.com/AsahiLinux/gpu/blob/main/demo/iokit.c

So you'd need a bit more glue in Mesa to get the surfaces from the GPU into something you can composite onto the screen in macOS.

Re: Conformant OpenGL 4.6 on the M1

#6
post #2

Another upvote, another article I wish I had the knowledge and patience to understand better in context. Still, Alyssa's writeups are a fun read.

Same, I wish I knew more about graphics programming. It seems like such a steep learning curve though so I get discouraged.

Re: Conformant OpenGL 4.6 on the M1

#9
post #8

Kind of crazy to think that the only reason OpenGL was ever a thing for 3D gaming was because of John Carmack's obsession with using it for Quake II back in the 90s.

I don’t know that it was the only reason, but Carmack’s push for OpenGL certainly helped. A lot of things related to 3D games are thanks to doom and Quake.

Re: Conformant OpenGL 4.6 on the M1

#10
"Unlike the vendor’s non-conformant 4.1 drivers, our open source Linux drivers are conformant to the latest OpenGL versions, finally promising broad compatibility with modern OpenGL workloads, like Blender, Ryujinx, and Citra."

Looks like apple silicon are currently the best hardware for running linux and linux is the best OS for apple silicon machines.

Post reply on HN