marcan changed the topic of #asahi-gpu to: Asahi Linux: porting Linux to Apple Silicon macs | GPU / 3D graphics stack black-box RE and development (NO binary reversing) | Keep things on topic | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-gpu
<davidrysk[m]> bloom: typically when Apple removes stuff from headers but the symbols are there you can use old API headers and things *might* still work
<bloom> davidrysk[m]: right, but in this case the API had to be removed since the gfx stack was fundamentally rearchitectured at some point
<bloom> it's a good technical decision
<bloom> just inconveniences me and my obscure use case :p
<bloom> Easiest is probably setting up Xquartz tbh
<davidrysk[m]> bloom: I see you're not in -re -- is using nm or class-dump to dump header data considered RE?
<davidrysk[m]> also the "official" way to set up Xquartz native on ARM is via macports
<bloom> davidrysk[m]: That's definitely r/e, the better question is whether it meets the userspace 3d policy
<bloom> to which the answer is a big "i'm not a lawyer 🤷"
<davidrysk[m]> (basically finding exported symbols and using them)
<davidrysk[m]> (or using symbols that exist for backwards compatibility)
<bloom> I mean
<bloom> Let's just say it's hard not to see the full list of symbols if you're debugging a Metal app :p
<bloom> (IOGPU shows up in random places :p)
<bloom> "the currnet prerelease version has native arm64 support"
<bloom> so I guess I get to compile xquartz..
<davidrysk[m]> hm, prerelease?
<davidrysk[m]> hang on
<davidrysk[m]> it's here
<davidrysk[m]> compiling xquartz is painful
<davidrysk[m]> compiling the components it comes with via macports is easier
<bloom> so it is, thank you :)
<davidrysk[m]> (or installing pre-built packages from macports)
<bloom> presumably I can overlay my own mesa onto the release anyway
<bloom> if we can do it on Android, we can do it on mac way easier ;)
<bloom> (don't.. don't ask how we do it on android)
<bloom> davidrysk[m]: hitting https://github.com/XQuartz/XQuartz/issues/29
<bloom> but that'll probably be solved soon :)
<davidrysk[m]> the one I have installed from macports does work
<davidrysk[m]> (and it's probably easier to overlay mesa on that one anyway)
<davidrysk[m]> iirc it's the `xorg-server` port
<davidrysk[m]> yeah there's a `mesa` port
* bloom is resisting installing rosetta :p
<davidrysk[m]> don't install rosetta!
<davidrysk[m]> install macports native
<bloom> bwah
<davidrysk[m]> if you want to rebuild the mesa that macports uses, either `port edit mesa` as needed, or `port uninstall mesa` then install your version in /opt/local (or your desired macports prefix)
<davidrysk[m]> note that they are applying a couple of patches
<bloom> it's time for me to page macos out of my brain and page school+mali back in, so hopefully by the next time I have time for m1'ing the issue's fixed :>
<modwizcode> heh I should do that also
<modwizcode> I didn't realize macports had mesa though that's neat
<bloom> software rendering only...
<bloom> ...for now ;)
<bloom> (TBH, if there was initiative, getting native opengl/x11 on intel macs via mesa wouldn't be so hard.)
<modwizcode> yeah I just wouldn't have thought about the fact that you can probably do a lot of stuff running from OS X still
<bloom> yeah :) I don't intend to install linux on the m1 until things are mature there
<modwizcode> Have you been able to do everything from userspace so far or are you writing kext stuff too?
<bloom> unprivileged user :)
<modwizcode> nice, I would assume most stuff can be done that way.
<bloom> i mean i'm used to sudo'ing random stuff to force things to owork but...
<modwizcode> It took me... an embarassingly long amount of time to realize that most of graphics stuff is essentially just a library that converts graphics into gpu instructions and knows what the format for the exposed command buffers and such are.
<bloom> yep
<modwizcode> Nobody seems to actually talk about gpus like that for some reason. "Graphics drivers" mostly refers to the library part which does all the work, not the kernel part that proxies access to the hardware :p.
<bloom> The kernel (on linux or macos alike) provides the GPU equivalents of malloc/free and a "execute code at $ADDDRESS" and that's about it
<bloom> Well, yeah, the kernel part is totally uninteresting :p
<bloom> marcan: sorry ;P
<modwizcode> I've been meaning to write (or find so I can add it to links) a post about it someday so someone else doesn't spend hours trying to understand the source only to realize that's not where the work is.
Necrosporus has quit [Ping timeout: 264 seconds]
Necrosporus has joined #asahi-gpu
Tokamak has joined #asahi-gpu
modwizcode has quit [Quit: Later]
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tokamak has joined #asahi-gpu
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tokamak has joined #asahi-gpu
<davidrysk[m]> bloom: CGDisplayBaseAddress oddly does not return 0 on my machine
<davidrysk[m]> but the buffer it returns seems meaningless
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
riatre has joined #asahi-gpu
Tokamak has joined #asahi-gpu
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #asahi-gpu
linkmauve has left #asahi-gpu ["Disconnected: closed"]
mogery has joined #asahi-gpu
Necrosporus has quit [Read error: Connection reset by peer]
Necrosporus has joined #asahi-gpu
Tokamak has joined #asahi-gpu
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mogery has quit [Quit: Leaving]
mogery has joined #asahi-gpu
mogery has quit [Client Quit]
mogery has joined #asahi-gpu
<bloom> 🤷
jobbe has quit [Quit: Ping timeout (120 seconds)]
jobbe has joined #asahi-gpu
yrlf has quit [*.net *.split]
Ziemas has quit [*.net *.split]
fried_dede[m] has quit [*.net *.split]
imobilis has quit [*.net *.split]
Raqbit has quit [*.net *.split]
DragoonAethis has quit [*.net *.split]
os[m] has quit [*.net *.split]
yrlf has joined #asahi-gpu
os[m] has joined #asahi-gpu
DragoonAethis has joined #asahi-gpu
Ziemas has joined #asahi-gpu
fried_dede[m] has joined #asahi-gpu
Raqbit has joined #asahi-gpu
imobilis has joined #asahi-gpu
os[m] has quit [Ping timeout: 246 seconds]
emily has quit [Ping timeout: 240 seconds]
tarik02[m] has quit [Ping timeout: 240 seconds]
flokk[m] has quit [Ping timeout: 240 seconds]
Jasper[m] has quit [Ping timeout: 240 seconds]
fried_dede[m] has quit [Ping timeout: 246 seconds]
icecream95 has quit [Ping timeout: 244 seconds]
davidrysk[m] has quit [Ping timeout: 244 seconds]
hipboi[m] has quit [Ping timeout: 244 seconds]
undvasistas[m] has quit [Ping timeout: 244 seconds]
khronokernel[m] has quit [Ping timeout: 244 seconds]
devinvs[m] has quit [Ping timeout: 244 seconds]
jsvcycling[m] has quit [Ping timeout: 244 seconds]
asmon[m] has quit [Ping timeout: 258 seconds]
nufflee[m] has quit [Ping timeout: 258 seconds]
jinen[m] has quit [Ping timeout: 258 seconds]
sumoon[m] has quit [Ping timeout: 258 seconds]
blazra has quit [Ping timeout: 258 seconds]
svenpeter has quit [Ping timeout: 258 seconds]
_alice has quit [Ping timeout: 258 seconds]
xerpi[m] has quit [Ping timeout: 240 seconds]
crafteck[m] has quit [Ping timeout: 240 seconds]
ah-[m] has quit [Ping timeout: 264 seconds]
konradybcio has quit [Ping timeout: 264 seconds]
nutmanja[m] has quit [Ping timeout: 258 seconds]
brentr123[m] has quit [Ping timeout: 258 seconds]
Akhil[m] has quit [Ping timeout: 244 seconds]
mellotron1[m] has quit [Ping timeout: 268 seconds]
wolf511[m] has quit [Ping timeout: 268 seconds]
mofux[m] has quit [Ping timeout: 240 seconds]
ts170[m] has quit [Ping timeout: 240 seconds]
shawnj2[m] has quit [Ping timeout: 240 seconds]
fl35[m] has quit [Ping timeout: 240 seconds]
bjornjulander[m] has quit [Ping timeout: 240 seconds]
josiahmendes[m] has quit [Ping timeout: 240 seconds]
bylaws has quit [Ping timeout: 240 seconds]
Bastian[m] has quit [Ping timeout: 240 seconds]
nhlism[m] has quit [Ping timeout: 244 seconds]
hypergenesis[m] has quit [Ping timeout: 244 seconds]
Jamie[m] has quit [Ping timeout: 244 seconds]
thecake21[m] has quit [Ping timeout: 244 seconds]
reispflanze[m] has quit [Ping timeout: 244 seconds]
TellowKrinkle[m] has quit [Ping timeout: 244 seconds]
jevinskie[m] has quit [Ping timeout: 240 seconds]
redbluescreen[m] has quit [Ping timeout: 240 seconds]
skillfulman23[m] has quit [Ping timeout: 240 seconds]
ConeOfAttack[m] has quit [Ping timeout: 240 seconds]
winocm has quit [Ping timeout: 240 seconds]
Standemonium[m] has quit [Ping timeout: 240 seconds]
smist08[m] has quit [Ping timeout: 240 seconds]
ronyrus[m] has quit [Ping timeout: 240 seconds]
mcnight[m] has quit [Ping timeout: 240 seconds]
enverb[m] has quit [Ping timeout: 240 seconds]
delroth[m] has quit [Ping timeout: 240 seconds]
bakk[m] has quit [Ping timeout: 258 seconds]
jrmuizel[m] has quit [Ping timeout: 268 seconds]
snalty has joined #asahi-gpu
konradybcio has joined #asahi-gpu
konradybcio has quit [Ping timeout: 240 seconds]
os[m] has joined #asahi-gpu
fried_dede[m] has joined #asahi-gpu
hypergenesis[m] has joined #asahi-gpu
blazra has joined #asahi-gpu
davidrysk[m] has joined #asahi-gpu
nufflee[m] has joined #asahi-gpu
sumoon[m] has joined #asahi-gpu
svenpeter has joined #asahi-gpu
asmon[m] has joined #asahi-gpu
jinen[m] has joined #asahi-gpu
bakk[m] has joined #asahi-gpu
nutmanja[m] has joined #asahi-gpu
nhlism[m] has joined #asahi-gpu
brentr123[m] has joined #asahi-gpu
khronokernel[m] has joined #asahi-gpu
devinvs[m] has joined #asahi-gpu
TellowKrinkle[m] has joined #asahi-gpu
_alice has joined #asahi-gpu
reispflanze[m] has joined #asahi-gpu
Jamie[m] has joined #asahi-gpu
jsvcycling[m] has joined #asahi-gpu
Akhil[m] has joined #asahi-gpu
hipboi[m] has joined #asahi-gpu
thecake21[m] has joined #asahi-gpu
icecream95 has joined #asahi-gpu
undvasistas[m] has joined #asahi-gpu
ts170[m] has joined #asahi-gpu
fl35[m] has joined #asahi-gpu
flokk[m] has joined #asahi-gpu
bjornjulander[m] has joined #asahi-gpu
Bastian[m] has joined #asahi-gpu
mofux[m] has joined #asahi-gpu
tarik02[m] has joined #asahi-gpu
xerpi[m] has joined #asahi-gpu
shawnj2[m] has joined #asahi-gpu
bylaws has joined #asahi-gpu
jrmuizel[m] has joined #asahi-gpu
wolf511[m] has joined #asahi-gpu
Jasper[m] has joined #asahi-gpu
mellotron1[m] has joined #asahi-gpu
emily has joined #asahi-gpu
Standemonium[m] has joined #asahi-gpu
redbluescreen[m] has joined #asahi-gpu
skillfulman23[m] has joined #asahi-gpu
ConeOfAttack[m] has joined #asahi-gpu
enverb[m] has joined #asahi-gpu
mcnight[m] has joined #asahi-gpu
ronyrus[m] has joined #asahi-gpu
delroth[m] has joined #asahi-gpu
winocm has joined #asahi-gpu
smist08[m] has joined #asahi-gpu
jevinskie[m] has joined #asahi-gpu
crafteck[m] has joined #asahi-gpu
ah-[m] has joined #asahi-gpu
josiahmendes[m] has joined #asahi-gpu
konradybcio has joined #asahi-gpu
<davidrysk[m]> heh the consensus is that you need a private entitlement
<davidrysk[m]> it basically involves opening the IOService for the framebuffer and using it
<davidrysk[m]> I'll have to disable entitlements and test
<davidrysk[m]> (this might be more towards -re, but others have done the RE already and documented the API andpoints)
jamadazi has joined #asahi-gpu
<bloom> have fun :p
modwizcode has joined #asahi-gpu
jix has quit [Ping timeout: 260 seconds]
mogeryy has joined #asahi-gpu
bloom has quit [Ping timeout: 256 seconds]
bloom has joined #asahi-gpu
mogery has quit [Ping timeout: 256 seconds]
Axenntio has joined #asahi-gpu
Axenntio has quit [Quit: Leaving]
Tokamak has joined #asahi-gpu
snalty has quit [Read error: Connection reset by peer]
linkmauve has joined #asahi-gpu
klaus has joined #asahi-gpu
klaus has quit [Client Quit]
jix has joined #asahi-gpu
jamadazi has quit [Ping timeout: 260 seconds]
jamadazi has joined #asahi-gpu
mogeryy has quit [Quit: Leaving]
Tokamak has quit [Ping timeout: 256 seconds]
Tokamak has joined #asahi-gpu
Tokamak has quit [Ping timeout: 240 seconds]
Tokamak has joined #asahi-gpu
linkmauve has quit [Ping timeout: 256 seconds]