#asahi-gpu · 2022-10-27 01:22
alyssaNote that there is dedicated depth/stencil hardware (the ZLS)#asahi-gpu · 2022-10-27 01:21
phireyeah, I found that weird. It was only touching depth+stencil#asahi-gpu · 2022-10-27 01:10
alyssaand that's entirely possible, there are lots of funny limitations here#asahi-gpu · 2022-10-27 01:10
alyssas/framebuffer/depth stencil/, lina's patch doesn't touch the colour attachments#asahi-gpu · 2022-10-27 01:03
phireTheory: However apple are sharing 3d workloads across the two dies, it might only work for compressed framebuffers?#asahi-gpu · 2022-10-27 01:03
phireI should get this running under hypervisor. I suspect those other buffers will also be absent#asahi-gpu · 2022-10-27 01:02
phireso that might be an Ultra "two dies" only change#asahi-gpu · 2022-10-27 01:01
phirelina: so I got mesa running under osx on my M1 Max. Seems to work just fine without your patch that hacks in the acceleration buffers#asahi-gpu · 2022-10-27 00:14
danielsalyssa: yeah, weston#asahi-gpu · 2022-10-27 00:08
jannauwayland compositor are supposed to use them for video playback via Linux DMA-Buf protocol#asahi-gpu · 2022-10-27 00:05
jannausame flag needs to be set for yuv overlays#asahi-gpu · 2022-10-27 00:05
alyssaIs there any Linux userspace that can use YUV overlays these days? :(#asahi-gpu · 2022-10-27 00:04
alyssaAh lol nice#asahi-gpu · 2022-10-27 00:00
jannaurandomly while experimenting with yuv overlays in dcp.py#asahi-gpu · 2022-10-26 23:56
alyssaHow'd you discover the flag?#asahi-gpu · 2022-10-26 23:56
alyssajannau: Woof#asahi-gpu · 2022-10-26 23:47
phireclassic bug#asahi-gpu · 2022-10-26 23:32
jannaubut it took me far too long to realize that fbcon displayed just a transparent terminal#asahi-gpu · 2022-10-26 23:30
jannauhah, dcp supports XRGB afterall, just not as separate pixelformat but via a flag in dcp_surface (either unk1 or unk2)#asahi-gpu · 2022-10-26 22:16
alyssaYes, I think so#asahi-gpu · 2022-10-26 22:06
phireso it's just compressed vs uncompressed?#asahi-gpu · 2022-10-26 21:59
alyssaIt's probably not a *big* deal to support properly in mesa but that patch is not the way to do it#asahi-gpu · 2022-10-26 21:57
alyssaMetal really doesn't like rendering to linear#asahi-gpu · 2022-10-26 21:57
alyssas/linear/uncompressed/, IIRC it's stil twiddled#asahi-gpu · 2022-10-26 21:18
phireI suspect the accleration buffer stuff is just because whatever alyssa did to force a linear buffer, has regressed for some reason#asahi-gpu · 2022-10-26 16:45
alyssafinding the next allocation in the same BO and using that as an upper bound#asahi-gpu · 2022-10-26 16:45
alyssano, adjacency as well#asahi-gpu · 2022-10-26 16:45
alyssaor maybe not#asahi-gpu · 2022-10-26 16:45
alyssalina: guess#asahi-gpu · 2022-10-26 15:49
linaStill need to look at the deflake buffer sizes... 2 of them are obvious due to adjacency, but do you remember how you figured out the third bound?#asahi-gpu · 2022-10-26 15:48
linaIt seems every 8x4 block of Z pixels maps to one accel buffer byte, 0x03 means clear.#asahi-gpu · 2022-10-26 15:48
linaLooks like it's 1/32 compression and it uses POT addressing, so align zbuffer size to POT and divide by 32 for the accel buffer size#asahi-gpu · 2022-10-26 15:29
linaThe stencil one is just a guess though, haven't actually seen it yet#asahi-gpu · 2022-10-26 15:25
linaLast 3 commits here: https://gitlab.freedesktop.org/asahilina/mesa/-/commits/asahi/wip#asahi-gpu · 2022-10-26 15:24
alyssaOK#asahi-gpu · 2022-10-26 15:24
alyssao#asahi-gpu · 2022-10-26 15:22
linaThe size is just random though, haven't worked out how to calculate any of it yet.#asahi-gpu · 2022-10-26 15:21
linaLet me do that!#asahi-gpu · 2022-10-26 15:20
alyssa(the diff from t8103 mesa I mean)#asahi-gpu · 2022-10-26 15:20
alyssaI'd love to see the Mesa patch if you've pushed#asahi-gpu · 2022-10-26 15:20
alyssaVery curious#asahi-gpu · 2022-10-26 15:14
linaalyssa: I've never seen it enabled on the M1 Mini, ever. I have zero hits for those pointers in all my historical hypervisor logs. But on this one, it showed up, and mesa was faulting without it... so I'm not sure you disabled it ^^#asahi-gpu · 2022-10-26 15:09
alyssait does visually look like hier-z but I'm not convinced it actually is#asahi-gpu · 2022-10-26 15:09
alyssalina: as I texted you, the "Z acceleration" buffer is probably just from depth compression, which Apple's driver is aggressive about enabling and took me a lot of time to figure out how to disable#asahi-gpu · 2022-10-26 15:07
linaParallelizing fragment processing is trivial, but fragment is not, since it interacts with the tiler/sorting stuff#asahi-gpu · 2022-10-26 15:06
linaI get the feeling they're actually trying to balance work within single jobs between dies, which would explain why they need some new buffers to transfer things around.#asahi-gpu · 2022-10-26 15:05
linaThere's a Z acceleration/hierarchical Z thing that showed up, and then 5 new buffers adjacent to the tiler?#asahi-gpu · 2022-10-26 15:05
linaSo the M1 Ultra just needed a bunch of new buffers and some larger bigger ones, initdata changes, and a couple constants changed, and then it worked.#asahi-gpu · 2022-10-26 05:55
linaNice!! <3#asahi-gpu · 2022-10-26 02:21
alyssaone answer is "I did a better job at register allocation for AGX than Mali"