Email or username:

Password:

Forgot your password?
Alyssa Rosenzweig 💜

Kodi on the Apple M1 GPU on Linux, open drivers as always 🔥​

8 comments
Alyssa Rosenzweig 💜

Note that this is using the GPU to scale the video and convert colour spaces. The actual decompression of the video codec is still in software, that's not handled by the GPU but by a different block (the Apple Video Decoder, unrelated to the GPU).

Also, GNOME crashed due to out-of-memory since there miiiiight still be a memory leak or two 😅​

Alyssa Rosenzweig 💜

Seemingly, the memory leaks are bugs in userspace -- Mesa, my driver -- rather than the kernelspace -- as we all know @lina wrote a perfect driver, since apparently bugs are impossible in Rust or something like that.

THAT BEING SAID, the memory leaks have exposed one or two actual kernel bugs. No matter what userspace does wrong, it should be impossible to hit kernel WARNs. That it took low memory conditions to hit means that my buggy C code is helping somehow! 😋​

So... I should keep writing buggy C code, right?

("I really don't think that's the message you should take away, Alyssa.")

Seemingly, the memory leaks are bugs in userspace -- Mesa, my driver -- rather than the kernelspace -- as we all know @lina wrote a perfect driver, since apparently bugs are impossible in Rust or something like that.

THAT BEING SAID, the memory leaks have exposed one or two actual kernel bugs. No matter what userspace does wrong, it should be impossible to hit kernel WARNs. That it took low memory conditions to hit means that my buggy C code is helping somehow! 😋​

Alyssa Rosenzweig 💜

@lina It's also worth noting that this is Kodi's X11 backend (inside Xwayland), still having some troubles starting the Wayland backend for a change. Usually it's the other way around...

Hopefully there's just some silly bug and we'll have All The Windowing Systems working for Kodi.

mpv works with both X11 and Wayland, at least.

64kb

@alyssa @lina that's very cool - considering Kodis history; originally being XBMC, I can imagine the way it's written might be a bit different to other apps.

Dylan Van Assche

@alyssa Amazing work! I really like all the #ReverseEngineering work going around the #Apple hardware for #Linux. I don't have Apple hardware but I find it amazing what the #FOSS community can achieve by reverse engineering #proprietary blobs!

Go Up