#
#asahi-gpu · 2023-03-07 19:43
alyssaWoop
#asahi-gpu · 2023-03-07 19:31
jannaushort test of agx/release shows no problems on a m1 ultra
#asahi-gpu · 2023-03-07 18:19
alyssaso two days from now, got it
#asahi-gpu · 2023-03-07 18:19
alyssajannau: no but i just asked so you need to double it
#asahi-gpu · 2023-03-07 18:18
jannaulooks on the clock and the magic eight ball answers tomorrow
#asahi-gpu · 2023-03-07 18:11
alyssamarcan: so when are you release this thing
#asahi-gpu · 2023-03-07 16:38
mort_ah sorry, I should've read that before asking.
#asahi-gpu · 2023-03-07 16:38
jannaumort_: no user support here, see /topic
#asahi-gpu · 2023-03-07 16:35
mort_the src/linux-asahi-blah/build/edge/.config.old file ends up with the stuff from config.edge (including CONFIG_DRM_ASAHI=m), but src/linux-asahi-blah/build/edge/.config ends up without it
#asahi-gpu · 2023-03-07 16:34
mort_overwritten?
#asahi-gpu · 2023-03-07 16:34
mort_Hey, I'm trying to build the kernel according to this pkgbuild: https://github.com/AsahiLinux/PKGBUILDs/blob/d66008ea33ce6547a806fd197688a9344c02f6ef/linux-asahi/PKGBUILD -- and it works, but the edge kernel it builds doesn't seem to have an asahi.ko.zst.. I don't understand why, but it seems like the config file for the edge build somehow gets
#asahi-gpu · 2023-03-07 16:24
alyssaand faster game load screens is good maybe
#asahi-gpu · 2023-03-07 16:24
alyssaglGenerateMipmap is silly but a bunch of benchmarks have it in a hot path so v_v
#asahi-gpu · 2023-03-07 16:18
alyssayeah, ok, sure whatever
#asahi-gpu · 2023-03-07 16:18
alyssaand if you do that, you don't need the VDM for anything which is where the blit queue comes in
#asahi-gpu · 2023-03-07 16:17
alyssaI guess the "right" way to do it is with a background program and no draw calls
#asahi-gpu · 2023-03-07 16:16
alyssaand still get most of the benefit
#asahi-gpu · 2023-03-07 16:16
alyssamaybe less heavyhanded than hooking up the blit queue
#asahi-gpu · 2023-03-07 16:15
alyssalina: Hmm for glGenerateMipmap() i guess it shouldn't be too hard to do a single drm_asahi_submit with all the different batches that make it up
#asahi-gpu · 2023-03-07 16:10
alyssawoahh
#asahi-gpu · 2023-03-07 16:04
linaalyssa: It's a wiki, you can just edit it~
#asahi-gpu · 2023-03-07 12:59
alyssai hope
#asahi-gpu · 2023-03-07 12:59
alyssaprobably super easy in the kernel side, though
#asahi-gpu · 2023-03-07 12:59
alyssabut this is absolutely required for a production driver and I don't want a UAPI stabilized without it
#asahi-gpu · 2023-03-07 12:59
alyssaI don't want to block upstreaming on me figuring out a spiller so I'll probably just wire up load_scratch/store_scratch as a proof-of-concept
#asahi-gpu · 2023-03-07 12:58
alyssaalso, scratch memory
#asahi-gpu · 2023-03-07 12:58
alyssa'Upstreaming blockers (affect current draft UAPI):'
#asahi-gpu · 2023-03-07 12:58
alyssaand not stable
#asahi-gpu · 2023-03-07 12:58
alyssa'since it is not safe to do so'
#asahi-gpu · 2023-03-07 12:57
alyssa....uh
#asahi-gpu · 2023-03-07 12:57
alyssalina: "Blit command support will be added in a future driver"
#asahi-gpu · 2023-03-07 12:42
alyssa(otoh, as far as I can tell, Mali-G610 was uniquely designed around supporting multiDrawIndirect and that's it ;P)
#asahi-gpu · 2023-03-07 12:42
alyssabut it's still a really steep cliff you fall off as soon as you leave the comfy confines of what the hw designers intended
#asahi-gpu · 2023-03-07 12:42
alyssaand perf will be ok unless the app goes crazy with this stuff
#asahi-gpu · 2023-03-07 12:42
alyssanone of this is *challenging*, mind you
#asahi-gpu · 2023-03-07 12:40
alyssaand then the compute kernel will just patch the link target based on the query result
#asahi-gpu · 2023-03-07 12:40
alyssain the control stream after emitting the compute, always emit a stream link and put all the draws to predicate in a new control stream
#asahi-gpu · 2023-03-07 12:39
alyssathis compute kernel though isn't too horrible, thankfully
#asahi-gpu · 2023-03-07 12:39
alyssa(feel free to replace "Compute kernel" with "internal vertex shader" if you want this to all happen on the VDM, btw)
#asahi-gpu · 2023-03-07 12:39
alyssaunless there's a sufficiently general conditional stream link, we again need to dispatch a compute kernel for this
#asahi-gpu · 2023-03-07 12:38
alyssaon AGX, this is a lot more tricky
#asahi-gpu · 2023-03-07 12:38
alyssa(*Mali-G610, older Malis this all suuuucks far worse tha AGX)
#asahi-gpu · 2023-03-07 12:38
alyssaLOAD the result of the query and branch over the draws based on the result
#asahi-gpu · 2023-03-07 12:38
alyssaon Mali, this is really easy!
#asahi-gpu · 2023-03-07 12:37
alyssaanother notable one, conditional rendering, which lets you predicate draws on an occlusion query passing
#asahi-gpu · 2023-03-07 12:37
alyssa(but Metal's "GPU indirect buffers" are exactly this, and if MoltenVK supports multiDrawIndirect - dont remember if they do - it's with this)
#asahi-gpu · 2023-03-07 12:37
alyssa(which is kinda horrible, because you need to plumb the draw ID into the shaders as a special uniform, but changing the uniform state means re-emitting a whole pile of shader state. it can be done with a "clone and patch" technique, or with a sufficient horrible compute kernel. but it's not nice.)
#asahi-gpu · 2023-03-07 12:35
alyssaso either we don't do multiDrawIndirect, or we implement it with a compute kernel that generates a control stream with all the draws at runtime and then stream_links to it
#asahi-gpu · 2023-03-07 12:35
alyssaon AGX, we have no way to express a loop, it's not turing complete by itself
#asahi-gpu · 2023-03-07 12:34
alyssaon Mali-G610, the driver implements this with a loop in the command stream

plus ›