ChanServ 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
kendfinger has quit [Remote host closed the connection]
kendfinger has joined #asahi-gpu
kov has quit [Quit: Coyote finally caught me]
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #asahi-gpu
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-gpu
nepeat has quit [Ping timeout: 480 seconds]
nepeat has joined #asahi-gpu
chadmed has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-gpu
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yuni>
I've been looking into why Inochi2D rendering doesn't work on the Asahi GPU driver in Mesa.
<yuni>
lina gave me an apitrace of her model, which I can replay on macOS with the apitrace patches I wrote a few weeks ago.
<yuni>
With upstream Mesa, the trace triggers a GPU fault. Nothing renders.
<yuni>
I've isolated the issue to two driver bugs:
<yuni>
1. Stencil buffers and stencil testing are broken. There are a number of bugs affecting stencil. The most obvious is a flag that the driver has to set to enable stencil testing, which Mesa was failing to do. Setting that flag fixes a number of tests related to stencil.
<yuni>
Less obvious, some configuration of the stencil buffer in memory is causing GPU faults in certain circumstances. I'm not sure yet why, or how to fix it. I don't think Lina's setup is affected by this bug, but it should still be fixed.
<yuni>
2. The texture layout code is incorrect. The faults with Lina's trace seem to result from *underallocating* texture memory. Lina makes heavy use of mipmapping, which has special requirements for allocation. There's an issue with that. I don't think that's anything we can't fix with a bit of reverse-engineering and some unit tests, though.
<yuni>
All that said, it's pretty close to working on top of macOS. I guess Alyssa did an okay job after all.
lonjil2 has quit [Remote host closed the connection]
lonjil has joined #asahi-gpu
opticron has quit [Ping timeout: 480 seconds]
opticron has joined #asahi-gpu
opticron has quit [Read error: Connection reset by peer]