#
…

2023-04-16

00:01possiblemeatball has quit [Quit: Quit]
00:07alyssascheduler doesn't break anything but doesn't seem to be much help
00:08alyssathis is despite shader-db showing thread count improvements in a pile of ubershaders
00:08alyssathreads helped: dolphin-ubers/221.shader_test MESA_SHADER_FRAGMENT: 512 -> 576 (12.50%)
00:08alyssathreads helped: dolphin-ubers/231.shader_test MESA_SHADER_FRAGMENT: 448 -> 512 (14.29%)
00:12TellowKrinkleOkay can confirm, if you add MTLTextureUsagePixelFormatView to all textures, Metal performs within 1fps of MoltenVK at 4K
00:14TellowKrinkleBTW if you're curious, here's a Dolphin ubershader and its disassembly as of about 4 months ago: https://gist.github.com/TellowKrinkle/ced8ea4781f4a2bcfa292ac50d93dc25
00:16possiblemeatball has joined #asahi-gpu
00:20alyssano mystery ops, that's a good sign
00:22alyssaTellowKrinkle: 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
00:23alyssafirst ~40 instructions benefit from some parallelism
00:24alyssaregister cache hinting might help if that's our bottleneck
00:25alyssaidk. if it's "death by a thousand cuts" i guess we can deal with that, but usually there's something more glaring
00:25alyssa(given that we're off at 37% of where we should be... if it were 90% there I'd say yeah all the little stuff matters)
00:39alyssaopt sink+move hack:
00:39alyssaspec 4K: 61fps
00:40alyssanative uber: 105fps
00:40alyssauber 4K: 5fps
00:41alyssaso a big chunk of the gap seems to be register pressure
00:42alyssa(43% of the way there :^)
00:56TellowKrinkleBTW here's the gpu activity chart for one frame of specialized 4K in Metal: https://tellowkrinkle.com/img/DolphinMeltyMoltenGalaxyMetal6xInstruments.png
00:56TellowKrinkleLooks like runs 10 render passes per frame, and gets nearly full occupancy throughout most of it
01:25user982492 has joined #asahi-gpu
01:33TellowKrinkleLooking at melty molten galaxy in a Metal GPU trace and most of the time is spent on the dumbest things, and it looks like they may actually be ALU bound.
01:34TellowKrinkle2ms spent in a fullscreen color clear, which samples a 4x4 all-white texture for who knows what reason. 83 instructions, 12 registers for the fragment shader.
01:35TellowKrinkle1.5ms spent in a fullscreen depth clear (color writes are masked), which also samples that 4x4 all-white texture. 76 instructions, 12 registers.
01:39TellowKrinkle1.4ms spent drawing lava, our first actually useful draw. 219 instructions, 16 registers.
01:39cylm has quit [Ping timeout: 480 seconds]
01:40TellowKrinkle1.2ms spent drawing the ground, 163 instructions, 12 registers.
01:42TellowKrinkle1ms spent making an EFB copy to VRAM, this one's most likely memory bound
01:42hightower4 has joined #asahi-gpu
01:43TellowKrinkleAnother 1ms making another EFB copy, same as above
01:46user982492_ has joined #asahi-gpu
01:49hightower3 has quit [Ping timeout: 480 seconds]
01:50TellowKrinkle700µs in some shader that does an alpha-blended distortion effect. Samples an EFB copy, so might be memory bound. 231 instructions, 16 registers.
01:51user982492 has quit [Ping timeout: 480 seconds]
01:53TellowKrinkle500µs in an alpha-only EFB copy shader
01:57TellowKrinkle400µs in a full screen pass that just seems to add a shadow for Mario. 55 instructions, 8 registers.
01:58TellowKrinkleThere's a few more around 200µs, and the rest take up pretty much nothing
02:08cylm has joined #asahi-gpu
02:12TellowKrinkleHere's the color + depth clear shader that manages to take up 1/5 of all time spent rendering that dff https://gist.github.com/TellowKrinkle/9e9f1f56a2756864c3814471f45ff064
03:09tertu has quit [Quit: so long...]
03:44deflax has quit []
04:02possiblemeatball has quit [Quit: Quit]
04:46kl has quit [Quit: ZNC - https://znc.in]
04:46kilolima has joined #asahi-gpu
04:54stipa is now known as Guest11221
04:54stipa has joined #asahi-gpu
04:56Guest11221 has quit [Ping timeout: 480 seconds]
05:16user982492_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:19pthariensflame has joined #asahi-gpu
06:30pthariensflame has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:49pthariensflame has joined #asahi-gpu
06:58pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
08:06darkapex1 has quit []
08:06darkapex has joined #asahi-gpu
08:37nsklaus has joined #asahi-gpu
09:01kit_ty_kate has quit [Quit: WeeChat 3.6]
10:16i509vcb has quit [Quit: Connection closed for inactivity]
11:20hightower4 has quit []
11:20cylm has quit [Quit: WeeChat 3.6]
11:22cylm has joined #asahi-gpu
12:24possiblemeatball has joined #asahi-gpu
15:40chipxxx has joined #asahi-gpu
16:30sosys has joined #asahi-gpu
16:48sosys has quit [Ping timeout: 480 seconds]
17:01possiblemeatball has quit [Quit: Quit]
17:14sosys has joined #asahi-gpu
17:17alyssa has quit [Quit: leaving]
17:26sosys has quit [Quit: leaving]
18:14user982492 has joined #asahi-gpu
18:16i509vcb has joined #asahi-gpu
18:42zalyx0 has quit [Quit: later alligator]
19:00drubrkletern has joined #asahi-gpu
19:03pthariensflame has joined #asahi-gpu
19:03pthariensflame has quit []
19:29landscape15 has joined #asahi-gpu
19:32landscape15 has quit []
19:38c10l has quit [Ping timeout: 480 seconds]
19:40c10l has joined #asahi-gpu
19:52user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:56user982492 has joined #asahi-gpu
20:13user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:51drubrkletern has quit [Remote host closed the connection]
21:01possiblemeatball has joined #asahi-gpu
21:50user982492 has joined #asahi-gpu
22:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
22:02yrlf has joined #asahi-gpu
22:14pbsds has quit [Ping timeout: 480 seconds]
22:45zalyx0 has joined #asahi-gpu
22:55tertu has joined #asahi-gpu
22:56zalyx0 has quit [Quit: later alligator]
23:04zalyx0 has joined #asahi-gpu
23:05zalyx0 has quit []
23:11chadmed_ has joined #asahi-gpu
23:16zalyx0 has joined #asahi-gpu
23:47hightower2 has joined #asahi-gpu
23:48nsklaus has quit [Quit: ZZZzzz…]
23:53sosys has joined #asahi-gpu
…