#
…

2021-01-07

00:36ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:48ransom has joined #asahi-gpu
01:08bloom_The startup chime always surprises me after so many years away from Apple hardware.
01:10bloom_Also, I'm seeing some graphics artefacts, even on boot. Not sure which is worse, the possibility the GPU is so fragile that a few benign tests damaged something, the possibility the GPU is just unstable in general, or the Apple drivers are that unstable.
01:11bloom_Then again might be HDMI related.
01:14qyousef has joined #asahi-gpu
01:28bloom_$ ffmpeg -f rawvideo -pixel_format bgra -video_size 800x600 -i dump.bin output.png
01:28bloom_I *almost* regret this hack. Almost.
01:30rbenua has joined #asahi-gpu
02:54aratuk has joined #asahi-gpu
03:04blazra[m] is now known as blazra
03:09blazra has quit [Quit: authenticating]
03:10blazra has joined #asahi-gpu
04:50marcanbloom_: I've seen graphics artifacts on boot on my macbook pro the other day (boot progress bar messed up), and also inside macos (glitches in system settings)
04:50marcanI think their drivers are just still buggy
04:55browzing has quit [Ping timeout: 256 seconds]
04:59davidrysk[m]I've seen fewer graphical glitches than with nvidia or amd or even intel igpu drivers
04:59davidrysk[m]the nvidia ones were by far the worst
05:21browzing has joined #asahi-gpu
05:26browzing has quit [Ping timeout: 246 seconds]
05:33ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:56browzing has joined #asahi-gpu
06:02browzing has quit [Ping timeout: 272 seconds]
06:15browzing has joined #asahi-gpu
06:20browzing has quit [Ping timeout: 256 seconds]
06:50marcanbloom_: I assume you're already past this stage but: https://twitter.com/TellowKrinkle/status/1347054865491615744
08:27aratuk has quit [Remote host closed the connection]
08:46bear24rw has quit [Remote host closed the connection]
08:47bear24rw has joined #asahi-gpu
08:52bear24rw has quit [Ping timeout: 246 seconds]
09:05aratuk has joined #asahi-gpu
09:05aratuk has quit [Client Quit]
09:15bear24rw has joined #asahi-gpu
09:21aratuk has joined #asahi-gpu
09:39_whitelogger has joined #asahi-gpu
10:17browzing has joined #asahi-gpu
10:21browzing has quit [Ping timeout: 240 seconds]
10:32ts170[m] has joined #asahi-gpu
10:53bear24rw has quit [Remote host closed the connection]
11:01Mary_ has joined #asahi-gpu
11:03bear24rw has joined #asahi-gpu
11:08bear24rw has quit [Ping timeout: 264 seconds]
11:08jinen[m] has joined #asahi-gpu
11:21Mary_Haven't thought of linking against libLLVM directly to test stuffs, I should maybe give it a try
11:23Mary_(Was actually building something around metallib files and altering AIR)
12:37Jamie[m]2 has joined #asahi-gpu
13:07sharpiro has quit [Ping timeout: 264 seconds]
13:40bloom_marcan: Cute :)
13:41bloom_I'm uncomfortable getting that close to proprietary code for obvious reasons and it was easy enough to get the actual GPU binaries out from memory
13:42bloom_But yeah, my sleepy morning brain confirms that's M1 assembly :)
13:42bloom_or at least could be
13:43bloom_bloom_: I should push my disasm
13:43bloom_er marcan
14:00aratuk has joined #asahi-gpu
14:16aratuk has quit [Remote host closed the connection]
14:34davidrysk[m]AGX2 is very likely M1 GPU
14:39mah has joined #asahi-gpu
14:41ceph3us has joined #asahi-gpu
14:54ceph3us has quit [Remote host closed the connection]
14:55Mary_davidrysk[m], it is
15:02mah is now known as mch
15:03mch is now known as mah
15:03mah has quit [Quit: Leaving]
15:29Axenntio has joined #asahi-gpu
15:29Axenntio has quit [Client Quit]
15:29Axenntio has joined #asahi-gpu
15:32Axenntio_ has joined #asahi-gpu
15:35Axenntio_ has quit [Remote host closed the connection]
15:36Axenntio has quit [Ping timeout: 264 seconds]
15:44bloom_marcan: ping
15:53bloom_Hot off the press!
15:54bloom_...or if you'd rather cut to the chase, code is https://github.com/AsahiLinux/gpu/blob/main/disasm/disasm.c
15:56brentr123[m] has joined #asahi-gpu
15:57bloom_More code to be uploaded to that repo soon, need to clean some stuff up, maybe will push to a branch sooner
16:01bloom_ is now known as bloom
16:04Mary_bloom, nice work!
16:04bloomMary_: Thanks :)
16:08Mary_I think I will try to take a look at it a bit later today see if I can help a bit
16:12bloomthe wrap library will be released shortly, need to disentangle it from unrelated experiment code
16:16Mary_bloom, is disassembling Metal dynamic library a no no for you? I noticed that you can ask Metal api to prebuild shaders for the current target you are running on and export it.
16:16bloomMary_: Disassembly is absolutely a no-no.
16:17Mary_I mean you aren't disassembling any proprietary code here tho bloom
16:17bloom---Correct.
16:17bloomDisassembly != disassembly
16:17bloomWriting out own disassembler to disassemble shaders we write ourselves, for ISA r/e -- ok
16:18bloomUsing an arm64 disassembler to disassemble Apples's proprietary code -- noto ok
16:18Mary_ah okay I wasn't clear
16:18bloomNor was I, sorry
16:18Mary_I was meaning using Metal APIs to generate a GPU compiled file and dissassembling the result of it
16:18Mary_(All of that is standard metal stuffs)
16:19bloomOh, right. I didn't know a priori if that was actual GPU binaries instead of LLVM IR serialization
16:20Mary_there is the two variants
16:31bear24rw has joined #asahi-gpu
16:35bear24rw has quit [Ping timeout: 256 seconds]
16:41bear24rw has joined #asahi-gpu
16:46bear24rw has quit [Remote host closed the connection]
16:54bear24rw has joined #asahi-gpu
16:57Axenntio has joined #asahi-gpu
16:58carlosn has joined #asahi-gpu
17:00bear24rw has quit [Ping timeout: 264 seconds]
17:14bloomwrap code pushed but probably fairly broken rn, whoops
17:16bear24rw has joined #asahi-gpu
17:21j`ey has joined #asahi-gpu
17:26Hexagon has joined #asahi-gpu
17:39marcanbloom: want a tweet from @AsahiLinux?
17:39marcan(sorry, was doing dinner and things)
17:43tiago_ has joined #asahi-gpu
17:43modwizcode has joined #asahi-gpu
17:58browzing has joined #asahi-gpu
18:07devinvs[m] has joined #asahi-gpu
18:08Axenntio_ has joined #asahi-gpu
18:08Axenntio has quit [Remote host closed the connection]
18:09Axenntio_ has quit [Remote host closed the connection]
18:09Axenntio has joined #asahi-gpu
18:09Axenntio has quit [Remote host closed the connection]
18:10Shizbloom: very nice going
18:11bloomthank you :)
18:19neobrain has joined #asahi-gpu
18:20bear24rw has quit [Remote host closed the connection]
18:21bear24rw has joined #asahi-gpu
18:23stormclad has joined #asahi-gpu
18:23tiago_ is now known as tmartins
18:24bear24rw has quit [Remote host closed the connection]
18:24bear24rw has joined #asahi-gpu
18:25bear24rw has quit [Remote host closed the connection]
18:25bear24rw has joined #asahi-gpu
18:25tmartins is now known as tiagom
18:26tiagom has quit [Quit: tiagom]
18:26tiagom has joined #asahi-gpu
18:28tbodt has joined #asahi-gpu
18:28svenbloom: nice work :)
18:33bear24rw has quit [Remote host closed the connection]
18:33bear24rw has joined #asahi-gpu
18:46maciejjo has joined #asahi-gpu
18:51Baughn has joined #asahi-gpu
18:57Axenntio has joined #asahi-gpu
18:58Axenntio_ has joined #asahi-gpu
18:58Axenntio_ has quit [Remote host closed the connection]
19:01Axenntio has quit [Remote host closed the connection]
19:01dhewgyeah, seconded, just read your post ;)
19:03Yuzuso AGX is a fully dynamically scheduled machine? have you seen any sign of mandatory delays before dependent ops or anything like that?
19:05dhewgalthough i found "with the 8th bit from the 8th bit of the *second* byte" weird to parse
19:05Axenntio has joined #asahi-gpu
19:06Axenntio_ has joined #asahi-gpu
19:06Axenntio_ has quit [Remote host closed the connection]
19:07dhewgyou mean "(op[0] & 0x7f) | (op[1] & 0x80)", right?
19:08Axenntio_ has joined #asahi-gpu
19:09Axenntio_ has quit [Remote host closed the connection]
19:09dhewgnvm, that's like exactly line 264 further down :)
19:14Axenntio has quit []
19:15Axenntio_ has joined #asahi-gpu
19:28Axenntio_ has quit [Remote host closed the connection]
19:33ConeOfAttack[m] has joined #asahi-gpu
19:42fl35[m] has joined #asahi-gpu
20:00bloomsven: thank you :)
20:01bloomYuzu: Too early to tell and it would be speculation anyway, compiler can only see so much.
20:01bloomdhewg: I am embarassed by the code, yes
20:01Yuzubloom: Fair - was just wondering if you had seen any patterns in generated code that would be obviously inefficient unless there's delays
20:02bloomYuzu: No(t yet), which is why I'm concluding there's quite a bit of hw scheduling.
20:02bloomContrast eg Adreno
20:04brinly has joined #asahi-gpu
20:04q3k|mbloom: impressive work
20:06bloomthanks :)
20:10Axenntio has joined #asahi-gpu
20:11Axenntio has quit [Remote host closed the connection]
20:13Axenntio has joined #asahi-gpu
20:15ConeOfAttack[m]With regards to 32 v 16 bit ALU performance, is there a way to see if 32-bit ALUs are repurposed as two 16-bit units? Iirc the last couple of generations from nvidia pushed this for ints and fps probably for neural network workloads.
20:20ransom has joined #asahi-gpu
20:24Mary_bloom: just got my metallib thing working if you are interested ^^ https://github.com/Thog/gpu/tree/metallib
20:28ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:29Axenntio has quit [Ping timeout: 240 seconds]
20:30sharpiro has joined #asahi-gpu
20:31Axenntio has joined #asahi-gpu
20:32browzing has quit [Ping timeout: 246 seconds]
20:32sharpiro_ has joined #asahi-gpu
20:34Axenntio has quit [Remote host closed the connection]
20:35sharpiro has quit [Ping timeout: 256 seconds]
20:48tiagom has quit [Quit: tiagom]
20:59browzing has joined #asahi-gpu
21:17tiagom has joined #asahi-gpu
21:30skg has joined #asahi-gpu
21:30bear24rw has quit [Remote host closed the connection]
21:31bear24rw has joined #asahi-gpu
21:32bear24rw has quit [Remote host closed the connection]
21:32ransom has joined #asahi-gpu
21:32bear24rw has joined #asahi-gpu
21:32xerpi[m] has joined #asahi-gpu
21:33thecake21[m] has joined #asahi-gpu
21:43ransom_ has joined #asahi-gpu
21:45ransom has quit [Ping timeout: 272 seconds]
21:47aratuk has joined #asahi-gpu
21:50aratuk_ has joined #asahi-gpu
21:53aratuk has quit [Ping timeout: 256 seconds]
22:01jevinskie[m] has joined #asahi-gpu
22:01ransom_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:02ransom has joined #asahi-gpu
22:11roxfan has joined #asahi-gpu
22:20krbtgt has joined #asahi-gpu
22:23bloomroxfan: That's orthogonal, but certainly fun to see :)
22:46stormclad has quit [Remote host closed the connection]
22:47stormclad has joined #asahi-gpu
23:03ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:04ransom has joined #asahi-gpu
23:39modwizcode has quit [Quit: Later]
23:56Lightsword has joined #asahi-gpu
…