2021-03-23
00:19omoiti has quit [Remote host closed the connection]
00:19omoiti has quit [Remote host closed the connection]
00:31PeterEaston has joined #asahi-gpu
00:31PeterEaston has joined #asahi-gpu
00:31TheJollyRoger has quit [Ping timeout: 268 seconds]
00:31TheJollyRoger has quit [Ping timeout: 268 seconds]
00:36Necrosporus has quit [Ping timeout: 240 seconds]
00:36Necrosporus has quit [Ping timeout: 240 seconds]
00:37omoiti has joined #asahi-gpu
00:37omoiti has joined #asahi-gpu
00:43JusticeEX has quit [Ping timeout: 245 seconds]
00:43JusticeEX has quit [Ping timeout: 245 seconds]
01:35zkrx has quit [Ping timeout: 246 seconds]
01:35zkrx has quit [Ping timeout: 246 seconds]
01:46zkrx has joined #asahi-gpu
01:46zkrx has joined #asahi-gpu
02:45JusticeEX has joined #asahi-gpu
02:45JusticeEX has joined #asahi-gpu
03:30phiologe has quit [Ping timeout: 244 seconds]
03:30phiologe has quit [Ping timeout: 244 seconds]
03:31phiologe has joined #asahi-gpu
03:31phiologe has joined #asahi-gpu
04:11odmir has quit [Remote host closed the connection]
04:11odmir has quit [Remote host closed the connection]
04:12odmir has joined #asahi-gpu
04:12odmir has joined #asahi-gpu
04:17odmir has quit [Ping timeout: 272 seconds]
04:17odmir has quit [Ping timeout: 272 seconds]
04:42_whitelogger_ has quit [Remote host closed the connection]
04:45_whitelogger_ has joined #asahi-gpu
04:45_whitelogger_ has joined #asahi-gpu
04:53omoiti has quit [Read error: Connection reset by peer]
04:53omoiti has quit [Read error: Connection reset by peer]
05:15PeterEaston has quit [Quit: PeterEaston]
05:15PeterEaston has quit [Quit: PeterEaston]
06:24maor26 has joined #asahi-gpu
06:24maor26 has joined #asahi-gpu
09:00irradiated_lemmi has quit [Quit: Idle for 30+ days]
09:00irradiated_lemmi has quit [Quit: Idle for 30+ days]
15:35stemnic has quit [Remote host closed the connection]
15:35stemnic has quit [Remote host closed the connection]
15:35stemnic has joined #asahi-gpu
15:35stemnic has joined #asahi-gpu
15:35mjg59 has quit [Ping timeout: 240 seconds]
15:35mjg59 has quit [Ping timeout: 240 seconds]
15:35simjnd[m] has quit [Ping timeout: 246 seconds]
15:35simjnd[m] has quit [Ping timeout: 246 seconds]
15:35mjg59 has joined #asahi-gpu
15:35mjg59 has joined #asahi-gpu
15:36tomtastic has quit [Quit: ZNC - https://znc.in]
15:36tomtastic has quit [Quit: ZNC - https://znc.in]
15:36rockinrobstar[m] has quit [Ping timeout: 265 seconds]
15:36rockinrobstar[m] has quit [Ping timeout: 265 seconds]
15:36_alice has quit [Ping timeout: 240 seconds]
15:36_alice has quit [Ping timeout: 240 seconds]
15:36Jasper[m] has quit [Ping timeout: 244 seconds]
15:36Jasper[m] has quit [Ping timeout: 244 seconds]
15:36morelightning[m] has quit [Ping timeout: 258 seconds]
15:36morelightning[m] has quit [Ping timeout: 258 seconds]
15:36zzoon has quit [Ping timeout: 240 seconds]
15:36winocm has quit [Ping timeout: 240 seconds]
15:36winocm has quit [Ping timeout: 240 seconds]
15:36zzoon has quit [Ping timeout: 240 seconds]
15:36Bastian[m] has quit [Ping timeout: 240 seconds]
15:36Bastian[m] has quit [Ping timeout: 240 seconds]
15:36bylaws has quit [Ping timeout: 240 seconds]
15:36JJJollyjim has quit [Ping timeout: 240 seconds]
15:36bylaws has quit [Ping timeout: 240 seconds]
15:36JJJollyjim has quit [Ping timeout: 240 seconds]
15:37tomtastic has joined #asahi-gpu
15:37tomtastic has joined #asahi-gpu
15:37ryanhrob[m] has quit [Ping timeout: 258 seconds]
15:37ryanhrob[m] has quit [Ping timeout: 258 seconds]
15:37jix has quit [Remote host closed the connection]
15:37jix has quit [Remote host closed the connection]
15:37svenpeter has quit [Ping timeout: 240 seconds]
15:37svenpeter has quit [Ping timeout: 240 seconds]
15:37hypergenesis[m] has quit [Ping timeout: 240 seconds]
15:37hypergenesis[m] has quit [Ping timeout: 240 seconds]
15:37cepheus has quit [Ping timeout: 240 seconds]
15:37cepheus has quit [Ping timeout: 240 seconds]
15:37jix has joined #asahi-gpu
15:37jix has joined #asahi-gpu
15:37davidrysk[m] has quit [Ping timeout: 240 seconds]
15:37davidrysk[m] has quit [Ping timeout: 240 seconds]
15:37user1tt[m] has quit [Ping timeout: 240 seconds]
15:37user1tt[m] has quit [Ping timeout: 240 seconds]
15:37bngs[m] has quit [Ping timeout: 240 seconds]
15:37konradybcio has quit [Ping timeout: 240 seconds]
15:37konradybcio has quit [Ping timeout: 240 seconds]
15:37bngs[m] has quit [Ping timeout: 240 seconds]
15:37blazra has quit [Ping timeout: 240 seconds]
15:37blazra has quit [Ping timeout: 240 seconds]
15:38dacre[m] has quit [Ping timeout: 268 seconds]
15:38dacre[m] has quit [Ping timeout: 268 seconds]
15:38emily has quit [Ping timeout: 268 seconds]
15:38emily has quit [Ping timeout: 268 seconds]
15:38OctopusET[m] has quit [Ping timeout: 244 seconds]
15:38RiniaOk_yama[m] has quit [Ping timeout: 244 seconds]
15:38RiniaOk_yama[m] has quit [Ping timeout: 244 seconds]
15:38OctopusET[m] has quit [Ping timeout: 244 seconds]
15:38izzyisles[m] has quit [Ping timeout: 244 seconds]
15:38Augur[m] has quit [Ping timeout: 244 seconds]
15:38Augur[m] has quit [Ping timeout: 244 seconds]
15:38izzyisles[m] has quit [Ping timeout: 244 seconds]
15:38Guest57260 has quit [Ping timeout: 244 seconds]
15:38Guest57260 has quit [Ping timeout: 244 seconds]
15:38josiahmendes[m] has quit [Ping timeout: 258 seconds]
15:38josiahmendes[m] has quit [Ping timeout: 258 seconds]
15:38AkihikoOdaki[m] has quit [Ping timeout: 258 seconds]
15:38mofux[m] has quit [Ping timeout: 258 seconds]
15:38mofux[m] has quit [Ping timeout: 258 seconds]
15:38AkihikoOdaki[m] has quit [Ping timeout: 258 seconds]
15:50simjnd[m] has joined #asahi-gpu
15:50simjnd[m] has joined #asahi-gpu
15:58JusticeEX has quit [Ping timeout: 245 seconds]
15:58JusticeEX has quit [Ping timeout: 245 seconds]
15:59Jasper[m] has joined #asahi-gpu
15:59Jasper[m] has joined #asahi-gpu
16:01morelightning[m] has joined #asahi-gpu
16:01morelightning[m] has joined #asahi-gpu
16:03JJJollyjim has joined #asahi-gpu
16:03JJJollyjim has joined #asahi-gpu
16:04Bastian[m] has joined #asahi-gpu
16:04Bastian[m] has joined #asahi-gpu
16:05ryanhrob[m] has joined #asahi-gpu
16:05ryanhrob[m] has joined #asahi-gpu
16:06bylaws has joined #asahi-gpu
16:06bylaws has joined #asahi-gpu
16:11_alice has joined #asahi-gpu
16:11_alice has joined #asahi-gpu
16:13rockinrobstar[m] has joined #asahi-gpu
16:13rockinrobstar[m] has joined #asahi-gpu
16:15winocm has joined #asahi-gpu
16:15winocm has joined #asahi-gpu
16:15zzoon has joined #asahi-gpu
16:15zzoon has joined #asahi-gpu
16:15konradybcio has joined #asahi-gpu
16:15konradybcio has joined #asahi-gpu
16:16svenpeter has joined #asahi-gpu
16:16svenpeter has joined #asahi-gpu
16:17hypergenesis[m] has joined #asahi-gpu
16:17hypergenesis[m] has joined #asahi-gpu
16:18OctopusET[m] has joined #asahi-gpu
16:18OctopusET[m] has joined #asahi-gpu
16:18Augur[m] has joined #asahi-gpu
16:18Augur[m] has joined #asahi-gpu
16:18blazra has joined #asahi-gpu
16:18blazra has joined #asahi-gpu
16:18RiniaOk_yama[m] has joined #asahi-gpu
16:18RiniaOk_yama[m] has joined #asahi-gpu
16:18izzyisles[m] has joined #asahi-gpu
16:18izzyisles[m] has joined #asahi-gpu
16:18Guest57260 has joined #asahi-gpu
16:18Guest57260 has joined #asahi-gpu
16:19cepheus has joined #asahi-gpu
16:19cepheus has joined #asahi-gpu
16:19user1tt[m] has joined #asahi-gpu
16:19user1tt[m] has joined #asahi-gpu
16:20AkihikoOdaki[m] has joined #asahi-gpu
16:20AkihikoOdaki[m] has joined #asahi-gpu
16:20mofux[m] has joined #asahi-gpu
16:20mofux[m] has joined #asahi-gpu
16:20bngs[m] has joined #asahi-gpu
16:20bngs[m] has joined #asahi-gpu
16:21dacre[m] has joined #asahi-gpu
16:21dacre[m] has joined #asahi-gpu
16:22josiahmendes[m] has joined #asahi-gpu
16:22josiahmendes[m] has joined #asahi-gpu
16:23emily has joined #asahi-gpu
16:23emily has joined #asahi-gpu
16:28davidrysk[m] has joined #asahi-gpu
16:28davidrysk[m] has joined #asahi-gpu
17:04DarkShadow44 has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
17:04DarkShadow44 has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
17:06DarkShadow44 has joined #asahi-gpu
17:06DarkShadow44 has joined #asahi-gpu
17:19zkrx has quit [Ping timeout: 276 seconds]
17:19zkrx has quit [Ping timeout: 276 seconds]
17:25zkrx has joined #asahi-gpu
17:25zkrx has joined #asahi-gpu
17:28odmir has joined #asahi-gpu
17:28odmir has joined #asahi-gpu
17:56mxw39 has quit [Read error: Connection reset by peer]
17:56mxw39 has quit [Read error: Connection reset by peer]
17:56mxw39 has joined #asahi-gpu
17:56mxw39 has joined #asahi-gpu
19:05TheJollyRoger has joined #asahi-gpu
19:05TheJollyRoger has joined #asahi-gpu
20:02DarkShadow44Assuming the following disassembly from applegpu/disassembly.py:
20:02DarkShadow44Assuming the following disassembly from applegpu/disassembly.py:
20:02DarkShadow44device_load 1, 0, 0, 4, 0, i32, quad, r12_r13_r14_r15, u0_u1, r32, unsigned, lsl 2
20:02DarkShadow44device_load 1, 0, 0, 4, 0, i32, quad, r12_r13_r14_r15, u0_u1, r32, unsigned, lsl 2
20:02DarkShadow44do you know what exactly u0_u1 do here?
20:02DarkShadow44do you know what exactly u0_u1 do here?
20:02DarkShadow44I think I understand most of the others, but that currently trips me up. The GPU just softfaults, and I guess my lack of understanding of this part is to blame
20:02DarkShadow44I think I understand most of the others, but that currently trips me up. The GPU just softfaults, and I guess my lack of understanding of this part is to blame
20:19k|r|b|t|g|t is now known as krbtgt
20:19k|r|b|t|g|t is now known as krbtgt
20:37DarkShadow44hmm maybe the adress of the buffer on the gpu
20:37DarkShadow44hmm maybe the adress of the buffer on the gpu
20:48DarkShadow44hmm maybe the adress of the buffer on the gpu
20:48DarkShadow44hmm maybe the adress of the buffer on the gpu
20:55JusticeEX has joined #asahi-gpu
20:55JusticeEX has joined #asahi-gpu
21:03chrisfDarkShadow44: there's a better description of the "simple" loads and stores in the older docs at https://hthh.github.io/m1-gpu-re/
21:03chrisfDarkShadow44: there's a better description of the "simple" loads and stores in the older docs at https://hthh.github.io/m1-gpu-re/
21:05chrisfdougall has since figured out a lot more of the encoding but we're short a description of exactly what happens
21:05chrisfdougall has since figured out a lot more of the encoding but we're short a description of exactly what happens
21:08DarkShadow44Yeah, I expected something like that
21:08DarkShadow44Yeah, I expected something like that
21:09chrisfDarkShadow44: some of the details of that pseudocode are wrong [what happens with a hole in the mask, etc], i had pretty incomplete information at the time
21:09chrisfDarkShadow44: some of the details of that pseudocode are wrong [what happens with a hole in the mask, etc], i had pretty incomplete information at the time
21:10DarkShadow44though I'm not entirely sure why the main GPU program expects them starting from u0_u1 but the .metallib expects them from r20_r21
21:10DarkShadow44though I'm not entirely sure why the main GPU program expects them starting from u0_u1 but the .metallib expects them from r20_r21
21:11DarkShadow44makes sense, thanks
21:11DarkShadow44makes sense, thanks
21:11chrisfDarkShadow44: when the buffer is a parameter to the entrypoint function you know it's uniform across all lanes
21:11chrisfDarkShadow44: when the buffer is a parameter to the entrypoint function you know it's uniform across all lanes
21:13DarkShadow44that does make sense. Maybe the mantle calling convention just starts function parameters from r20 upwards...
21:13DarkShadow44that does make sense. Maybe the mantle calling convention just starts function parameters from r20 upwards...
21:14DarkShadow44then again, it doesn't matter too much which registers are used for what, since we can make up our own conventions
21:14DarkShadow44then again, it doesn't matter too much which registers are used for what, since we can make up our own conventions
21:15DarkShadow44anyways, I know have setup enough to upload arbitrary programs(*) to the GPU and run them
21:15DarkShadow44anyways, I know have setup enough to upload arbitrary programs(*) to the GPU and run them
21:15DarkShadow44just moving the uniforms to the required registers is enough for the .metallib shaders to work
21:15DarkShadow44just moving the uniforms to the required registers is enough for the .metallib shaders to work
21:16DarkShadow44what's kinda nice: The buffer for the shaders can be reused multiple times, meaning I could upload and run ten different shaders without having to restart the program
21:16DarkShadow44what's kinda nice: The buffer for the shaders can be reused multiple times, meaning I could upload and run ten different shaders without having to restart the program
21:17DarkShadow44similar to what dougallj/applegpu is doing, but all in C and within one single process
21:17DarkShadow44similar to what dougallj/applegpu is doing, but all in C and within one single process
21:17chrisffor real driver we probably wont even have much of a convention -- mesa approach is generally "inline the universe"
21:17chrisffor real driver we probably wont even have much of a convention -- mesa approach is generally "inline the universe"
21:18DarkShadow44eh, depends on what we're given. When we get already inlined bytecode, even easier
21:18DarkShadow44eh, depends on what we're given. When we get already inlined bytecode, even easier
21:24DarkShadow44the shader infrastructure doesn't sound too far either, y'all seem to have done some amazing work already
21:24DarkShadow44the shader infrastructure doesn't sound too far either, y'all seem to have done some amazing work already
21:26DarkShadow44not really, no. I just use the github code to inject arbitrary shaders onto the gpu - replacing the original shader at a fixed offset...
21:26DarkShadow44not really, no. I just use the github code to inject arbitrary shaders onto the gpu - replacing the original shader at a fixed offset...
21:26DarkShadow44it's good enough for me to test the ISA though
21:26DarkShadow44it's good enough for me to test the ISA though
21:30DarkShadow44still wondering how exactly we get to the kernel part of things, btw
21:30DarkShadow44still wondering how exactly we get to the kernel part of things, btw
21:30DarkShadow44assuming there is a kernel layer beneath all that
21:30DarkShadow44assuming there is a kernel layer beneath all that
21:32chrisfmarcan and others are going to have fun when we eventually need a linux one. not my area, but i hope it's possible to get under the existing driver and trace the mmio etc
21:32chrisfmarcan and others are going to have fun when we eventually need a linux one. not my area, but i hope it's possible to get under the existing driver and trace the mmio etc
21:35DarkShadow44hopefully, because kernel stuff is finicky
21:35DarkShadow44hopefully, because kernel stuff is finicky
22:41omoiti has joined #asahi-gpu
22:41omoiti has joined #asahi-gpu
23:40omoiti has quit [Remote host closed the connection]
23:40omoiti has quit [Remote host closed the connection]
23:40omoiti has joined #asahi-gpu
23:40omoiti has joined #asahi-gpu