#
#asahi-gpu · 2021-03-17 18:36
morelightning[m]OH okay. So we are saying all the calls are eventually going through IOKit?
#asahi-gpu · 2021-03-17 18:35
chrisfthe wrapper intercepts the IOKit calls to the kernel driver
#asahi-gpu · 2021-03-17 18:35
morelightning[m]I skimmed through Alyssa's code on github briefly, but maybe I missed that part, unless thats part of the wrapper thing. It wasn't so clear whether it was to run on the Mac or linux.
#asahi-gpu · 2021-03-17 18:29
chrisfmorelightning[m]: all inside mac os
#asahi-gpu · 2021-03-17 18:28
DarkShadow4444ah I found the object code sample ^^good, since I don't know metal myself (yet)
#asahi-gpu · 2021-03-17 18:28
morelightning[m]Do you mean the intercepting is done inside Mac OS then? Where is that toolset at?
#asahi-gpu · 2021-03-17 18:26
chrisfyou run them :)
#asahi-gpu · 2021-03-17 18:26
DarkShadow4444chrisf: That should give most bit structures, but how to find out what the instructions actually do without running them?
#asahi-gpu · 2021-03-17 18:25
chrisfmorelightning[m]: everything so far is done by intercepting between the userspace driver (which does the "metal" stuff) and the kext
#asahi-gpu · 2021-03-17 18:19
morelightning[m](And can we do it on the Mac OS side first by replacing the kext or something? I feel like doing it directly in linux would be unwieldy.
#asahi-gpu · 2021-03-17 18:19
morelightning[m]I have an M1 and know the surface of Metal really well, but I don't know much about how to go about figuring out the command stream either. What tools are you guys using to look at it?
#asahi-gpu · 2021-03-17 18:16
chrisfpretty much. dougall has some other tricks, but ^ works.
#asahi-gpu · 2021-03-17 18:15
DarkShadow4444Just compiling shaders and looking what the binary result is?
#asahi-gpu · 2021-03-17 18:15
DarkShadow4444Is there a process on how these known instructions are found out?
#asahi-gpu · 2021-03-17 18:13
chrisfwe also need to reverse the bulk of the command stream structures. `demo` in the gpu repo has a lot of mysterious stuff in it still
#asahi-gpu · 2021-03-17 18:12
DarkShadow4444I should be getting it soon
#asahi-gpu · 2021-03-17 18:11
chrisfhave you got an M1 to poke at?
#asahi-gpu · 2021-03-17 18:11
chrisfauthor is here in the channel :)
#asahi-gpu · 2021-03-17 18:10
chrisfDarkShadow4444: one big area of useful things would be to help dougall flesh out the missing pieces
#asahi-gpu · 2021-03-17 18:10
DarkShadow4444chrisf: Yeah I found that site as well, though I didn't read through all the operands. Does the author work with asahi as well?
#asahi-gpu · 2021-03-17 18:08
chrisfDarkShadow4444: https://dougallj.github.io/applegpu/docs.html
#asahi-gpu · 2021-03-17 18:08
DarkShadow4444jn__: Yes, I've read the progress report, "Dissecting the Apple M1 GPU" part1/2 and looked at the gpu repository
#asahi-gpu · 2021-03-17 18:06
jn__DarkShadow4444: i suppose you've read the relevant Asahi documentation, and interesting blog posts already?
#asahi-gpu · 2021-03-17 18:05
chrisfdougall: any chance you could fill out the device_load etc docs a bit more? there's clearly a bunch of stuff rattling around in your head only, about typed loads etc
#asahi-gpu · 2021-03-17 18:05
jn__bloom: ^
#asahi-gpu · 2021-03-17 17:59
DarkShadow4444I've got background in blackbox RE and development though (wine), tips on how I would get started contributing? Small first tasks for something like that?
#asahi-gpu · 2021-03-17 17:59
DarkShadow4444Hello there, I don't have a lot experience in GPU development, but I'd be interested in helping your reverse engineering efforts.
#asahi-gpu · 2021-03-13 17:57
bloomI'm honestly unsure what all this extra state could be.
#asahi-gpu · 2021-03-13 17:47
bloomand the cmdbuf of compute shaders is an order of magnitude simpler than graphics
#asahi-gpu · 2021-03-13 17:47
bloomI know dougall_ has a pile of hacks to do this abusing Metal, would be nice to have it native.
#asahi-gpu · 2021-03-13 17:46
bloomStudying the cmdstream of compute shaders, aiming for a nice utility to run binaries on the hardware
#asahi-gpu · 2021-03-13 17:45
jn__yay
#asahi-gpu · 2021-03-13 17:45
j`eyyay
#asahi-gpu · 2021-03-13 17:44
bloommaking forward progress agin
#asahi-gpu · 2021-03-13 17:21
bloomSo my metal app no longer works >_>
#asahi-gpu · 2021-03-13 16:42
bloom(...or my password)
#asahi-gpu · 2021-03-13 16:31
bloomor remember my current network topology for that matter
#asahi-gpu · 2021-03-13 16:29
bloomLet's see if i remember how to use macOS after a month or two
#asahi-gpu · 2021-03-13 14:53
bloom(not compatible)
#asahi-gpu · 2021-03-13 14:53
bloomLooks like no.
#asahi-gpu · 2021-03-12 17:16
bloomRandom question someone here might know - does the LLVM produced from the standalone metal compiler require apple-isms or is it compatible with what upstream llvm-spirv can ingest?
#asahi-gpu · 2021-03-03 05:18
AkihikoOdaki[m]Here are some details about running Virgil 3D on macOS (and other QEMU things): https://gist.github.com/akihikodaki/87df4149e7ca87f18dc56807ec5a1bc5
#asahi-gpu · 2021-03-03 05:16
AkihikoOdaki[m]sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/YWBwLWprYUhFaItVMwmuWIwP/message.txt >
#asahi-gpu · 2021-02-21 00:59
bloomExactly
#asahi-gpu · 2021-02-21 00:30
irradiated_lemmilol fair. cant have a buggy app if theres no way for users to report bugs (kidding)
#asahi-gpu · 2021-02-21 00:28
opticrona dangerous precedent to set
#asahi-gpu · 2021-02-21 00:28
bloomHaving issues turned on means people might report issues...
#asahi-gpu · 2021-02-20 20:51
irradiated_lemmiWas just curious since i wanted to report that the whole repo has no LICENSE file, but some files in it seem to have an MIT licence text in a comment at the top of the file
#asahi-gpu · 2021-02-20 20:51
irradiated_lemmihello, is there a reason the https://github.com/AsahiLinux/gpu repo has issues turned off?
#asahi-gpu · 2021-02-16 01:38
dougallYeah, I get that - no pressure at all!

plus ›