#
…

2021-05-23

00:48JoshuaAshton has joined #asahi-gpu
02:36_whitelogger has joined #asahi-gpu
04:52ar has quit [Quit: brb]
04:56ar has joined #asahi-gpu
06:11rwhitby has joined #asahi-gpu
06:17rwhitby has quit [Quit: rwhitby]
06:17rwhitby has joined #asahi-gpu
06:19rwhitby has quit []
09:40crabbedhaloablut has quit []
09:40crabbedhaloablut has joined #asahi-gpu
09:44phiologe has joined #asahi-gpu
10:34richbridger has quit [Remote host closed the connection]
10:36sven has quit [Quit: ZNC 1.8.2 - https://znc.in]
10:36sven has joined #asahi-gpu
10:37sven has quit []
10:37sven has joined #asahi-gpu
12:05psydroid[m] is now known as psydroid
12:26Lightsword has joined #asahi-gpu
15:29ar has quit [Quit: leaving]
15:29ar has joined #asahi-gpu
15:34alyssa has joined #asahi-gpu
15:38bloom has joined #asahi-gpu
15:38bloomHello hello :)
15:38alyssa has left #asahi-gpu [#asahi-gpu]
15:39bloommarcan: can i haz op? :-p
15:44marcanbloom: done, rejoin should autoop
15:45bloommarcan: thank you uwu :p
15:45bloomwell, no excuse not to AGX today then!
15:46bloomand tomorrow might be a stat holiday so I might even get something done
15:46marcanI'm definitely going back to the hypervisor tomorrow, better hope I don't finish that too soon or else I'll start working on the drm drver :p
15:46bloomI'm kinda over it
15:46bloomfinish your hypervisor, start the DRM driver, see what I care ;-p
15:47marcanaw, and you'd gotten me excited :p
16:30cepheus has joined #asahi-gpu
16:36kubes has joined #asahi-gpu
17:47choozy has joined #asahi-gpu
18:04ar has quit [Quit: brb]
18:04ar has joined #asahi-gpu
18:36mini has quit [Quit: ZNC closing...]
18:43minimaul has joined #asahi-gpu
19:23ar has quit [Quit: brb]
19:23ar has joined #asahi-gpu
20:24kubes has quit [Quit: Leaving]
21:13richbridger has joined #asahi-gpu
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:05yrlf has joined #asahi-gpu
23:29bloomI admit I'm confused by the idioms the Metal compiler uses for loops
23:38choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
23:43bloomI guess the primitive is "do { ... } while(x)" as opposed to plain while
23:44bloomwhich means "while(x) { .. }" becomes "if (x) { do { ... } while (x) }"
23:48bloomof course, it could also become "do { if (!x) { break } ... } while(true)"
23:48bloomwhich is the natural translation from the NIR `loop { if (!x) { break } .. }`
23:49bloomthe number of instructions is the same between the two -- HOWEVER, the Metal translation should be faster
23:49bloomwhy? the loop body is much smaller
23:50bloomthe literal NIR way has a body of "if_fcmp, break, pop_exec, ..., while_fcmp, jmp_exec_any"
23:50bloomwhereas the Metal way, despite adding 2 instructions _outside_ the loop, has a body only of "..., while_fcmp, jmp_exec_any"
23:50bloomso for a single iteration they're the same, for 2 or more the Metal one is faster
…