!KEJUbONnoBpiYKGWEq:nixos.org

NixOS Gaming

698 Members
Gaming things, my hands are typing words.180 Servers

Load older messages


SenderMessageTime
6 Nov 2023
@atemu12:matrix.org@atemu12:matrix.orgSo something occured to me. If mesa doesn't like mixing different versions between compositor and app; how the hell does flatpak work?11:22:31
@k900:0upti.meK900
In reply to @atemu12:matrix.org
So something occured to me. If mesa doesn't like mixing different versions between compositor and app; how the hell does flatpak work?
They have their own Mesa
12:49:07
@atemu12:matrix.org@atemu12:matrix.org K900 (drm/amd#1417 when): Yeah, that's what I mean. That Mesa is different from the system Mesa which the compositor is running with and that should cause issues with libdrm, shouldn't it? 13:51:18
@k900:0upti.meK900No13:51:26
@atemu12:matrix.org@atemu12:matrix.orgWhy not?13:51:44
@k900:0upti.meK900You just need to match libgbm and mesa13:51:46
@k900:0upti.meK900You don't need to match mesa to other mesa13:51:54
@atemu12:matrix.org@atemu12:matrix.orgAh sorry, confused them13:52:02
@atemu12:matrix.org@atemu12:matrix.orgBut the same still applies13:52:07
@atemu12:matrix.org@atemu12:matrix.org(Also isn't libgbm == mesa?)13:52:19
@k900:0upti.meK900libgbm is part of Mesa13:53:43
@k900:0upti.meK900 But the NixOS compositor issues stem from the fact that we load the Mesa drivers impurely 13:53:54
@k900:0upti.meK900And the drivers and libgbm need to match13:54:06
@atemu12:matrix.org@atemu12:matrix.orgBut isn't that the same for flatpak on any distro ever?13:54:34
@atemu12:matrix.org@atemu12:matrix.orgThe distro runs the compositor with mesa version x. Apps in flatpak are linked against libgbm a b and c13:55:33
@k900:0upti.meK900It doesn't matter13:55:53
@atemu12:matrix.org@atemu12:matrix.orgOh, they link against mesa a b and c at runtime because that's what's in the sandbox..13:55:55
@k900:0upti.meK900As long as they're the same within one app13:55:59
@atemu12:matrix.org@atemu12:matrix.orgSo compositor mesa/libgbm doesn't matter13:56:17
@k900:0upti.meK900Yes13:59:20
@atemu12:matrix.org@atemu12:matrix.orgSo, wouldn't a good solution to this be to propagate the version of mesa an app was linked against and use that rather than the impure driver?14:05:55
@atemu12:matrix.org@atemu12:matrix.orgWhy do we have the impure driver anyways for mesa?14:06:12
@atemu12:matrix.org@atemu12:matrix.org(Other than for running impure apps of course.)14:06:27
@k900:0upti.meK9001) it can be Nvidia and not Mesa14:06:48
@k900:0upti.meK9002) forward compatibility14:06:51
@k900:0upti.meK900 I think 2) was an accident 14:06:59
@k900:0upti.meK900But it's the reason I don't agree with "let's just shove mesa into the closure for everything"14:07:13
@k900:0upti.meK900Because we could technically just load Nvidia impurely now14:08:08
@k900:0upti.meK900But I actually think the impure Mesa is important, because it allows people to run older nixpkgs stuff with recent hardware14:08:35
@atemu12:matrix.org@atemu12:matrix.orgYeah, yeah right14:08:50

Show newer messages


Back to Room ListRoom Version: 6