#
…

2022-11-12

00:26yuyichao has quit [Read error: Connection reset by peer]
00:26yuyichao has joined #asahi-gpu
00:28chadmed has quit [Quit: Konversation terminated!]
00:31cr1901Lemme guess PRIME is a pun on Optimus?
01:15digicyc2 has joined #asahi-gpu
01:18digicyc has quit [Ping timeout: 480 seconds]
01:22alyssacr1901: that sounds probable
01:22alyssapunns are an important part of trans culture
01:22alyssai mean mesa culture
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:20Emantor has joined #asahi-gpu
03:54Dcow has joined #asahi-gpu
04:02Dcow has quit [Ping timeout: 480 seconds]
04:28Dcow has joined #asahi-gpu
04:37Dcow has quit [Ping timeout: 480 seconds]
05:04Dcow has joined #asahi-gpu
05:12Dcow has quit [Ping timeout: 480 seconds]
05:18SSJ_GZ has joined #asahi-gpu
05:39Dcow has joined #asahi-gpu
05:47Dcow has quit [Ping timeout: 480 seconds]
06:14Dcow has joined #asahi-gpu
06:22Dcow has quit [Ping timeout: 480 seconds]
06:43capta1nt0ad has joined #asahi-gpu
06:50Dcow has joined #asahi-gpu
06:50capta1nt0ad has quit [Quit: Konversation terminated!]
06:58Dcow has quit [Ping timeout: 480 seconds]
07:23SSJ_GZ has quit [Ping timeout: 480 seconds]
07:24capta1nt0ad has joined #asahi-gpu
08:09Dcow has joined #asahi-gpu
08:25Dcow has quit [Ping timeout: 480 seconds]
08:32Dcow has joined #asahi-gpu
09:13SSJ_GZ has joined #asahi-gpu
09:38capta1nt0ad has quit [Remote host closed the connection]
12:23capta1nt0ad has joined #asahi-gpu
12:47as400 has quit [Remote host closed the connection]
14:07la1440 has joined #asahi-gpu
14:09la1440 has quit []
15:51alyssaThese multisampling tests are taunting me
15:51alyssajust when I think I've finally 'got' it.. bam, fail
15:55alyssa Passed: 1/1 (100.0%)
15:55as400 has joined #asahi-gpu
16:12zkrx has quit []
16:17karolherbst has quit [Remote host closed the connection]
16:20karolherbst has joined #asahi-gpu
16:22zkrx has joined #asahi-gpu
16:55cylm has joined #asahi-gpu
17:41jannaugah, using dcp from two entry points (kms and backlight device) at the same time to swap surfaces / brightness works as well as one can imagine
17:42alyssajannau: :-(
17:42jannaui.e. it crashes dcp quite easily
17:42alyssamove all dcp work to a worker thread?
17:42svenjust rewrite it in rust! I heard that way lina and zero concurrency bugs :p
17:43jannauI wonder if I can use out of band swaps for the brightness
17:44alyssadcp had multiple channels to help with this right?
17:44jannaumy main problem is that I'm trying to avoid blocking surface swaps
17:44jannauyes, it has an out of band channel
17:45jannauI don't understand under which conditions macos uses it though
17:45alyssaIIRC it's just to make it easier for threaded AP clients
17:47jannauprobably, it looks like macos uses for some commands if the main context is busy
17:48jannauat least a zeroed swap structure with just the brightness fields set works
17:50alyssaany reason not to just do main for DRM swaps and OOB for backlight?
17:52jannautrying right now. I wouldn't be surprised if that crashes dcp as well
17:57jannauno crashes so far but I see some strange flickering
18:02felix_ has joined #asahi-gpu
18:03zzywysm has quit [Ping timeout: 480 seconds]
18:06felix_ is now known as glxplz
18:06glxplz has quit [Quit: glxplz]
18:09jannauyes, it seems cause issues with with the normal swap and it takes ~3 seconds until it updates
18:41maximbazjannau: thanks for the tip, my M1 Pro is able to boot as a m1n1 hypervisor guest with virtual UART, and in dmesg [1] I see some successful debug from the GPU driver (and much more with asahi.debug_flags)! It would be interesting to figure out why booting the kernel directly is getting stuck...
18:41maximbazto test next steps, I compiled MESA from alyssa/asahi/rebased, using PKGBUILD from archlinuxarm as a base, and adding "asahi" to -Dgallium-drivers. I have /usr/lib/dri/asahi_dri.so, sway starts, but I am struggling to get gnome, supertuxkart or even glxgears to start [1], I think it boils down to "libEGL warning: egl: failed to create dri2 screen".
18:41maximbazDo you have any ideas what I could be missing?
18:48jannaumaximbaz: I suspect kmsro might not work with simpledrm. do you build CONFIG_DRM_APPLE?
18:51maximbazhuh, no, I only added CONFIG_DRM_ASAHI=y, I can try with CONFIG_DRM_APPLE! Here's full diff compared to config from asahilinux/pkgbuilds/linux-asahi package, do the rest of the flag seem reasonable to you? https://paste.maximbaz.com/?e1405b1c277502f0#BokHTxeeETo3aJLMSb4Kv6tiWSFkv8HdSWEpwGxWJH6K
19:05cylm has quit [Ping timeout: 480 seconds]
19:19Cyrinuxjannau, i'm sitting with maximbaz for the debugging, after adding CONFIG_DRM_APPLE we got a black screen on boot, on the console we see the laptop is alive, but no screen at all. Any idea?
19:22Cyrinuxwe have CONFIG_DRM_APPLE=y and CONFIG_DRM_ASAHI=y so actually
19:24jannaudo you have a kernel log?
19:26alyssajannau: :(
19:28alyssaPass: 41726, Fail: 1504, Crash: 205, Warn: 91, Skip: 216, Flake: 936, Duration: 12:51, Remaining: 0
19:28alyssaI guess that's progress :')
19:28alyssa(on macOS)
19:28alyssa(dEQP-GLES3)
19:30jannauI think it will work if hold the lock until the brightness swap is completed but that itself is annoying
19:30alyssajannau: :(
19:30* alyssastuck on dEQP-GLES3.functional.fragment_out.random.51
19:31alyssaattachment 0 is unhappy
19:35jannauCyrinux: that all looks well, can you start weston from text console. I think there are some issues with sddm/xorg and the dcp version in lina's branch. you could test gdm instead
19:38Cyrinuxjannau, I'm not sure to understand, you mean you want we start weston from the proxyclient side ? We got a full black screen on macbook side / we are blind. We use sway as window manager usually.
19:39Cyrinuxblack here mean like brighness is 0%, no tty text prompt.
19:40bpye has quit [Quit: Ping timeout (120 seconds)]
19:40bpye has joined #asahi-gpu
19:41jannauyou should be able to login over the vuart
19:42jannauyou could also try switching the tty via ctrl + option + Fx (+ Fn)
19:46Cyrinuxinteresting, so from macbook side, if i try to switch the TTY, this doesnt work, until I killall sway from the proxyclient, suddently I got the tty on the macbook.
19:47CyrinuxI can then start weston, I just install it, but looks like no more luck to start applications from there then.
19:50alyssaare you setting LIBGL_DRIVERS_PATH correctly
19:53Dcow has quit [Remote host closed the connection]
19:54Dcow has joined #asahi-gpu
20:00jannauCyrinux: you could try to cherry-pick 09cee10b3b2556f009c79112174ee8ce75deca58 from bits/200-dcp
20:00jannaubut I doubt that fixes problems with sway
20:12alxdrl has joined #asahi-gpu
20:14* alyssawould like to know how fragdepth writes work on here
20:17alxdrl has quit [Remote host closed the connection]
20:21maximbazthanks jannau, we managed to get it to work! 🎉 it's a bit weird, screen goes dark once tty is shown, but if we enable auto-login, autostart sway, and then exit sway, this somehow brings screen back to life, and then we can start sway again and enjoy GPU acceleration :) will try next the cherry-pick above!
20:22alyssawarning: stuff is broken ^_^
20:22alxdrl has joined #asahi-gpu
20:24alxdrl has quit [Remote host closed the connection]
20:26maximbazso if you are curious, sway works, supertuxkart is very smooth and plays in full screen, mpv is smoother than before (we see some constant GPU timeouts [1]), kitty terminal doesn't start with some other error [2], but otherwise things seem quite good and interesting to further experiment with :)
20:29maximbazalso the display output is taking "more of the screen real estate", in other words the notch is suddenly covering a bit of a panel, haha :)
21:05alyssamaximbaz: I promised a broken driver, your expectactions are exceeded, woohoo! :-D
21:07maximbazthat's all I wanted haha :D
21:10alyssafragdepth + MSAA is an ugly interaction on here..
21:12c10l has quit [Quit: Ping timeout (120 seconds)]
21:19alyssamaximbaz: Worth noting that supertuxkart is using its older GL2.1 renderer
21:20alyssawhich omits all the graphics effects
21:20alyssathe newer GL3 renderer uses ~all features in GLES3.0
21:20alyssaso it will be a nice milestone but a massive pile of work
21:38maximbazinteresting, makes sense!
21:49cylm has joined #asahi-gpu
22:00alyssathat's my current project but I'm uhh
22:00alyssa1000s of lines on code on top of asahi/rebased
22:35capta1nt0ad has quit [Quit: Konversation terminated!]
22:37capta1nt0ad has joined #asahi-gpu
22:50capta1nt0ad has quit [Remote host closed the connection]
22:51millenialhacker has joined #asahi-gpu
22:53capta1nt0ad has joined #asahi-gpu
22:54maximbazthat's an impressive project, interesting and complex, I hope you don't lose motivation alyssa, despite the big road ahead :) seeing even current results with my own eyes makes me appreciate contributions of all of you guys on a whole new level, it's super awesome!
22:54alyssathanks (:
22:58alyssafragdepth is starting to make a little sense
22:58alyssabut not a ton
22:58alyssagot the conservative depth enum
23:05alyssastencil export is still not making sense
23:08alyssaI'm missing a bit that says stencil should come from the shader instead of the default value
23:17alyssaoh, I think I found it
23:17alyssabut now IDK where the stencil register is specified
23:18alyssagg apple
23:25alyssaOkay, stencil export makes sense no
23:25alyssa(In the absence of MSAA)
23:25alyssathat's easy :-)
23:27alyssaStencil export + MSAA also makes plenty sense, good
23:27cylm has quit [Ping timeout: 480 seconds]
23:31pthariensflame has joined #asahi-gpu
23:32pthariensflame has quit []
23:54c10l has joined #asahi-gpu
23:54millenialhacker has quit [Remote host closed the connection]
23:57alyssaif depth or stencil is written, then Metal will implement discard() as "gl_FragDepth = NaN;"
23:58SSJ_GZ has quit [Ping timeout: 480 seconds]
23:59alyssaand then in the other path (for stencil export + discard), "gl_FragDepth = gl_FragCoord.z"
23:59alyssabut gl_FragDepth gets clamped and ..um
…