#asahi-dev · 2023-04-02 14:30
orowith2osToss me some aarch64 runners for github, generate an archive, and the pacman package extracts and moves around those binaries?#asahi-dev · 2023-04-02 14:29
orowith2oshow do you want to handle builds?#asahi-dev · 2023-04-02 14:29
orowith2osMakes sense#asahi-dev · 2023-04-02 14:29
marcanthe goal here is that this way we *know* people get everything in sync with a pacman upgrade, which is the only sane way to survive the UAPI instability phase without users hating us#asahi-dev · 2023-04-02 14:28
orowith2osI think that's doable#asahi-dev · 2023-04-02 14:28
marcanyes#asahi-dev · 2023-04-02 14:28
orowith2osyou mean building it inside of Flatpak, as intended, and shipping those binaries through the native package manager?#asahi-dev · 2023-04-02 14:28
marcanI just mean on my own hardware#asahi-dev · 2023-04-02 14:28
orowith2osI thought you still meant building the driver on the host and mounting it in inside of Flatpak#asahi-dev · 2023-04-02 14:28
orowith2ossorry#asahi-dev · 2023-04-02 14:28
orowith2oswait, still misunderstood#asahi-dev · 2023-04-02 14:27
orowith2osIf you are a distro packager I do believe it makes sense to start making a nvidia package for the Flatpak extension especially for beta versions. This should probably not be used to package host versions of Mesa though because they link to host libraries outside of libc. #asahi-dev · 2023-04-02 14:27
orowith2osI'd like to make a quote from the article:#asahi-dev · 2023-04-02 14:27
marcanand then the other thing is just being able to run the build locally, both because everything else is like that and because you saw how the GH runners do :p#asahi-dev · 2023-04-02 14:26
orowith2oshttps://blog.tingping.se/2018/08/26/flatpak-host-extensions.html#asahi-dev · 2023-04-02 14:26
marcanyeah, that#asahi-dev · 2023-04-02 14:26
orowith2oslet me get some more resources#asahi-dev · 2023-04-02 14:26
orowith2osmarcan: you're thinking of the host driver, that merge request uses it for the NVIDIA driver, for example#asahi-dev · 2023-04-02 14:25
orowith2oshttps://github.com/Frogging-Family/nvidia-all/pull/156/files#asahi-dev · 2023-04-02 14:25
marcansomething about distros being able to provide their own driver flatpaks like this#asahi-dev · 2023-04-02 14:25
marcanthere was a doc about this somewhere, it's intended exactly for this use case#asahi-dev · 2023-04-02 14:25
orowith2osI have something you can base it off of#asahi-dev · 2023-04-02 14:25
orowith2osWant to give it a try?#asahi-dev · 2023-04-02 14:25
orowith2oshmmm, maybe? #asahi-dev · 2023-04-02 14:24
marcanI think you misunderstood me. I'm saying we'd ship the same flatpak thing you're building, built the same way, just wrapped in an Arch package.#asahi-dev · 2023-04-02 14:24
orowith2osAsahi would need to do the same to achieve something similar#asahi-dev · 2023-04-02 14:24
orowith2osNVIDIA doesn't have an issue because it links against an older version, one that works with some of the oldest runtimes available#asahi-dev · 2023-04-02 14:23
orowith2osmarcan: The Flatpak runtime includes a specific version of libc, in most cases older then Arch's (and alarm's). If you try to toss the native driver into Flatpak, you are going to run into glibc version errors, as well as llvm libraries and the like.#asahi-dev · 2023-04-02 14:22
marcanorowith2os: I'm confused, how is the glibc version relevant exactly?#asahi-dev · 2023-04-02 14:19
jannaukettenis_: https://github.com/AsahiLinux/linux/commit/a636217494a787bbb92ae12976e086779b6694bf#asahi-dev · 2023-04-02 14:19
marcankettenis_: we have a patch for that#asahi-dev · 2023-04-02 14:01
kettenis_and I can't find anything in the device tree schema that suggests that floating-point numbers are supported#asahi-dev · 2023-04-02 14:01
kettenis_my version of dtc doesn't like that#asahi-dev · 2023-04-02 14:00
kettenis_apple,avg-power-ki-only = <2.4>;#asahi-dev · 2023-04-02 13:09
orowith2osThere's not really any other solution here :shrug:#asahi-dev · 2023-04-02 13:09
orowith2osAll it would need to do is publish right after Mesa gets updated and it'll work just fine.#asahi-dev · 2023-04-02 13:08
orowith2osActually, when I enabled updates for it, it updated to the latest release right away. The workflows succeeded too. https://github.com/orowith2os/mesa-asahi-flatpak/commit/71dc18316a2127cfeee36fc5848fc75d3733261c#asahi-dev · 2023-04-02 13:04
orowith2osI've put some thought into it, and agonized quite a bit over getting it to work. I'm confident in it working just fine. #asahi-dev · 2023-04-02 13:03
orowith2osThe Mesa package I have right now will keep in sync with the current updates, the only work that needs to be done is setting up a Flatpak repository.#asahi-dev · 2023-04-02 13:02
orowith2osmarcan: That won't work unless you follow a model similar to NVIDIA, where you build with the oldest known used glibc version and link to *only* that.#asahi-dev · 2023-04-02 13:01
orowith2osdottedmag: Flatpak does nothing of the sort. It just gives you the /dev device and, if you know how to communicate with it, you can do so. Everything else is handled by the kernel, including sandboxing features.#asahi-dev · 2023-04-02 11:55
eilnwith the accel patches i can move in-tree#asahi-dev · 2023-04-02 11:55
eilnmarcan: was wondering how the ane stuff should proceed?#asahi-dev · 2023-04-02 11:24
marcanseparate repositories won't work, that's a recipe for desync and user pain#asahi-dev · 2023-04-02 11:24
marcanit needs to be something I can build and push locally so I can push updates coinciding with mesa/kernel updates as we do for everything else#asahi-dev · 2023-04-02 11:23
marcanAIUI there is a way to bundle Flatpak runtime overlays with the OS. that is what would need to happen here, distributed as an Arch package.#asahi-dev · 2023-04-02 08:00
dottedmag be running as a separate isolated subsystem, not as a part of userspace program.#asahi-dev · 2023-04-02 08:00
dottedmagMesa is basically a GPU driver in userspace (among other things). NVidia userspace part is the same. This is the breakage I'm talking about: Flatpak has to take on a role of abstracting hardware, the role customarily reserved for OS kernel. For the most of the hardware kernel ABI is the interface, and userspace is more-or-less insulated from the vagaries of hardware. Not so with GPUs. In a microkernel design GPU driver would probably#asahi-dev · 2023-04-02 07:05
orowith2osas well as alternative arches emulation#asahi-dev · 2023-04-02 07:05
orowith2oswhich Flatpak conveniently has full support for