#
…

2022-12-29

00:05possiblemeatball1 has joined #asahi-gpu
00:11possiblemeatball has quit [Ping timeout: 480 seconds]
01:12cylm_ has joined #asahi-gpu
01:16emptynine has quit [Ping timeout: 480 seconds]
01:17hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:26emptynine has joined #asahi-gpu
01:39amarioguy has quit [Remote host closed the connection]
01:55systwi has quit [Ping timeout: 480 seconds]
02:20possiblemeatball1 has quit [Quit: Leaving]
03:04systwi has joined #asahi-gpu
03:05nela has joined #asahi-gpu
03:32digicyc has quit [Remote host closed the connection]
03:33digicyc has joined #asahi-gpu
03:45duban has joined #asahi-gpu
03:47duban has quit []
03:59duban_ has joined #asahi-gpu
04:16emptynine has quit [Ping timeout: 480 seconds]
04:31possiblemeatball has joined #asahi-gpu
04:42possiblemeatball1 has joined #asahi-gpu
04:47emptynine has joined #asahi-gpu
04:48possiblemeatball has quit [Ping timeout: 480 seconds]
05:12nela has quit [Ping timeout: 480 seconds]
05:13nela has joined #asahi-gpu
05:38possiblemeatball1 has quit [Quit: Leaving]
06:21duban_ has quit [Quit: Connection closed for inactivity]
07:08SSJ_GZ has joined #asahi-gpu
07:08emptynine has quit [Ping timeout: 480 seconds]
07:12emptynine has joined #asahi-gpu
08:01ella-0alyssa: Got no problems with clang-formatting agxv :3
09:27hertz has joined #asahi-gpu
10:16iaguis has joined #asahi-gpu
11:58chadmed has quit [Remote host closed the connection]
11:59chadmed has joined #asahi-gpu
12:06amarioguy has joined #asahi-gpu
13:20compassion has quit [Quit: lounge quit]
13:20leftas has quit [Read error: Connection reset by peer]
13:20compassion has joined #asahi-gpu
13:21leftas has joined #asahi-gpu
14:09c10l has quit [Read error: Connection reset by peer]
14:10c10l has joined #asahi-gpu
14:11possiblemeatball has joined #asahi-gpu
15:03alyssaella-0: sprakles
15:03alyssasparkles
15:04kujeger- has quit [Ping timeout: 480 seconds]
15:10kujeger has joined #asahi-gpu
15:18kujeger has quit [Ping timeout: 480 seconds]
15:24kujeger has joined #asahi-gpu
15:59kujeger- has joined #asahi-gpu
16:04kujeger has quit [Ping timeout: 480 seconds]
16:08kujeger has joined #asahi-gpu
16:09kujeger- has quit [Ping timeout: 480 seconds]
16:20emptynine has quit [Ping timeout: 480 seconds]
16:23emptynine has joined #asahi-gpu
16:42emptynine has quit [Ping timeout: 480 seconds]
17:00kujeger- has joined #asahi-gpu
17:00alyssaella-0: by the way, jekstrand complained about the following code pattern I have in Asahi (and Panfrost):
17:01alyssa- lots of high level system values in the NIR e.g. nir_load_ubo_base_agx
17:01alyssa- compiler translates those to moves of magic uniforms
17:01alyssa- compiler passes back a list of uniforms that the driver needs to upload in a certain layout
17:01alyssa- driver needs to upload those uniforms in the layout the compiler decided
17:02alyssaApparently, this works well enough for GL, but is bad for Vulkan aparently
17:03alyssaThe issue being the layout is compiler-driven, even though the dettails are all driver-specific
17:03kujeger has quit [Ping timeout: 480 seconds]
17:03alyssaso in effect I'm hardcoding GLisms into the compiler and then VK would have to pretend to be GL
17:03alyssawhereas VK would want to do certain things in a different way maybe, e.g. descriptor sets instead of open coding binding tables
17:04alyssaIt also turns out that it isn't great for GL either but I digress
17:04kujeger has joined #asahi-gpu
17:04alyssaHe 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
17:05alyssathen the compiler has no knowledge of any special sysvals. It just translates load_preamble instructions 1:1 to hardware uniform registers
17:06alyssaand the GL and VK drivers get to (independently and completely) control the layouts
17:06alyssaIt's not clear to me why this is better for VK seeing as I don't work on VK yet
17:06alyssabut. 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
17:08kujeger- has quit [Ping timeout: 480 seconds]
17:11kujeger- has joined #asahi-gpu
17:12kujeger has quit [Ping timeout: 480 seconds]
17:15alyssaI'd ask jekstrand to chime in but he's on vacation
17:20kujeger has joined #asahi-gpu
17:26kujeger- has quit [Ping timeout: 480 seconds]
17:29kujeger- has joined #asahi-gpu
17:32kujeger has quit [Ping timeout: 480 seconds]
17:33landscape15 has joined #asahi-gpu
17:36kujeger has joined #asahi-gpu
17:36kujeger- has quit [Read error: Connection reset by peer]
17:38kujeger- has joined #asahi-gpu
17:41landscape15 has quit [Quit: Igloo IRC: https://iglooirc.com]
17:42landscape15 has joined #asahi-gpu
17:44kujeger has quit [Ping timeout: 480 seconds]
17:45landscape15 has quit []
17:45landscape15 has joined #asahi-gpu
17:51TellowKrinkleBTW 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?
17:52alyssaTellowKrinkle: USC load uniform commands
17:52alyssasee "USC Uniform" in mesa/src/asahi/lib/cmdbuf.xml
17:52alyssaif you use libwrap.dylib, the pointers will be dumped
17:52kujeger- has quit [Ping timeout: 480 seconds]
17:52alyssabut yeah
17:53alyssacan push arbitrary ranges of GPU memory
17:59kujeger has joined #asahi-gpu
18:01landscape15 has quit [Quit: Igloo IRC: https://iglooirc.com]
18:15c10l0 has joined #asahi-gpu
18:22c10l has quit [Ping timeout: 480 seconds]
18:40ella-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
18:52alyssaI still don't understand *why* Vulkan wants that so bad
18:52alyssabut I have the patches to make it so :p
19:02c10l00 has joined #asahi-gpu
19:02c10l0 has quit [Read error: Connection reset by peer]
19:03ella-0yah something something VkPipelineLayout
19:08c10l00 has quit []
19:09c10l has joined #asahi-gpu
19:12possiblemeatball has quit [Quit: Leaving]
19:17c10l has quit [Quit: Bye o/]
19:20c10l has joined #asahi-gpu
19:20c10l has quit []
19:28c10l has joined #asahi-gpu
19:34possiblemeatball has joined #asahi-gpu
20:00hightower2 has joined #asahi-gpu
20:17c10l has quit [Quit: Bye o/]
20:17c10l has joined #asahi-gpu
20:54TheLink has quit [Quit: Bye!]
20:54TheLink has joined #asahi-gpu
21:35iaguis has quit [Quit: leaving]
22:09SSJ_GZ has quit [Ping timeout: 480 seconds]
22:32possiblemeatball has quit [Quit: Leaving]
23:07alyssaMm, 2.5fps with exclusive ubershaders running at 4K :p
23:54jannauany ideas how dcp runtime power management could crash the agx coproc?
23:58jannaumight be power domain, iirc the dependency on ps_pmp was missing for dcp as well
…