#
#asahi-gpu · 2023-05-15 21:28
alyssause
#asahi-gpu · 2023-05-15 21:28
alyssawe do have a common graph colouring engine (util/ra), which ~~dinky~~ other compilers us
#asahi-gpu · 2023-05-15 21:27
ChaosPrincesswell, read dumb = "my only interaction with gpus is 'i wrote an opengl renderer for some chemistry stuff in school' and i havent touched them since"
#asahi-gpu · 2023-05-15 21:26
alyssaWe've waffled about trying to share RAs in Mesa but... different GPU ISAs are radically different in their RA requirements that it's not clear if that can be done efficiently
#asahi-gpu · 2023-05-15 21:26
alyssanot a dumb question at all
#asahi-gpu · 2023-05-15 21:26
alyssa(Intel has a source dump somewhere but I have enough self respect not to look at it)
#asahi-gpu · 2023-05-15 21:25
alyssaNo idea about LLVM, since only AMD upstreams their LLVM compiler
#asahi-gpu · 2023-05-15 21:25
alyssaChaosPrincess: In mesa, yes
#asahi-gpu · 2023-05-15 21:22
ChaosPrincesssorry for dumb questions, but do all gpu compilers have their own bespoke register allocators?
#asahi-gpu · 2023-05-15 21:20
alyssaDitto for live range splitting in the register allocator.
#asahi-gpu · 2023-05-15 20:34
alyssaMaybe we want to schedule a code walkthrough stream so we can do review synchronously and I can fix any issues as they're pointed out in real time?
#asahi-gpu · 2023-05-15 20:33
alyssalina: We need a plan for getting MSAA reviewed+merged
#asahi-gpu · 2023-05-12 15:46
handlerugnice, looking forward to that
#asahi-gpu · 2023-05-12 15:44
linaInteresting... I'll have to look at that, I wonder if all the Mesa changes that are queued made any difference so far (we did fix a while bunch of synchronization bugs... ^^)
#asahi-gpu · 2023-05-12 14:46
handlerugyou can see the frame drops when the cursor moves. it's still not great when the cursor is still, but when it's moving the drops are much more severe
#asahi-gpu · 2023-05-12 14:45
handlerughere: https://0x0.st/HNb0.mkv
#asahi-gpu · 2023-05-12 14:43
handlerugoh let me make a better demonstration
#asahi-gpu · 2023-05-12 14:43
handlerugit's fine if OBS is not recording/streaming, it's only when it's recording/streaming
#asahi-gpu · 2023-05-12 14:42
handlerugdemonstration: https://0x0.st/HNbl.mkv
#asahi-gpu · 2023-05-12 14:22
handlerughm, it's as if cursor movements trigger the freezes
#asahi-gpu · 2023-05-12 14:15
handlerugI was about to dismiss this issue as wlroots-specific, but I just installed Plasma and the same stuttering issue appears here as well (dunno about the logs, judging from the recording). still not writeback, but an issue nonetheless
#asahi-gpu · 2023-05-12 13:34
marcanthat sounds like a bug in wlr (the perf and spamming, not the software cursor, though it might be related)
#asahi-gpu · 2023-05-12 13:33
bluetailThank you for explaining :)
#asahi-gpu · 2023-05-12 13:33
ChaosPrincessand the cursor is quite often a movable transparent image that is not drawn on the main framebuffer, but composited in hw
#asahi-gpu · 2023-05-12 13:33
handlerugand both wf-recorder and xdg-desktop-portal-wlr use the same mechanism
#asahi-gpu · 2023-05-12 13:32
ChaosPrincessdisplay output engines can compose several possiblly-transparent images into the actual display output
#asahi-gpu · 2023-05-12 13:32
handleruganother data point: wf-recorder exhibits the same issue, and if you check the sway logs while recording with xdg-desktop-portal-wlr or wf-recorder, you can see sway spamming "[wlr] [types/output/render.c:282] Disabling direct scan-out on output 'eDP-1' (locks: 1)" and "[wlr] [types/output/render.c:282] Enabling direct scan-out on output 'eDP-1' (locks: 0)" alternating every frame
#asahi-gpu · 2023-05-12 13:32
bluetailExplain like I'm 5: whats a plane in this context?
#asahi-gpu · 2023-05-12 13:30
handlerugah that explains it
#asahi-gpu · 2023-05-12 13:30
ChaosPrincessdcp driver currently only supports one plane iirc
#asahi-gpu · 2023-05-12 13:30
handlerugok so I checked and it's probably not the writeback issue. when you start recording, xdg-desktop-portal-wlr (or pipewire?) switches to the "streaming" mode then spams "wlroots: no current buffer" followed by "pipewire: out of buffers" every frame. so it might be a different issue.
#asahi-gpu · 2023-05-12 13:28
handlerugbtw hardware cursors don't work in sway/wlroots it seems (Falling back to software cursor on output 'eDP-1')
#asahi-gpu · 2023-05-12 13:09
alyssashrugs
#asahi-gpu · 2023-05-12 13:09
marcanI dunno what the policy is here, just an idea :p
#asahi-gpu · 2023-05-12 13:09
alyssashrugs
#asahi-gpu · 2023-05-12 13:08
marcanalyssa: speaking of overrides, maybe we should enable nofp16 for browsers? since there's always going to be broken WebGL stuff out there...
#asahi-gpu · 2023-05-12 13:06
marcandefine "significantly". if the capture is like 3FPS, that's the writeback issue. if it's faster, that's something else.
#asahi-gpu · 2023-05-12 12:58
handlerugI want to note that PipeWire screencasting slows down significantly (with xdg-desktop-portal-wlr) with a game running (such as Celeste), but capturing the same game using obs-vkcapture gets you a silky smooth stream
#asahi-gpu · 2023-05-12 12:51
marcanalyssa: from what I read the libwebrtc implementation should be doing modifiers properly, so it should be confined to the readback path once inside the browser and hopefully only needed for firefox/chromium
#asahi-gpu · 2023-05-12 12:18
alyssa(Or force the flag on with a 1 line patch on top if that's easier)
#asahi-gpu · 2023-05-12 12:17
alyssa(Run your entire desktop with that debug flag. If you do gfx dev and use a login manager, don't. :p)
#asahi-gpu · 2023-05-12 12:17
alyssaand also review it
#asahi-gpu · 2023-05-12 12:17
alyssamarcan: give https://gitlab.freedesktop.org/asahi/mesa/-/merge_requests/73 a try
#asahi-gpu · 2023-05-12 10:17
marcanalyssa, lina: hey, so libwebrtc (firefox/chromium) PipeWire screencasting is super slow (when it works, see fedi for another bug). I assume that's the write-through mapping issue. would be nice if you could look at it and see if it can be fixed with a logic change in mesa, or if it's blatantly a libwebrtc screwup.
#asahi-gpu · 2023-05-11 20:55
alyssa(Not urgent by any means. This is just the next item on the "help chip away at the MSAA" mountain. Thank you in advance ^^)
#asahi-gpu · 2023-05-11 20:55
alyssa(I think the agx_tilebuffer.c logic is potentially even more busted than it seems on the surface. So maybe lots more tests would be a good thing here...)
#asahi-gpu · 2023-05-11 20:54
alyssaYou know the drill ^.^
#asahi-gpu · 2023-05-11 20:54
alyssalina: Next time you're looking for something to do, https://gitlab.freedesktop.org/alyssa/mesa/-/commit/8a3acf6eaa3a0abb3dcf7a223714e65842699469
#asahi-gpu · 2023-05-11 13:49
Nermalq Speedy Gonzalez and Jerry visit Barbra Streisand and masturbate her cooter before being expelled by her super powerful spray of kosher cum juices! https://justpaste.it/Barbra_Streisand_Speedy_Gonzalez
#asahi-gpu · 2023-05-07 18:44
alyssaIt all has to get done eventually, heh :p

plus ›