#asahi-gpu · 2021-01-18 15:06
davidrysk[m](this might be more towards -re, but others have done the RE already and documented the API andpoints)#asahi-gpu · 2021-01-18 15:06
davidrysk[m]I'll have to disable entitlements and test#asahi-gpu · 2021-01-18 15:05
davidrysk[m]it basically involves opening the IOService for the framebuffer and using it#asahi-gpu · 2021-01-18 14:43
davidrysk[m]heh the consensus is that you need a private entitlement#asahi-gpu · 2021-01-18 05:22
davidrysk[m]but the buffer it returns seems meaningless#asahi-gpu · 2021-01-18 05:17
davidrysk[m]bloom: CGDisplayBaseAddress oddly does not return 0 on my machine#asahi-gpu · 2021-01-18 01:25
modwizcodeI'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.#asahi-gpu · 2021-01-18 01:25
bloommarcan: sorry ;P#asahi-gpu · 2021-01-18 01:25
bloomWell, yeah, the kernel part is totally uninteresting :p#asahi-gpu · 2021-01-18 01:25
bloomThe kernel (on linux or macos alike) provides the GPU equivalents of malloc/free and a "execute code at $ADDDRESS" and that's about it#asahi-gpu · 2021-01-18 01:25
modwizcodeNobody 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.#asahi-gpu · 2021-01-18 01:24
bloomyep#asahi-gpu · 2021-01-18 01:23
modwizcodeIt 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.#asahi-gpu · 2021-01-18 01:22
bloomi mean i'm used to sudo'ing random stuff to force things to owork but...#asahi-gpu · 2021-01-18 01:22
modwizcodenice, I would assume most stuff can be done that way.#asahi-gpu · 2021-01-18 01:21
bloomunprivileged user :)#asahi-gpu · 2021-01-18 01:21
modwizcodeHave you been able to do everything from userspace so far or are you writing kext stuff too?#asahi-gpu · 2021-01-18 01:20
bloomyeah :) I don't intend to install linux on the m1 until things are mature there#asahi-gpu · 2021-01-18 01:19
modwizcodeyeah I just wouldn't have thought about the fact that you can probably do a lot of stuff running from OS X still#asahi-gpu · 2021-01-18 01:19
bloom(TBH, if there was initiative, getting native opengl/x11 on intel macs via mesa wouldn't be so hard.)#asahi-gpu · 2021-01-18 01:18
bloom...for now ;)#asahi-gpu · 2021-01-18 01:18
bloomsoftware rendering only...#asahi-gpu · 2021-01-18 01:17
modwizcodeI didn't realize macports had mesa though that's neat#asahi-gpu · 2021-01-18 01:17
modwizcodeheh I should do that also#asahi-gpu · 2021-01-18 01:16
bloomit'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 :>#asahi-gpu · 2021-01-18 01:16
davidrysk[m]note that they are applying a couple of patches#asahi-gpu · 2021-01-18 01:16
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)#asahi-gpu · 2021-01-18 01:15
bloombwah#asahi-gpu · 2021-01-18 01:10
davidrysk[m]install macports native#asahi-gpu · 2021-01-18 01:10
davidrysk[m]don't install rosetta!#asahi-gpu · 2021-01-18 01:10
bloomis resisting installing rosetta :p#asahi-gpu · 2021-01-18 01:09
davidrysk[m]yeah there's a `mesa` port#asahi-gpu · 2021-01-18 01:09
davidrysk[m]iirc it's the `xorg-server` port#asahi-gpu · 2021-01-18 01:08
davidrysk[m](and it's probably easier to overlay mesa on that one anyway)#asahi-gpu · 2021-01-18 01:08
davidrysk[m]the one I have installed from macports does work#asahi-gpu · 2021-01-18 01:07
bloombut that'll probably be solved soon :)#asahi-gpu · 2021-01-18 01:07
bloomdavidrysk[m]: hitting https://github.com/XQuartz/XQuartz/issues/29#asahi-gpu · 2021-01-18 00:54
bloom(don't.. don't ask how we do it on android)#asahi-gpu · 2021-01-18 00:54
bloomif we can do it on Android, we can do it on mac way easier ;)#asahi-gpu · 2021-01-18 00:53
bloompresumably I can overlay my own mesa onto the release anyway#asahi-gpu · 2021-01-18 00:53
davidrysk[m](or installing pre-built packages from macports)#asahi-gpu · 2021-01-18 00:53
bloomso it is, thank you :)#asahi-gpu · 2021-01-18 00:53
davidrysk[m]compiling the components it comes with via macports is easier#asahi-gpu · 2021-01-18 00:53
davidrysk[m]compiling xquartz is painful#asahi-gpu · 2021-01-18 00:52
davidrysk[m]it's here#asahi-gpu · 2021-01-18 00:52
davidrysk[m]https://www.xquartz.org/releases/index.html#asahi-gpu · 2021-01-18 00:52
davidrysk[m]hang on#asahi-gpu · 2021-01-18 00:52
davidrysk[m]hm, prerelease?#asahi-gpu · 2021-01-18 00:50
bloomso I guess I get to compile xquartz..