#
…

2022-09-08

00:15uniq has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:21DarkShadow44 has joined #asahi-gpu
00:45e1eph4nt has quit [Ping timeout: 480 seconds]
00:51e1eph4nt has joined #asahi-gpu
00:59e1eph4nt has quit [Ping timeout: 480 seconds]
01:07e1eph4nt has joined #asahi-gpu
01:27uniq has joined #asahi-gpu
02:20uniq has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:23e1eph4nt has quit [Ping timeout: 480 seconds]
02:43e1eph4nt has joined #asahi-gpu
02:52e1eph4nt has quit [Ping timeout: 480 seconds]
02:53claraaudbtc[m] has joined #asahi-gpu
03:16e1eph4nt has joined #asahi-gpu
03:31amw has quit [Ping timeout: 480 seconds]
03:43uniq has joined #asahi-gpu
03:52amw has joined #asahi-gpu
03:58SSJ_GZ has joined #asahi-gpu
04:23uniq has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:28e1eph4nt has quit [Ping timeout: 480 seconds]
04:45e1eph4nt has joined #asahi-gpu
05:01c10l has joined #asahi-gpu
05:01claraaudbtc[m] has quit [autokilled: This host violated network policy and has been banned. Mail support@oftc.net if you think this is in error. (2022-09-08 05:01:58)]
05:03uniq has joined #asahi-gpu
05:35uniq has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:53e1eph4nt has quit [Ping timeout: 480 seconds]
06:03e1eph4nt has joined #asahi-gpu
06:34zhxchen17[m] has joined #asahi-gpu
07:10e1eph4nt has quit [Ping timeout: 480 seconds]
07:37e1eph4nt has joined #asahi-gpu
07:38le0n_ has joined #asahi-gpu
07:42le0n_ is now known as le0n
07:45e1eph4nt has quit [Ping timeout: 480 seconds]
08:27amw_ has joined #asahi-gpu
08:33amw has quit [Ping timeout: 480 seconds]
08:45e1eph4nt has joined #asahi-gpu
08:47uniq has joined #asahi-gpu
09:03uniq has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:16uniq has joined #asahi-gpu
09:51e1eph4nt has quit [Ping timeout: 480 seconds]
10:06e1eph4nt has joined #asahi-gpu
10:31uniq has quit [Quit: Textual IRC Client: www.textualapp.com]
10:31bluetail has joined #asahi-gpu
11:20chadmed has quit [Read error: Connection reset by peer]
11:21e1eph4nt has quit [Ping timeout: 480 seconds]
11:31e1eph4nt has joined #asahi-gpu
11:34Race has joined #asahi-gpu
11:39chadmed has joined #asahi-gpu
11:39e1eph4nt has quit [Ping timeout: 480 seconds]
12:09pjakobsson has joined #asahi-gpu
12:09e1eph4nt has joined #asahi-gpu
12:38rpirea has joined #asahi-gpu
12:56Race has quit [Ping timeout: 480 seconds]
13:12rpirea has quit [Quit: rpirea]
13:12rpirea has joined #asahi-gpu
13:13e1eph4nt has quit [Ping timeout: 480 seconds]
13:18skmp__ has joined #asahi-gpu
13:18skmp__o/ @lina
13:18skmp__@marcan send me your way to inquire about m1 gpu details
13:19skmp__is it an imgtec derivative? does it have anything in common with the powervr archspec or the MBX (I assume only trisetup)/SGX (maybe USSE?) architectures?
13:20skmp__AGX seems awfully in line with imgtecs naming
13:20skmp__(though I could be completely off here, ofc)
13:20linaAh, the architecture is a direct descendant of SGX, but Apple replaced many bits. Alyssa is doing the userspace part, the shaders are completely different but the draw state stuff is apparently similar?
13:21skmp__intriguing
13:21linaThe kernel side is completely different since Apple have their own in-house firmware managing the GPU, that we have to interact with
13:21skmp__I have no idea how SGX or MBX kernel sides are
13:21skmp__I've implemented though CLX2.1 in software and fpga a few times
13:21linaDefinitely not an Apple AArch64 core running RTKit...
13:21skmp__(CLX is before MBX, was used in the dreamcast)
13:22skmp__and I was casually reading the open specs of 2017 that were provided by imgtec
13:22skmp__and got curious to see the architecure
13:22danielslina: *direct descendant of RGX
13:22danielsthough RGX and SGX certainly share more than MBX and SGX
13:22linaAh right, sorry, I keep thinking of the device tree node
13:22skmp__I'm vaguely familiar with SGX (It's a generalization of MBX, which still keeps the same building blocks as CLX, but of course much improved/ refactored)
13:22lina(Which is sgx... I guess because maybe that was the first PowerVR GPU Apple used?)
13:23skmp__do they still have TA, ISP and TSP as blocks? :p
13:23danielsthe very earliest ones shipped with MBX, but yeah, SGX and RGX look similar enough at the ultra low-level
13:23linaTA yes, ISP/TSP I don't know
13:24skmp__ISP was "image synthesis processor" (Z buffer)
13:24skmp__TSP was texture and shading
13:24linaThe three pipelines the kernel sees they TA, 3D, and CP, and they map to VDM, PDM, CDM
13:24danielsskmp__: TA is still there and semi-ganged with 3D from a job submission PoV, but anything to do with I/O got massively refactored with VDM/PDM/PDS/etc/etc/etc
13:24danielsT&L obviously got replaced with programmable shading units
13:25skmp__still does internal Z buffer + span sorting though?
13:25linaWell, internal as in special-cased
13:25skmp__dreamcast claimed to be able to do Z processing for 32 pixels 'at once'
13:25linaIt's just tile memory on one end and RAM on spills (or if the user wants a real Z buffer)
13:25skmp__but only share 1 pixel
13:25linaBut there is special purpose hardware around it
13:26skmp__yeah, that was handled by the region array
13:26skmp__it defined the tile list, where to pull in which buffers, that passes to render and from which object/parameter lists, and where to flush and what
13:26skmp__s/that/the
13:26linaThere is a "parameter buffer", yes
13:27skmp__CLX could only handle triangle strips of up to 5 vertexes though
13:27skmp__I assume that's no longer a thing lol
13:27linaWhich is a terrible name, Apple calls it the Tiled Vertex Buffer in the one public mention they have of its existence, which is a much better name
13:27linaI might go with their public name
13:27skmp__I mean, it makes sense if you follow imgtec naming
13:27linaImgtec naming is... kind of terrible...
13:27skmp__it is the 'parameters' for the 'image' and 'shading' processors
13:27skmp__you're just 'configuring' the hardware
13:28skmp__it's just EE-based
13:28linaLike TA is actually running the vertex programs, and 3D the pixel programs but as an identifier it's horrible because it starts with a number
13:28skmp__that makes perfect sense though
13:28linaThat might have made sense before programmable shaders but now... it's just vertex attributes...
13:28skmp__how else are you gonna bin them and generate the region array lists
13:28skmp__can do that only post-vs
13:29skmp__TA is supposed to slice in 32x32 blocks for the renderer to handle one by one
13:29linaI know
13:29skmp__(not sure on the sizes at this point)
13:29skmp__so it needs screen coordinates
13:29skmp__so it needs to run vertex shaders
13:29linaOf course it makes sense, but then it's not just the tiling part, and from a software perspective it's not good naming
13:29skmp__I don't think they care much about software
13:29skmp__one can tell from their drivers that much
13:29linaAs evidenced by how Apple themselves mix together TA/VDM and 3D/PDM...
13:30skmp__I'd like to write an emulator for it
13:30skmp__would that be useful to you?
13:31linaHmm... I mean, most of the work that's left is just porting over my prototype driver to the real kernel on the kernel side. You could definitely emulate the firmware (it's just AArch64) if you wanted to LLE that, but I already get nice crash dumps out of it and there is tons of tracing so I'm not sure we'd get much more out of it?
13:31linaMaybe it makes more sense to emulate the actual rendering side? alyssa would know if that's useful for her
13:31skmp__yea that part
13:31skmp__I'm interested just in the rendering pipeline tbh
13:32linaYeah, then maybe talk to alyssa ^^
13:32skmp__I've known CLX and MAXWELL, and read up on SGX/RGX and some AMD stuff
13:32skmp__where can I find them?
13:32skmp__(would be nice to do AGX emulator, I've written a pixel-level emulator for CLX only)
13:32linaShe's around here sometimes, and also @alyssarzg on Twitter
13:33bluetaillina do you sell merch yet, and how do you manage to listen to the audio loop for 12h working on the gpu driver?
13:33linaWorking on the merch! So many things to do...
13:34linaAnd I like the loop! It keeps me concentrated!!!
13:34bluetailHah. Thats intriguing
13:34bluetailAre you some kind of genius, or just somebody who happens to tinker for a very long time?
13:35skmp__@lina thanks
13:35linaI just like messing around ^^
13:35bluetailic. We are alike. But I'm not on your level if messing around yet
13:35skmp__(no promises on anything eh, but i've been out of the CLX drug for a year now, and I already miss it after 20 years of relationship lol)
13:36c10l2 has joined #asahi-gpu
13:39e1eph4nt has joined #asahi-gpu
13:42c10l has quit [Ping timeout: 480 seconds]
13:47e1eph4nt has quit [Ping timeout: 480 seconds]
13:52rpirea has quit [Quit: rpirea]
13:53rpirea has joined #asahi-gpu
13:57e1eph4nt has joined #asahi-gpu
13:58rpirea has quit [Quit: rpirea]
13:58rpirea has joined #asahi-gpu
14:23DarkShadow44 has quit [Quit: ZNC - https://znc.in]
14:23DarkShadow44 has joined #asahi-gpu
14:24DarkShadow44 has quit []
14:24DarkShadow44 has joined #asahi-gpu
14:48rpirea has quit [Quit: rpirea]
15:04e1eph4nt has quit [Ping timeout: 480 seconds]
15:12e1eph4nt has joined #asahi-gpu
15:21e1eph4nt has quit [Ping timeout: 480 seconds]
15:29e1eph4nt has joined #asahi-gpu
15:37e1eph4nt has quit [Ping timeout: 480 seconds]
15:42e1eph4nt has joined #asahi-gpu
16:50e1eph4nt has quit [Ping timeout: 480 seconds]
16:59e1eph4nt has joined #asahi-gpu
17:07e1eph4nt has quit [Ping timeout: 480 seconds]
17:16e1eph4nt has joined #asahi-gpu
17:25e1eph4nt has quit [Ping timeout: 480 seconds]
17:31e1eph4nt has joined #asahi-gpu
18:41e1eph4nt has quit [Ping timeout: 480 seconds]
18:52e1eph4nt has joined #asahi-gpu
19:59e1eph4nt has quit [Ping timeout: 480 seconds]
20:23e1eph4nt has joined #asahi-gpu
20:32e1eph4nt has quit [Ping timeout: 480 seconds]
20:40e1eph4nt has joined #asahi-gpu
20:48e1eph4nt has quit [Ping timeout: 480 seconds]
20:56e1eph4nt has joined #asahi-gpu
21:47SSJ_GZ has quit [Ping timeout: 480 seconds]
22:06e1eph4nt has quit [Ping timeout: 480 seconds]
22:08bluetail has quit [Quit: Ping timeout (120 seconds)]
22:08bluetail has joined #asahi-gpu
22:16e1eph4nt has joined #asahi-gpu
22:24e1eph4nt has quit [Ping timeout: 480 seconds]
22:32e1eph4nt has joined #asahi-gpu
23:39e1eph4nt has quit [Ping timeout: 480 seconds]
23:48e1eph4nt has joined #asahi-gpu
…