2021-01-18
00:39davidrysk[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
00:41bloomdavidrysk[m]: right, but in this case the API had to be removed since the gfx stack was fundamentally rearchitectured at some point
00:43davidrysk[m]bloom: I see you're not in -re -- is using nm or class-dump to dump header data considered RE?
00:44davidrysk[m]also the "official" way to set up Xquartz native on ARM is via macports
00:44bloomdavidrysk[m]: That's definitely r/e, the better question is whether it meets the userspace 3d policy
00:44davidrysk[m](basically finding exported symbols and using them)
00:44davidrysk[m](or using symbols that exist for backwards compatibility)
00:45bloomLet's just say it's hard not to see the full list of symbols if you're debugging a Metal app :p
00:52davidrysk[m]hm, prerelease?
00:52davidrysk[m]hang on
00:52davidrysk[m]it's here
00:53davidrysk[m]compiling xquartz is painful
00:53davidrysk[m]compiling the components it comes with via macports is easier
00:53davidrysk[m](or installing pre-built packages from macports)
01:08davidrysk[m]the one I have installed from macports does work
01:08davidrysk[m](and it's probably easier to overlay mesa on that one anyway)
01:09davidrysk[m]iirc it's the `xorg-server` port
01:09davidrysk[m]yeah there's a `mesa` port
01:10davidrysk[m]don't install rosetta!
01:10davidrysk[m]install macports native
01:16davidrysk[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)
01:16davidrysk[m]note that they are applying a couple of patches
01:16bloomit'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 :>
01:17modwizcodeheh I should do that also
01:17modwizcodeI didn't realize macports had mesa though that's neat
01:19bloom(TBH, if there was initiative, getting native opengl/x11 on intel macs via mesa wouldn't be so hard.)
01:19modwizcodeyeah I just wouldn't have thought about the fact that you can probably do a lot of stuff running from OS X still
01:21modwizcodeHave you been able to do everything from userspace so far or are you writing kext stuff too?
01:22modwizcodenice, I would assume most stuff can be done that way.
01:23modwizcodeIt 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.
01:25modwizcodeNobody 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.
01:25bloomThe kernel (on linux or macos alike) provides the GPU equivalents of malloc/free and a "execute code at $ADDDRESS" and that's about it
01:25modwizcodeI'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.
02:19Necrosporus has quit [Ping timeout: 264 seconds]
02:32Necrosporus has joined #asahi-gpu
03:51Tokamak has joined #asahi-gpu
03:51modwizcode has quit [Quit: Later]
04:09Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
04:33Tokamak has joined #asahi-gpu
04:48Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:11Tokamak has joined #asahi-gpu
05:17davidrysk[m]bloom: CGDisplayBaseAddress oddly does not return 0 on my machine
05:22davidrysk[m]but the buffer it returns seems meaningless
05:44Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:36riatre has joined #asahi-gpu
06:44Tokamak has joined #asahi-gpu
08:15Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:30_whitelogger has joined #asahi-gpu
08:47linkmauve has left #asahi-gpu ["Disconnected: closed"]
09:02mogery has joined #asahi-gpu
09:48Necrosporus has quit [Read error: Connection reset by peer]
09:48Necrosporus has joined #asahi-gpu
10:33Tokamak has joined #asahi-gpu
11:07Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:47mogery has quit [Quit: Leaving]
11:47mogery has joined #asahi-gpu
11:48mogery has quit [Client Quit]
11:48mogery has joined #asahi-gpu
12:46jobbe has quit [Quit: Ping timeout (120 seconds)]
12:46jobbe has joined #asahi-gpu
12:56yrlf has quit [*.net *.split]
12:56Ziemas has quit [*.net *.split]
12:56fried_dede[m] has quit [*.net *.split]
12:56imobilis has quit [*.net *.split]
12:56Raqbit has quit [*.net *.split]
12:56DragoonAethis has quit [*.net *.split]
12:56os[m] has quit [*.net *.split]
12:59yrlf has joined #asahi-gpu
12:59os[m] has joined #asahi-gpu
12:59DragoonAethis has joined #asahi-gpu
12:59Ziemas has joined #asahi-gpu
12:59fried_dede[m] has joined #asahi-gpu
12:59Raqbit has joined #asahi-gpu
12:59imobilis has joined #asahi-gpu
13:02os[m] has quit [Ping timeout: 246 seconds]
13:03emily has quit [Ping timeout: 240 seconds]
13:03tarik02[m] has quit [Ping timeout: 240 seconds]
13:03flokk[m] has quit [Ping timeout: 240 seconds]
13:03Jasper[m] has quit [Ping timeout: 240 seconds]
13:03fried_dede[m] has quit [Ping timeout: 246 seconds]
13:03icecream95 has quit [Ping timeout: 244 seconds]
13:03davidrysk[m] has quit [Ping timeout: 244 seconds]
13:03hipboi[m] has quit [Ping timeout: 244 seconds]
13:03undvasistas[m] has quit [Ping timeout: 244 seconds]
13:03khronokernel[m] has quit [Ping timeout: 244 seconds]
13:03devinvs[m] has quit [Ping timeout: 244 seconds]
13:03jsvcycling[m] has quit [Ping timeout: 244 seconds]
13:03asmon[m] has quit [Ping timeout: 258 seconds]
13:03nufflee[m] has quit [Ping timeout: 258 seconds]
13:03jinen[m] has quit [Ping timeout: 258 seconds]
13:03sumoon[m] has quit [Ping timeout: 258 seconds]
13:03blazra has quit [Ping timeout: 258 seconds]
13:03svenpeter has quit [Ping timeout: 258 seconds]
13:03_alice has quit [Ping timeout: 258 seconds]
13:03xerpi[m] has quit [Ping timeout: 240 seconds]
13:03crafteck[m] has quit [Ping timeout: 240 seconds]
13:03ah-[m] has quit [Ping timeout: 264 seconds]
13:03konradybcio has quit [Ping timeout: 264 seconds]
13:03nutmanja[m] has quit [Ping timeout: 258 seconds]
13:03brentr123[m] has quit [Ping timeout: 258 seconds]
13:03Akhil[m] has quit [Ping timeout: 244 seconds]
13:03mellotron1[m] has quit [Ping timeout: 268 seconds]
13:03wolf511[m] has quit [Ping timeout: 268 seconds]
13:05mofux[m] has quit [Ping timeout: 240 seconds]
13:05ts170[m] has quit [Ping timeout: 240 seconds]
13:05shawnj2[m] has quit [Ping timeout: 240 seconds]
13:05fl35[m] has quit [Ping timeout: 240 seconds]
13:05bjornjulander[m] has quit [Ping timeout: 240 seconds]
13:05josiahmendes[m] has quit [Ping timeout: 240 seconds]
13:05bylaws has quit [Ping timeout: 240 seconds]
13:05Bastian[m] has quit [Ping timeout: 240 seconds]
13:05nhlism[m] has quit [Ping timeout: 244 seconds]
13:05hypergenesis[m] has quit [Ping timeout: 244 seconds]
13:05Jamie[m] has quit [Ping timeout: 244 seconds]
13:05thecake21[m] has quit [Ping timeout: 244 seconds]
13:05reispflanze[m] has quit [Ping timeout: 244 seconds]
13:05TellowKrinkle[m] has quit [Ping timeout: 244 seconds]
13:05jevinskie[m] has quit [Ping timeout: 240 seconds]
13:05redbluescreen[m] has quit [Ping timeout: 240 seconds]
13:05skillfulman23[m] has quit [Ping timeout: 240 seconds]
13:05ConeOfAttack[m] has quit [Ping timeout: 240 seconds]
13:05winocm has quit [Ping timeout: 240 seconds]
13:05Standemonium[m] has quit [Ping timeout: 240 seconds]
13:05smist08[m] has quit [Ping timeout: 240 seconds]
13:05ronyrus[m] has quit [Ping timeout: 240 seconds]
13:05mcnight[m] has quit [Ping timeout: 240 seconds]
13:05enverb[m] has quit [Ping timeout: 240 seconds]
13:05delroth[m] has quit [Ping timeout: 240 seconds]
13:05bakk[m] has quit [Ping timeout: 258 seconds]
13:05jrmuizel[m] has quit [Ping timeout: 268 seconds]
13:12snalty has joined #asahi-gpu
13:19konradybcio has joined #asahi-gpu
13:35konradybcio has quit [Ping timeout: 240 seconds]
13:53os[m] has joined #asahi-gpu
13:53fried_dede[m] has joined #asahi-gpu
13:54hypergenesis[m] has joined #asahi-gpu
13:54blazra has joined #asahi-gpu
13:54davidrysk[m] has joined #asahi-gpu
13:55nufflee[m] has joined #asahi-gpu
13:55sumoon[m] has joined #asahi-gpu
13:55svenpeter has joined #asahi-gpu
13:55asmon[m] has joined #asahi-gpu
13:55jinen[m] has joined #asahi-gpu
13:55bakk[m] has joined #asahi-gpu
13:55nutmanja[m] has joined #asahi-gpu
13:55nhlism[m] has joined #asahi-gpu
13:55brentr123[m] has joined #asahi-gpu
13:55khronokernel[m] has joined #asahi-gpu
13:55devinvs[m] has joined #asahi-gpu
13:55TellowKrinkle[m] has joined #asahi-gpu
13:55_alice has joined #asahi-gpu
13:55reispflanze[m] has joined #asahi-gpu
13:55Jamie[m] has joined #asahi-gpu
13:55jsvcycling[m] has joined #asahi-gpu
13:55Akhil[m] has joined #asahi-gpu
13:55hipboi[m] has joined #asahi-gpu
13:55thecake21[m] has joined #asahi-gpu
13:55icecream95 has joined #asahi-gpu
13:55undvasistas[m] has joined #asahi-gpu
13:56ts170[m] has joined #asahi-gpu
13:56fl35[m] has joined #asahi-gpu
13:56flokk[m] has joined #asahi-gpu
13:56bjornjulander[m] has joined #asahi-gpu
13:56Bastian[m] has joined #asahi-gpu
13:56mofux[m] has joined #asahi-gpu
13:56tarik02[m] has joined #asahi-gpu
13:56xerpi[m] has joined #asahi-gpu
13:56shawnj2[m] has joined #asahi-gpu
13:56bylaws has joined #asahi-gpu
13:56jrmuizel[m] has joined #asahi-gpu
13:56wolf511[m] has joined #asahi-gpu
13:56Jasper[m] has joined #asahi-gpu
13:56mellotron1[m] has joined #asahi-gpu
13:56emily has joined #asahi-gpu
13:56Standemonium[m] has joined #asahi-gpu
13:56redbluescreen[m] has joined #asahi-gpu
13:56skillfulman23[m] has joined #asahi-gpu
13:56ConeOfAttack[m] has joined #asahi-gpu
13:56enverb[m] has joined #asahi-gpu
13:56mcnight[m] has joined #asahi-gpu
13:56ronyrus[m] has joined #asahi-gpu
13:56delroth[m] has joined #asahi-gpu
13:56winocm has joined #asahi-gpu
13:56smist08[m] has joined #asahi-gpu
13:57jevinskie[m] has joined #asahi-gpu
13:58crafteck[m] has joined #asahi-gpu
13:59ah-[m] has joined #asahi-gpu
14:01josiahmendes[m] has joined #asahi-gpu
14:03konradybcio has joined #asahi-gpu
14:43davidrysk[m]heh the consensus is that you need a private entitlement
15:05davidrysk[m]it basically involves opening the IOService for the framebuffer and using it
15:06davidrysk[m]I'll have to disable entitlements and test
15:06davidrysk[m](this might be more towards -re, but others have done the RE already and documented the API andpoints)
15:33jamadazi has joined #asahi-gpu
16:18modwizcode has joined #asahi-gpu
16:24jix has quit [Ping timeout: 260 seconds]
16:42mogeryy has joined #asahi-gpu
16:44bloom has quit [Ping timeout: 256 seconds]
16:44bloom has joined #asahi-gpu
16:45mogery has quit [Ping timeout: 256 seconds]
16:51Axenntio has joined #asahi-gpu
17:23Axenntio has quit [Quit: Leaving]
18:00Tokamak has joined #asahi-gpu
18:31snalty has quit [Read error: Connection reset by peer]
18:39linkmauve has joined #asahi-gpu
19:46klaus has joined #asahi-gpu
19:46klaus has quit [Client Quit]
20:05jix has joined #asahi-gpu
20:23jamadazi has quit [Ping timeout: 260 seconds]
20:27jamadazi has joined #asahi-gpu
21:24mogeryy has quit [Quit: Leaving]
22:51Tokamak has quit [Ping timeout: 256 seconds]
22:54Tokamak has joined #asahi-gpu
23:06Tokamak has quit [Ping timeout: 240 seconds]
23:08Tokamak has joined #asahi-gpu
23:48linkmauve has quit [Ping timeout: 256 seconds]