#asahi-gpu · 2022-12-30 02:26
linaI'm pretty sure the max load is 64 halfs and that is encoded as size=0#asahi-gpu · 2022-12-30 02:25
linaalyssa: Speaking of uniforms, I have a patch for that lying around in my compute tree on macOS#asahi-gpu · 2022-12-30 00:24
jannaudcp doesn't use ps_pmp on t600x/t8112#asahi-gpu · 2022-12-30 00:14
jannaubut only on t8103?#asahi-gpu · 2022-12-29 23:58
jannaumight be power domain, iirc the dependency on ps_pmp was missing for dcp as well#asahi-gpu · 2022-12-29 23:54
jannauany ideas how dcp runtime power management could crash the agx coproc?#asahi-gpu · 2022-12-29 23:07
alyssaMm, 2.5fps with exclusive ubershaders running at 4K :p#asahi-gpu · 2022-12-29 19:06
alyssaOK#asahi-gpu · 2022-12-29 19:06
alyssaHmmm#asahi-gpu · 2022-12-29 19:03
ella-0yah something something VkPipelineLayout#asahi-gpu · 2022-12-29 18:52
alyssabut I have the patches to make it so :p#asahi-gpu · 2022-12-29 18:52
alyssaI still don't understand *why* Vulkan wants that so bad#asahi-gpu · 2022-12-29 18:51
alyssaawesome#asahi-gpu · 2022-12-29 18:40
ella-0alyssa: yeah, in vulkan we ideally want to tell the compiler where everything is not the otherway round; Converting VK to that from what I have now should be fairly trivial :3#asahi-gpu · 2022-12-29 17:53
alyssacan push arbitrary ranges of GPU memory#asahi-gpu · 2022-12-29 17:52
alyssabut yeah#asahi-gpu · 2022-12-29 17:52
alyssaif you use libwrap.dylib, the pointers will be dumped#asahi-gpu · 2022-12-29 17:52
alyssasee "USC Uniform" in mesa/src/asahi/lib/cmdbuf.xml#asahi-gpu · 2022-12-29 17:52
alyssaTellowKrinkle: USC load uniform commands#asahi-gpu · 2022-12-29 17:51
TellowKrinkleBTW how do uniform registers get initialized? I noticed the Metal compiler seems to reference a lot of constants from them without loading them in a preamble shader, including things from constant address space buffers (with arbitrary constant offsets too), which can be bound to arbitrary GPU buffers. How does that work?#asahi-gpu · 2022-12-29 17:15
alyssaI'd ask jekstrand to chime in but he's on vacation#asahi-gpu · 2022-12-29 17:06
alyssabut. I did write the patches last night to convert the compiler + GL over to the new model. giving you a heads up that you'll need to add some code to VK when this lands and you rebase#asahi-gpu · 2022-12-29 17:06
alyssaIt's not clear to me why this is better for VK seeing as I don't work on VK yet#asahi-gpu · 2022-12-29 17:06
alyssaand the GL and VK drivers get to (independently and completely) control the layouts#asahi-gpu · 2022-12-29 17:05
alyssathen the compiler has no knowledge of any special sysvals. It just translates load_preamble instructions 1:1 to hardware uniform registers#asahi-gpu · 2022-12-29 17:04
alyssaHe argues that what should actually happen is that the driver preprocesses the NIR before the compiler sees it, with a little NIR pass to lower system values to load_uniform/load_preamble instructions, and the driver internally keeps track of what it wants to upload#asahi-gpu · 2022-12-29 17:04
alyssaIt also turns out that it isn't great for GL either but I digress#asahi-gpu · 2022-12-29 17:03
alyssawhereas VK would want to do certain things in a different way maybe, e.g. descriptor sets instead of open coding binding tables#asahi-gpu · 2022-12-29 17:03
alyssaso in effect I'm hardcoding GLisms into the compiler and then VK would have to pretend to be GL#asahi-gpu · 2022-12-29 17:03
alyssaThe issue being the layout is compiler-driven, even though the dettails are all driver-specific#asahi-gpu · 2022-12-29 17:02
alyssaApparently, this works well enough for GL, but is bad for Vulkan aparently#asahi-gpu · 2022-12-29 17:01
alyssa- driver needs to upload those uniforms in the layout the compiler decided#asahi-gpu · 2022-12-29 17:01
alyssa- compiler passes back a list of uniforms that the driver needs to upload in a certain layout#asahi-gpu · 2022-12-29 17:01
alyssa- compiler translates those to moves of magic uniforms#asahi-gpu · 2022-12-29 17:01
alyssa- lots of high level system values in the NIR e.g. nir_load_ubo_base_agx#asahi-gpu · 2022-12-29 17:00
alyssaella-0: by the way, jekstrand complained about the following code pattern I have in Asahi (and Panfrost):#asahi-gpu · 2022-12-29 15:03
alyssasparkles#asahi-gpu · 2022-12-29 15:03
alyssaella-0: sprakles#asahi-gpu · 2022-12-29 08:01
ella-0alyssa: Got no problems with clang-formatting agxv :3#asahi-gpu · 2022-12-28 21:23
bluetail8but you are using the gpu driver now, right?#asahi-gpu · 2022-12-28 21:18
alyssa;p#asahi-gpu · 2022-12-28 21:18
alyssawas running softpipe#asahi-gpu · 2022-12-28 21:18
alyssaoh I was wondering why my shiny new M1 was feeling so slow#asahi-gpu · 2022-12-28 13:56
alyssamarcan: yes#asahi-gpu · 2022-12-28 12:59
marcanlina: oh god I just saw your tweet, please don't make me have to package CEF... *groan*#asahi-gpu · 2022-12-28 12:50
tlyah yep, thats true, i didnt think about that...#asahi-gpu · 2022-12-28 12:48
marcanit's not practical because it will break every macOS update and require reverse engineering the new ABI#asahi-gpu · 2022-12-28 12:48
tlymarcan: thanks, i think it would be cool to support macos some time in the future to work around the opengl 4.1 limit#asahi-gpu · 2022-12-28 12:46
marcanalso it's okay if I start tagging timestamped releases, right? otherwise we lose prior state#asahi-gpu · 2022-12-28 12:46
marcanalyssa: I'll make a build a bit later and push it to asahi-dev