#
✕ nick:alyssa
#asahi-gpu · 2023-04-16 00:23
alyssafirst ~40 instructions benefit from some parallelism
#asahi-gpu · 2023-04-16 00:22
alyssaTellowKrinkle: re ld_tile placement, Metal isn't sinking it past the first block but it is sinking it to the bottom of the first block
#asahi-gpu · 2023-04-16 00:20
alyssano mystery ops, that's a good sign
#asahi-gpu · 2023-04-16 00:20
alyssaeyes
#asahi-gpu · 2023-04-16 00:08
alyssathreads helped: dolphin-ubers/231.shader_test MESA_SHADER_FRAGMENT: 448 -> 512 (14.29%)
#asahi-gpu · 2023-04-16 00:08
alyssathreads helped: dolphin-ubers/221.shader_test MESA_SHADER_FRAGMENT: 512 -> 576 (12.50%)
#asahi-gpu · 2023-04-16 00:08
alyssaeg
#asahi-gpu · 2023-04-16 00:08
alyssathis is despite shader-db showing thread count improvements in a pile of ubershaders
#asahi-gpu · 2023-04-16 00:07
alyssascheduler doesn't break anything but doesn't seem to be much help
#asahi-gpu · 2023-04-15 23:47
alyssaWas worth a try ;P
#asahi-gpu · 2023-04-15 23:47
alyssaAww :p
#asahi-gpu · 2023-04-15 23:42
alyssaTellowKrinkle: also is there any cool stuff Dolphin can do on Linux but not macOS that I can use to sell this if perf doesn't pan out? :~P
#asahi-gpu · 2023-04-15 23:41
alyssa's a question for lina I think
#asahi-gpu · 2023-04-15 23:40
alyssaoh that
#asahi-gpu · 2023-04-15 23:40
alyssalooks up what gpuvis is
#asahi-gpu · 2023-04-15 23:40
alyssaprobably not
#asahi-gpu · 2023-04-15 23:39
alyssahere I'm going to try copypasting some code from panfrost and see if that makes things go brr
#asahi-gpu · 2023-04-15 23:36
alyssaas I mentioned above loading gl_FragColor at the top of the shader is going to force the shaders to be totally serialized, which is also going to magnify the issue (maybe)
#asahi-gpu · 2023-04-15 23:36
alyssaright. if specialized shaders don't usually gl_FragDepth write, but ubershaders do, that'll be a gap
#asahi-gpu · 2023-04-15 23:34
alyssaHSR is going to be hurt by the gl_FragDepth write, I think
#asahi-gpu · 2023-04-15 23:32
alyssain terms of both pressure and latency, given how big these are
#asahi-gpu · 2023-04-15 23:32
alyssascheduling might be significant for the ubershaders though
#asahi-gpu · 2023-04-15 23:31
alyssaseeing as I've literally never seen an ALU saving optimization matter for fps
#asahi-gpu · 2023-04-15 23:30
alyssathere's a long tail of ALU cycle shaving we could do for the ubershaders, but I'm not convinced any of it would move the needle
#asahi-gpu · 2023-04-15 23:30
alyssahopefully some of that is something dumb
#asahi-gpu · 2023-04-15 23:29
alyssa(Granted, 37% the performance of Metal would still be totally playable. And there's piles of content we'll have available that's just not possible on macOS but still.)
#asahi-gpu · 2023-04-15 23:29
alyssadoesn't want to be 37% the performance of Metal :-V
#asahi-gpu · 2023-04-15 23:28
alyssashould maybe look at one of those disassembled Metal ubershaders
#asahi-gpu · 2023-04-15 23:27
alyssaWell. That's not great but not our problem then, heh
#asahi-gpu · 2023-04-15 23:27
alyssaOh
#asahi-gpu · 2023-04-15 23:27
alyssasink the load or not?
#asahi-gpu · 2023-04-15 23:26
alyssawhich forces overdraw to get serialized... shouldn't be too hard to sink the load down, I think
#asahi-gpu · 2023-04-15 23:26
alyssabecause they're reading gl_FragColor right at the top and then don't use it until the bottom
#asahi-gpu · 2023-04-15 23:26
alyssaI wonder how much ubershaders are getting hurt by the serialization of the fragment shaders
#asahi-gpu · 2023-04-15 23:25
alyssa(our gles specialized is sitill not up to metal -- 60fps vs 100fps -- though maybe some of those differences are within dolphin? maybe?)
#asahi-gpu · 2023-04-15 23:24
alyssaneedle doesn't move for ubershaders since I guess those aren't bandwidth bound
#asahi-gpu · 2023-04-15 23:23
alyssafor specialized shaders
#asahi-gpu · 2023-04-15 23:23
alyssaso after fixing z/s compression, our gles beats apple's gl
#asahi-gpu · 2023-04-15 23:23
alyssa---
#asahi-gpu · 2023-04-15 23:22
alyssanative uber: 78fps
#asahi-gpu · 2023-04-15 23:22
alyssa4K uber: 4.3fps
#asahi-gpu · 2023-04-15 23:22
alyssa4K specialized: 60fps
#asahi-gpu · 2023-04-15 23:22
alyssabut forcing it on anyway (Dolphin rendering still seems fine)
#asahi-gpu · 2023-04-15 23:21
alyssaOk, I had locally disabled z/s compression since it was causing issues
#asahi-gpu · 2023-04-15 23:21
alyssaYep yep
#asahi-gpu · 2023-04-15 23:20
alyssa(we weren't compressing array textures before, that won back a ton of perf)
#asahi-gpu · 2023-04-15 23:20
alyssaI got big wins already from compression, yeah
#asahi-gpu · 2023-04-15 23:19
alyssaack
#asahi-gpu · 2023-04-15 23:19
alyssaTellowKrinkle: Seeing as you wrote the winning backend, any ideas what to look into for dolphin go fast? O:)
#asahi-gpu · 2023-04-15 23:17
alyssasome of this (especially ubershader perf) is going to be compiler related, I imagine

plus ›