2021-01-23
00:06danb91 has quit [Remote host closed the connection]
00:19Tokamak has joined #asahi-re
00:26danb91 has joined #asahi-re
00:31danb91 has quit [Ping timeout: 265 seconds]
00:38danb91 has joined #asahi-re
00:42danb91 has quit [Ping timeout: 240 seconds]
00:46Tokamak has quit [Read error: Connection reset by peer]
00:47Tokamak has joined #asahi-re
01:06hthh_i started looking at documenting the GPU ISA (note this is based on mtl-gpu-asmcheck): https://hthh.github.io/m1-gpu-re/
01:09Tokamak has quit [Ping timeout: 240 seconds]
01:11Tokamak has joined #asahi-re
01:17jcs has quit [Ping timeout: 240 seconds]
01:17jcs has joined #asahi-re
01:18danb91 has joined #asahi-re
01:23danb91 has quit [Ping timeout: 264 seconds]
01:49danb91 has joined #asahi-re
01:54danb91 has quit [Ping timeout: 260 seconds]
02:20danb91 has joined #asahi-re
02:24danb91 has quit [Ping timeout: 265 seconds]
03:00DragoonAethis has quit [Quit: hej-hej!]
03:01DragoonAethis has joined #asahi-re
03:06davidrysk[m]hthh_: those special registers seem similar to the grid/thread/block stuff that cuda and other gpu compute frameworks use
03:07davidrysk[m]I would not be surprised if they're used for that, e.g. threadgroup_position_in_grid.x always returns the appropriate value for the block in which you are currently executing in
03:31danb91 has joined #asahi-re
03:31taziden has quit [Ping timeout: 264 seconds]
03:36danb91 has quit [Ping timeout: 256 seconds]
03:43hthh_yeah, i think that's how it works - the SRx names are from mtl-gpu-asmcheck, and the other names are my attempt at mapping the attributes in the metal shading language back to them - not sure if it actually stands for "special register" though
03:51Necrosporus_ has joined #asahi-re
03:51Necrosporus is now known as Guest10337
03:51Guest10337 has quit [Read error: Connection reset by peer]
03:59danb91 has joined #asahi-re
04:11taziden has joined #asahi-re
04:14davidrysk[m]it's possible that the runtime populates them as needed
04:14davidrysk[m]but yeah more likely that the hardware does
04:15davidrysk[m]are there other instructions than those?
04:30danb91 has quit [Remote host closed the connection]
04:31danb91 has joined #asahi-re
04:35danb91 has quit [Ping timeout: 246 seconds]
04:44hthh_oh so many - unfortunately llvm considers each combination of opcode and output sizes to be a distinct instruction, so the reversing process is still very manual, either getting the compiler to generate opcodes from known code, or constructing it myself to run on the gpu and check its behavior
04:48hthh_(the hope is the operands stay pretty consistent and i can just write hardware tests to automate verification of my assumptions)
05:00marcanhthh_: make sure the documentation strictly documents the instructions, and not anything about what llvm does
05:00marcanas long as you write clean docs that we can use to write a clean-room implementation, this is valuable work
05:02danb91 has joined #asahi-re
05:03marcanalyssa has been doing this completely black-box up to this point, without any internal APIs; we ban outright decompilation of the GPU stack because it's just not needed; using internal APIs to get more information about the ISA is more of a grey area, but if it goes through clean-room docs that should be fine. let's keep it that way.
05:07danb91 has quit [Ping timeout: 264 seconds]
05:15hthh_sure, yeah, clean-room docs is my goal - i currently document what the compiler outputs in a few places, which isn't "just the instructions" but is what alyssa is looking at too - but yeah, i intend to clean it up a bit in that respect. (i'm also considering register names to be "facts" - lots of grey areas)
05:20marcanfor long-form register names, I would encourage you to make up your own interpretation about what they do and use that name
05:21marcanthis does mean that you should stay on that side of the clean room, so no contributing to Mesa please :)
05:23dumenci has joined #asahi-re
05:27hthh_sounds good, yeah - i won't be contributing code, and that's exactly what i've been doing for long-form names (mnemonics are also completely made up)
05:46dumenci has quit [Quit: Leaving]
05:58Tokamak has quit [Ping timeout: 264 seconds]
06:12browzing_ has joined #asahi-re
06:14browzing has quit [Ping timeout: 246 seconds]
06:46randohacker[m] has joined #asahi-re
07:00_whitelogger has joined #asahi-re
07:05maor26 has joined #asahi-re
07:12DanB91 has joined #asahi-re
07:16DanB91 has quit [Ping timeout: 256 seconds]
07:28tiagom has joined #asahi-re
07:38tiagom has quit [Quit: leaving]
07:40tiagom has joined #asahi-re
07:44ohnx has quit [Remote host closed the connection]
07:45ohnx has joined #asahi-re
07:52tiagom has quit [Quit: leaving]
07:52tiagom has joined #asahi-re
07:54Tokamak has joined #asahi-re
08:52ohnx has quit [Read error: Connection reset by peer]
09:04citruscitrus[m] has quit [*.net *.split]
09:04liur[m] has quit [*.net *.split]
09:04hypergenesis[m] has quit [*.net *.split]
09:04thecake21[m] has quit [*.net *.split]
09:04clayfreeman has quit [*.net *.split]
09:06clayfreeman has joined #asahi-re
09:06hypergenesis[m] has joined #asahi-re
09:06liur[m] has joined #asahi-re
09:06citruscitrus[m] has joined #asahi-re
09:06thecake21[m] has joined #asahi-re
09:09bakk[m] has quit [Ping timeout: 244 seconds]
09:09wolf511[m] has quit [Ping timeout: 244 seconds]
09:09hwatwasthat[m] has quit [Ping timeout: 244 seconds]
09:09brentr123[m] has quit [Ping timeout: 244 seconds]
09:09ah-[m] has quit [Ping timeout: 244 seconds]
09:10fl35[m] has quit [Ping timeout: 240 seconds]
09:10TellowKrinkle[m] has quit [Ping timeout: 240 seconds]
09:10bjornjulander[m] has quit [Ping timeout: 240 seconds]
09:10skillfulman23[m] has quit [Ping timeout: 240 seconds]
09:10asmon[m] has quit [Ping timeout: 240 seconds]
09:10nhlism[m] has quit [Ping timeout: 240 seconds]
09:10Jamie[m] has quit [Ping timeout: 240 seconds]
09:10jamesmunns[m] has quit [Ping timeout: 240 seconds]
09:10redbluescreen[m] has quit [Ping timeout: 240 seconds]
09:10svenpeter has quit [Ping timeout: 240 seconds]
09:10rootspring[m] has quit [Ping timeout: 243 seconds]
09:10fried_dede[m] has quit [Ping timeout: 243 seconds]
09:10reispflanze[m] has quit [Ping timeout: 243 seconds]
09:10jinen[m] has quit [Ping timeout: 243 seconds]
09:10rockinrobstar[m] has quit [Ping timeout: 243 seconds]
09:10khronokernel[m] has quit [Ping timeout: 243 seconds]
09:10shawnj2[m] has quit [Ping timeout: 243 seconds]
09:10bastilian has quit [Ping timeout: 243 seconds]
09:10DrGit[m] has quit [Ping timeout: 243 seconds]
09:10hipboi[m] has quit [Ping timeout: 243 seconds]
09:10ConeOfAttack[m] has quit [Ping timeout: 260 seconds]
09:10smist08[m] has quit [Ping timeout: 260 seconds]
09:10mellotron1[m] has quit [Ping timeout: 260 seconds]
09:10tarik02[m] has quit [Ping timeout: 260 seconds]
09:10emily has quit [Ping timeout: 243 seconds]
09:10blazra has quit [Ping timeout: 260 seconds]
09:10os[m] has quit [Ping timeout: 246 seconds]
09:10jevinskie[m] has quit [Ping timeout: 246 seconds]
09:10sumoon[m] has quit [Ping timeout: 246 seconds]
09:10ts170[m] has quit [Ping timeout: 246 seconds]
09:10mcnight[m] has quit [Ping timeout: 246 seconds]
09:10flokk[m] has quit [Ping timeout: 246 seconds]
09:10winocm has quit [Ping timeout: 246 seconds]
09:10nutmanja[m] has quit [Ping timeout: 246 seconds]
09:10josiahmendes[m] has quit [Ping timeout: 246 seconds]
09:10jrmuizel[m] has quit [Ping timeout: 265 seconds]
09:10ronyrus[m] has quit [Ping timeout: 265 seconds]
09:10mofux[m] has quit [Ping timeout: 265 seconds]
09:10nufflee[m] has quit [Ping timeout: 265 seconds]
09:10Bastian[m] has quit [Ping timeout: 265 seconds]
09:10davidrysk[m] has quit [Ping timeout: 260 seconds]
09:10Jasper[m] has quit [Ping timeout: 260 seconds]
09:10randohacker[m] has quit [Ping timeout: 268 seconds]
09:10iparaskev[m] has quit [Ping timeout: 268 seconds]
09:10delroth[m] has quit [Ping timeout: 268 seconds]
09:10xerpi[m] has quit [Ping timeout: 268 seconds]
09:10enverb[m] has quit [Ping timeout: 268 seconds]
09:10bylaws has quit [Ping timeout: 268 seconds]
09:10_alice has quit [Ping timeout: 268 seconds]
09:10konradybcio has quit [Ping timeout: 265 seconds]
09:13citruscitrus[m] has quit [Ping timeout: 258 seconds]
09:13hypergenesis[m] has quit [Ping timeout: 258 seconds]
09:13liur[m] has quit [Ping timeout: 258 seconds]
09:13thecake21[m] has quit [Ping timeout: 258 seconds]
09:20vimal has joined #asahi-re
09:21stemnic has quit [Quit: The Lounge - https://thelounge.chat]
09:38jrmuizel[m] has joined #asahi-re
09:38ronyrus[m] has joined #asahi-re
09:38Bastian[m] has joined #asahi-re
09:38konradybcio has joined #asahi-re
09:38mofux[m] has joined #asahi-re
09:38nufflee[m] has joined #asahi-re
09:39wolf511[m] has joined #asahi-re
09:39hwatwasthat[m] has joined #asahi-re
09:39brentr123[m] has joined #asahi-re
09:39ah-[m] has joined #asahi-re
09:39bakk[m] has joined #asahi-re
09:42emily has joined #asahi-re
09:44jamesmunns[m] has joined #asahi-re
09:44nhlism[m] has joined #asahi-re
09:44svenpeter has joined #asahi-re
09:44skillfulman23[m] has joined #asahi-re
09:44asmon[m] has joined #asahi-re
09:44TellowKrinkle[m] has joined #asahi-re
09:46bylaws has joined #asahi-re
09:46bjornjulander[m] has joined #asahi-re
09:46fl35[m] has joined #asahi-re
09:46Jamie[m] has joined #asahi-re
09:46redbluescreen[m] has joined #asahi-re
09:46enverb[m] has joined #asahi-re
09:46delroth[m] has joined #asahi-re
09:46xerpi[m] has joined #asahi-re
09:46iparaskev[m] has joined #asahi-re
09:46_alice has joined #asahi-re
09:46randohacker[m] has joined #asahi-re
09:47bastilian has joined #asahi-re
09:49Jasper[m] has joined #asahi-re
09:55TellowKrinkle[m] has quit [Ping timeout: 246 seconds]
09:55asmon[m] has quit [Ping timeout: 241 seconds]
09:55jrmuizel[m] has quit [Ping timeout: 241 seconds]
09:55nhlism[m] has quit [Ping timeout: 240 seconds]
09:55svenpeter has quit [Ping timeout: 240 seconds]
09:55emily has quit [Ping timeout: 240 seconds]
09:55nufflee[m] has quit [Ping timeout: 240 seconds]
09:55ronyrus[m] has quit [Ping timeout: 258 seconds]
09:55konradybcio has quit [Ping timeout: 258 seconds]
09:55Bastian[m] has quit [Ping timeout: 268 seconds]
09:55randohacker[m] has quit [Ping timeout: 265 seconds]
09:55jamesmunns[m] has quit [Ping timeout: 265 seconds]
09:55mofux[m] has quit [Ping timeout: 265 seconds]
09:55Jasper[m] has quit [Ping timeout: 260 seconds]
09:55skillfulman23[m] has quit [Ping timeout: 260 seconds]
09:55delroth[m] has quit [Ping timeout: 240 seconds]
09:55wolf511[m] has quit [Ping timeout: 240 seconds]
09:56_alice has quit [Ping timeout: 240 seconds]
09:56fl35[m] has quit [Ping timeout: 240 seconds]
09:56redbluescreen[m] has quit [Ping timeout: 240 seconds]
09:56brentr123[m] has quit [Ping timeout: 240 seconds]
09:56ah-[m] has quit [Ping timeout: 240 seconds]
09:56enverb[m] has quit [Ping timeout: 258 seconds]
09:56xerpi[m] has quit [Ping timeout: 258 seconds]
09:56bylaws has quit [Ping timeout: 258 seconds]
09:56bastilian has quit [Ping timeout: 265 seconds]
09:56bjornjulander[m] has quit [Ping timeout: 265 seconds]
09:56hwatwasthat[m] has quit [Ping timeout: 265 seconds]
09:56Jamie[m] has quit [Ping timeout: 260 seconds]
09:56iparaskev[m] has quit [Ping timeout: 260 seconds]
09:56bakk[m] has quit [Ping timeout: 268 seconds]
10:21davidrysk[m] has joined #asahi-re
10:35ryanhrob[m] has joined #asahi-re
10:48flokk[m] has joined #asahi-re
10:48hwatwasthat[m] has joined #asahi-re
10:48iparaskev[m] has joined #asahi-re
10:48khronokernel[m] has joined #asahi-re
10:48nutmanja[m] has joined #asahi-re
10:48mofux[m] has joined #asahi-re
10:48_alice has joined #asahi-re
10:48ts170[m] has joined #asahi-re
10:48bjornjulander[m] has joined #asahi-re
10:48redbluescreen[m] has joined #asahi-re
10:48blazra has joined #asahi-re
10:48bylaws has joined #asahi-re
10:48svenpeter has joined #asahi-re
10:48xerpi[m] has joined #asahi-re
10:48reispflanze[m] has joined #asahi-re
10:48ronyrus[m] has joined #asahi-re
10:48thecake21[m] has joined #asahi-re
10:48TellowKrinkle[m] has joined #asahi-re
10:48randohacker[m] has joined #asahi-re
10:48liur[m] has joined #asahi-re
10:48jevinskie[m] has joined #asahi-re
10:48brentr123[m] has joined #asahi-re
10:48enverb[m] has joined #asahi-re
10:48ah-[m] has joined #asahi-re
10:48DrGit[m] has joined #asahi-re
10:48fried_dede[m] has joined #asahi-re
10:48skillfulman23[m] has joined #asahi-re
10:48Bastian[m]1 has joined #asahi-re
10:48Jamie[m] has joined #asahi-re
10:48rockinrobstar[m] has joined #asahi-re
10:48sumoon[m] has joined #asahi-re
10:48bastilian has joined #asahi-re
10:48tarik02[m] has joined #asahi-re
10:48smist08[m] has joined #asahi-re
10:48hipboi[m] has joined #asahi-re
10:48josiahmendes[m] has joined #asahi-re
10:48nufflee[m] has joined #asahi-re
10:48asmon[m] has joined #asahi-re
10:48shawnj2[m] has joined #asahi-re
10:48citruscitrus[m] has joined #asahi-re
10:48Jasper[m] has joined #asahi-re
10:48hypergenesis[m] has joined #asahi-re
10:48mellotron1[m] has joined #asahi-re
10:48jamesmunns[m] has joined #asahi-re
10:48os[m] has joined #asahi-re
10:48konradybcio has joined #asahi-re
10:48rootspring[m] has joined #asahi-re
10:48mcnight[m] has joined #asahi-re
10:48delroth[m] has joined #asahi-re
10:48wolf511[m] has joined #asahi-re
10:48fl35[m] has joined #asahi-re
10:48bakk[m] has joined #asahi-re
10:48nhlism[m] has joined #asahi-re
10:48ConeOfAttack[m] has joined #asahi-re
10:48emily has joined #asahi-re
10:48winocm has joined #asahi-re
10:48jinen[m] has joined #asahi-re
10:48jrmuizel[m] has joined #asahi-re
10:55Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:15DanB91 has joined #asahi-re
14:00Bastian[m]1 is now known as Bastian[m]
14:19DanB91 has quit [Ping timeout: 272 seconds]
14:54_whitelogger has joined #asahi-re
16:28baryluk has joined #asahi-re
17:58vimal has quit [Remote host closed the connection]
17:59vimal has joined #asahi-re
18:02Tokamak has joined #asahi-re
18:11vimal has quit [Remote host closed the connection]
18:30zopieux has quit [Ping timeout: 260 seconds]
18:31zopieux has joined #asahi-re
18:48maor26 has quit [Remote host closed the connection]
18:49maor26 has joined #asahi-re
20:01DanB91 has joined #asahi-re
20:06DanB91 has quit [Ping timeout: 260 seconds]
20:43alula__ has joined #asahi-re
20:45vimal has joined #asahi-re
20:46alula_ has quit [Ping timeout: 240 seconds]
20:51vimal has quit [Remote host closed the connection]
20:52vimal has joined #asahi-re
20:54DanB91 has joined #asahi-re
20:58DanB91 has quit [Ping timeout: 246 seconds]
21:10vimal has quit [Remote host closed the connection]
21:11vimal has joined #asahi-re
22:27DanB91 has joined #asahi-re
22:30Tokamak has quit [Ping timeout: 260 seconds]
22:41DanB91 has quit [Remote host closed the connection]
22:48DanB91 has joined #asahi-re
22:55DanB91 has quit [Remote host closed the connection]
22:55DanB91 has joined #asahi-re
23:00DanB91 has quit [Ping timeout: 260 seconds]
23:02DanB91 has joined #asahi-re
23:05maor26 has quit [Ping timeout: 256 seconds]
23:08Tokamak has joined #asahi-re
23:15DanB91 has quit [Remote host closed the connection]
23:43tiagom has quit [Quit: leaving]
23:45chrisf has joined #asahi-re
23:48chrisf has left #asahi-re ["Leaving"]
23:56DanB91 has joined #asahi-re