Live data from Hacker News

The first conformant M1 GPU driver

rosenzweig.io

131–140 of 699 posts

Re: The first conformant M1 GPU driver

#131
post #42

For clarity, this isn't the first conformant linux drivers. Apple themselves are not conformant to OpenGL® ES 3.1. So this is literally the first conformant OpenGL ES 3.1 drivers for M-Series, for any operating system (Apple or Non-Apple). Hence why the call to action to donate to the team. https://asahilinux.org/support/

Makes me wonder... is it possible to use this from macOS?

Depends on what you precisely mean by "this". The user space part can easily be used from macOS. That's how the author first developed it without a working kernel driver.

From https://asahilinux.org/2022/11/tales-of-the-m1-gpu/

> But wait, how can she work on the user space driver without a kernel driver to go with it? Easy, she did it on macOS! Alyssa reverse engineered the macOS GPU driver UAPI enough to allocate memory and submit her own commands to the GPU, and this way she could work on the user space part without having to worry about the kernel bit. That’s super cool! She started writing an M1 GPU OpenGL driver for Mesa, the Linux userspace graphics stack, and just a few months later she was already passing 75% of the OpenGL ES 2 conformance tests, all on macOS!

Re: The first conformant M1 GPU driver

#133

Earlier quoted context omitted.

I still don't understand why people think in 2023 that Android can not be a viable alternative to an iPhone. I would never use an iPhone for certain software and UX related issues (biggest is the missing back gesture/button). My Pixel does better photos than ANY iPhone on the market. Macbook Air M1, just look at Dell XPS series. Samsung S9 tablets have an OLED display. OLED... you don't get that on any iPad. Apple Wa…

> I would never use an iPhone for certain software and UX related issues (biggest is the missing back gesture/button) Um, swiping from the left edge takes you back on iPhone and iPad. Not sure how long ago did you last test the "missing back gesture" theory. Been using an iPhone for 3 years and has always been this way.

Not in several google apps — they deliberately break the convention.

Re: The first conformant M1 GPU driver

#134
post #126
post #116

Earlier quoted context omitted.

This is a limit of battery technology. Your Apple laptop will ha e shit battery life in a few years as well

Device manufacturers can engineer for longer useful lifespan by oversizing the battery, can't they? Do they all do that to the same extent?

To an extent, there's a limit for air travel, generally speaking as they can be dangerous. The m1/m2 are just killer in terms of lifetime and usage for general reading/browsing/email.. and still very long for even content viewing. Most people aren't rapidly draining their batteries, so the longevity gets to be a bit better overall.

AMD is getting pretty close and the perf:watt on the coming generation(s) for laptops (including integrated gpu) look to be really impressive to say the least...

Re: The first conformant M1 GPU driver

#135
post #55

Earlier quoted context omitted.

> The ThinkPads are pretty good laptops, especially if you put Linux on them I used ThinkPads for 7 years until getting new M2 Pro, mostly with Linux. Touchpads on Thinkpads are not getting even close to Macbooks. You need external mouse. Also the the basic screen quality on current Macbook Pros is beyond their top quality products. Try to look for 1000 nits screen? Not even gaming laptops have quality ones. And batt…

The nipple on the ThinkPad is unsurpassed. It's basically the reason I can't migrate away from them.

I have tried to use nipple many times but maybe I was unfortunate with it. I was not able to get good enough drivers on Linux for it, and as a result it was never accurate, but very clunky instead.

Re: The first conformant M1 GPU driver

#136
post #125

Earlier quoted context omitted.

Makes me wonder... is it possible to use this from macOS?

Can you use Windows drivers for your GPU on Linux?

With a cursed ndiswrapper fork, perhaps :D I jest, but using drivers from another OS has happened

Re: The first conformant M1 GPU driver

#137
post #125

Earlier quoted context omitted.

Makes me wonder... is it possible to use this from macOS?

Can you use Windows drivers for your GPU on Linux?

Intel did. Obviously there is more to it than just setting a different target and hitting compile but it's also not a ridiculous question because of that measure alone. It'd require enabling reduced security mode to load kexts or a custom kernel as well as a good amount of additional code for interfacing it with the macOS kernel interfaces but the majority of the code would be reused. Not trivial by any measure but also not an unreasonable approach in terms of total effort to get a working driver.

I'd be very surprised if anyone was interested in doing all that work given the security limitations and ability to just use Linux.

Edit: I forgot Metal is actually a userspace driver, you don't need to mess with the kernel side... though I can't remember if you still need to lower security to poke the right areas.

Re: The first conformant M1 GPU driver

#138
post #99

Earlier quoted context omitted.

I still don't understand why people think in 2023 that Android can not be a viable alternative to an iPhone. I would never use an iPhone for certain software and UX related issues (biggest is the missing back gesture/button). My Pixel does better photos than ANY iPhone on the market. Macbook Air M1, just look at Dell XPS series. Samsung S9 tablets have an OLED display. OLED... you don't get that on any iPad. Apple Wa…

When most people you know use iMessage then Android is a bad experience. Also, as someone who switched from Pixels and other Android devices to the Apple ecosystem . It’s nice that everything “just works.” It’s kind of like running BSD or Debian stable after having been on Fedora/Arch/etc.

> When most people you know use iMessage then Android is a bad experience.

Isn't this because Android uses open standards for its SMS and iOS refuses to do so?

Re: The first conformant M1 GPU driver

#139

Earlier quoted context omitted.

Everyone deserves an experience like that, at the very least – everyone deserves to be in a position where they have the opportunity to really enquire, or engineer, or know what it's like to solve new problems. It really is a good purpose that education could meet.

I'm frustrated that "good management" involves breaking things down so small that there is no room for enquiry or engineering. Jira ticket #5229 "Port get_order_* API" doesn't leave much room for problem solving.

It’s almost like business needs come first

Re: The first conformant M1 GPU driver

#140

Earlier quoted context omitted.

> I would never use an iPhone for certain software and UX related issues (biggest is the missing back gesture/button) Um, swiping from the left edge takes you back on iPhone and iPad. Not sure how long ago did you last test the "missing back gesture" theory. Been using an iPhone for 3 years and has always been this way.

Not in several google apps — they deliberately break the convention.

just google ruining the experience as usual. same with youtube on iOS, they get away with it so why not try breaking the rules everywhere.
Post reply on HN