#
…

2023-01-17

00:03hightower4 has quit [Ping timeout: 480 seconds]
00:54hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:12seeeath has joined #asahi-gpu
01:29hightower4 has joined #asahi-gpu
01:36hightower3 has quit [Ping timeout: 480 seconds]
01:52hightower3 has joined #asahi-gpu
01:53seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:55seeeath has joined #asahi-gpu
01:59hightower4 has quit [Ping timeout: 480 seconds]
02:00seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:16amarioguy has joined #asahi-gpu
02:21hightower4 has joined #asahi-gpu
02:28hightower3 has quit [Ping timeout: 480 seconds]
02:34possiblemeatball has joined #asahi-gpu
02:47seeeath has joined #asahi-gpu
02:49seeeath has quit []
03:00seeeath has joined #asahi-gpu
03:00seeeath has quit []
03:10* cr1901reads the driver survival guide
04:10hertz has joined #asahi-gpu
04:36nyx_o has quit [Quit: WeeChat 3.5]
04:45possiblemeatball has quit [Quit: Leaving]
05:00c10l has quit [Quit: Bye o/]
05:00c10l has joined #asahi-gpu
05:27faruk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:29nyx_o has joined #asahi-gpu
07:08linaalyssa: Is there some way of compiling GLSL for an internal shader in mesa, and some reasonable way of adding intrinsics to it?
07:09linaFor the compute context save/restore/misc blob, the logic is complicated enough I don't want to be messing around with assembly/binary (or building it in raw NIR), but I need some way of inserting at the very least some special register loads and some still-mysterious instructions...
07:43zzywysm has joined #asahi-gpu
08:34LinuxM1 has joined #asahi-gpu
08:42amw has quit [Ping timeout: 480 seconds]
09:00LinuxM1 has quit [Quit: Leaving]
09:17c10l1 has joined #asahi-gpu
09:19Misthios has quit [Quit: Misthios]
09:20Misthios has joined #asahi-gpu
09:24c10l has quit [Ping timeout: 480 seconds]
09:43tim has joined #asahi-gpu
09:43tim is now known as Guest1569
10:41faruk has joined #asahi-gpu
10:43faruk has quit []
11:54karolherbstlina: sooo... intel is using OpenCL C to implement ray traycing. They compile it to spir-v/nir and use that at runtime
11:56karolherbstYou can, in theory, use whatever language you want to compile to llvm and then to spir-v, but we have some internal tooling around for CL C and GLSL specifically
11:59cwabbottradv uses glslang to compile GLSL to SPIR-V, Intel uses OpenCL C because that's what the Windows driver is using and the kernels are shared between drivers
12:00cwabbottglslang is a lighter weight dependency and might be better for intrinsics because there's a SPIR-V intrinsics thing that allows you to insert SPIR-V more or less directly
12:01cwabbotthowever you'd still have to define your own SPIR-V extension somehow, not sure what the process for that is
12:06hightower3 has joined #asahi-gpu
12:13hightower4 has quit [Ping timeout: 480 seconds]
12:17hightower3 has quit [Ping timeout: 480 seconds]
12:32zalyx has quit [Read error: Connection reset by peer]
12:33zalyx has joined #asahi-gpu
12:47hightower2 has joined #asahi-gpu
12:55c10l1 has quit []
12:56c10l has joined #asahi-gpu
13:07possiblemeatball has joined #asahi-gpu
13:16faruk has joined #asahi-gpu
13:20bisko has joined #asahi-gpu
13:40faruk has quit [Quit: Textual IRC Client: www.textualapp.com]
14:06bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:23faruk has joined #asahi-gpu
14:33faruk has quit [Quit: Textual IRC Client: www.textualapp.com]
15:22nate8 has joined #asahi-gpu
15:44seeeath has joined #asahi-gpu
15:49seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:50seeeath has joined #asahi-gpu
15:55nate8 has quit [Quit: Leaving]
15:55nate8 has joined #asahi-gpu
15:57alyssaNIR builder is probably still the sane way to go.
15:58alyssaI don't remember the blob being that big
15:59alyssaAlso, I would just straight up use the blob first, and then once it's properly working look into reverse-engineering the fine details and replacing it.
16:00alyssadougall: mentioned he was interested in r/e'ing that
16:12linaalyssa: I already looked through some of it, I'll probably cover it during tomorrow's stream ^^
16:12linadougall might want to look at the mystery instructions though
16:12linaI'm more interested in what it's doing at a higher level and how to replace it
16:13linaThe main reason I wanted a higher level actual language is that it has to deal with data structures to some extent, and a big outer switch statement inside a loop, and it just feels pretty painful to write all that in NIR...
16:14linaIt's funky, I think one of the special registers is actually a FIFO? The outer loop and the way it reads one register twice and adds together the values makes no sense otherwise.
16:15alyssawhat register #?
16:18lina146/147 is the save/restore context descriptor pointer, but then 144 seems to be a command FIFO, and after reading that it reads 146 again and (for some commands) treats it as an offset into a pointer which only makes any sense if reading 144 pops the FIFO and 146/147 are a data payload.
16:19linaI only ever saw command 0xf, which is the one that runs some mystery instructions and terminates, and never saw 146/147 changing, but that would make sense if there is only one item in the FIFO here
16:19linaAlso I'm pretty sure 20 is core ID
16:20alyssaplausible
16:22linaThose are the only SRs it reads
16:22linaAlso this is all assuming I'm reading the shader asm correctly... I'm not exactly used to it ^^;;
16:36yamii has quit [Remote host closed the connection]
16:36yamii has joined #asahi-gpu
16:39Guest1569 has quit [Ping timeout: 480 seconds]
16:42seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:42seeeath has joined #asahi-gpu
16:55cr1901 has quit [Remote host closed the connection]
16:55cr1901 has joined #asahi-gpu
17:01cylm has joined #asahi-gpu
17:23faruk has joined #asahi-gpu
17:28bcrumb has joined #asahi-gpu
17:32bcrumb_ has joined #asahi-gpu
17:33bcrumb_ has quit []
17:33bcrumb_ has joined #asahi-gpu
17:37bcrumb has quit [Ping timeout: 480 seconds]
17:46alyssa has quit [Quit: leaving]
18:05bcrumb_ has quit [Quit: WeeChat 3.8]
18:07faruk has quit [Read error: Connection reset by peer]
18:13possiblemeatball has quit [Quit: Leaving]
18:16possiblemeatball has joined #asahi-gpu
18:18possiblemeatball has quit []
18:19possiblemeatball has joined #asahi-gpu
18:56seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:56seeeath has joined #asahi-gpu
19:02faruk has joined #asahi-gpu
19:02faruk has quit []
19:45nate8 has quit [Remote host closed the connection]
19:46nate8 has joined #asahi-gpu
19:52possiblemeatball has quit [Quit: Leaving]
20:27seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:27seeeath has joined #asahi-gpu
20:39possiblemeatball has joined #asahi-gpu
22:05bluetail has quit [Quit: The Lounge - https://thelounge.chat]
22:08bluetail has joined #asahi-gpu
22:50karolherbst has quit [Remote host closed the connection]
23:04karolherbst has joined #asahi-gpu
23:12cr1901 has quit [Remote host closed the connection]
23:12cr1901 has joined #asahi-gpu
23:35possiblemeatball has quit [Quit: Leaving]
…