Re:Native Linux GPU Driver for Apple M1
by bscphil on Thursday September 29, 2022 @01:11PM
(#33023865)
Yeah, it's because of this statement from an extremely trustworthy source that I'm looking for context here. I suspect most of the big problems haven't been suddenly and magically overcome? E.g. how close are we, given this, to supporting an AAA game, let's say from a few years ago?
[ Parent
| on HN ]
Re:Native Linux GPU Driver for Apple M1
by asiekierka on Thursday September 29, 2022 @01:17PM
(#33023967)
The key words are "optimized" and "OpenGL 4.6 with Zink". "Functional" and "OpenGL 2.1" is a different story, and the same trustworthy source said in https://rosenzweig.io/blog/asahi-gpu-part-6.html that:
> thanks to the tremendous shared code in Mesa, a basic OpenGL driver is doable by a single person. I’m optimistic that we’ll have native OpenGL 2.1 in Asahi Linux by the end of the year.
It's likely that even a bare-bones OpenGL driver will probably run better than llvmpipe, which is especially important in a laptop context due to the resulting power use improvements.
Re:Native Linux GPU Driver for Apple M1
by bscphil on Thursday September 29, 2022 @01:21PM
(#33024049)
Ah, so it's a "90% of the iceberg" situation. Great info, thanks!
Re:Native Linux GPU Driver for Apple M1
by stu2b50 on Thursday September 29, 2022 @01:31PM
(#33024247)
What AAA games run not only on Linux, but ARM Linux? This is more for going on YouTube with hardware acceleration than gaming, which is niche upon niche in its current state anyway.
Re:Native Linux GPU Driver for Apple M1
by delroth on Thursday September 29, 2022 @01:59PM
(#33024689)
Box64, FEX-Emu and other x86-64 on ARMv8 emulation projects cover that gap and explicitly target gaming as a core use case. And of course there's Apple's Rosetta, which we know is good enough for gaming on ARM macOS. Apple has released a Linux version which should technically be able to run on Asahi, but I'm unsure of the legal situation around this.
Re:Native Linux GPU Driver for Apple M1
by jrockway on Thursday September 29, 2022 @05:58PM
(#33027849)
You can always do this: https://wiki.debian.org/QemuUserEmulation to run amd64 binaries on an arm64 machine, or vice-versa. Docker desktop sets this up so you can pull amd64-only Docker containers on your M1 and not notice. I did some very minimal testing and it's not even insanely slow or anything (but obviously for many games, you can't leave this much performance on the table).
I do this on my workstation and can run anything, it's quite nice:
$ lscpu | grep Architecture
Architecture: x86_64
$ GOARCH=arm64 go build main.go
$ file ./main
./main: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, ...
$ ./main
Hello, world.
Re:Native Linux GPU Driver for Apple M1
by bscphil on Thursday September 29, 2022 @02:12PM
(#33024871)
Do Rosetta apps utilize the GPU on M1 (on macOS)?
Yes. The calls to the platform graphics APIs and underlying drivers are identical (and literally hit the same code), whether from x86/Rosetta or native/ARM64.