#asahi-gpu · 2023-02-20 02:42
alyssanah, mali is ... a mix of models that has changed over time#asahi-gpu · 2023-02-20 02:41
TellowKrinkleAre arm GPUs all pointers? (I know almost nothing about arm GPUs)#asahi-gpu · 2023-02-20 02:40
alyssamy brain is very much still in Arm mode#asahi-gpu · 2023-02-20 02:40
alyssamaybe it is in line with the hardware#asahi-gpu · 2023-02-20 02:39
alyssaso, shrug#asahi-gpu · 2023-02-20 02:39
alyssain that you only get 32-bits of VA but can place it wherever you want#asahi-gpu · 2023-02-20 02:39
alyssaOTOH, shader code and pipelines and things use a heap-like model too#asahi-gpu · 2023-02-20 02:39
alyssabecause with that I have enough to implement heaps, even if I'm still unconvinced I should have to#asahi-gpu · 2023-02-20 02:38
alyssabut regardless, image_write::u4 being a URegDesc (maybe) is a nice take-home message#asahi-gpu · 2023-02-20 02:37
alyssajust seems .. odd#asahi-gpu · 2023-02-20 02:37
alyssaand extensions seem to always be 2-bits, so maybe there is no extension#asahi-gpu · 2023-02-20 02:37
alyssaand q4 has 1 free bit#asahi-gpu · 2023-02-20 02:37
alyssaq6 has like 1 free bit#asahi-gpu · 2023-02-20 02:36
alyssahm#asahi-gpu · 2023-02-20 02:36
alyssaand q4 is kill at least in part#asahi-gpu · 2023-02-20 02:36
alyssawait, q6 is gather stuff at least in part#asahi-gpu · 2023-02-20 02:35
alyssa(8 bits between them)#asahi-gpu · 2023-02-20 02:35
alyssabut q4 and q6 are both plausibly extension#asahi-gpu · 2023-02-20 02:35
alyssatexture_sample has a known SampleURegDesc but no known extension bits#asahi-gpu · 2023-02-20 02:34
alyssaenough#asahi-gpu · 2023-02-20 02:33
TellowKrinkleHow many unknown bits do we have left at this point?#asahi-gpu · 2023-02-20 02:33
alyssa(Unless you can't use the upper bits for this. Again, while possible that seems less likely than I don't know which bits are the extension.)#asahi-gpu · 2023-02-20 02:32
alyssathat said, SampleURegDesc is missing a few bits of extensions#asahi-gpu · 2023-02-20 02:32
alyssaTellowKrinkle: I think u4 is the SampleURegDesc#asahi-gpu · 2023-02-20 01:51
alyssak. Maybe that'll come in the next version bump then.#asahi-gpu · 2023-02-20 01:51
TellowKrinkleStill no image atomics in Metal#asahi-gpu · 2023-02-20 01:50
alyssaBy the way, does Metal support atomics on images now?#asahi-gpu · 2023-02-20 01:50
alyssa---#asahi-gpu · 2023-02-20 01:39
alyssabut it seems more likely that we're missing some encodings than that this is really what Apple intended#asahi-gpu · 2023-02-20 01:38
alyssar#asahi-gpu · 2023-02-20 01:38
alyssawhere I'm at is, if this is indeed how bindless works on this hardware (and the only way it works), then I can make this work in the drive#asahi-gpu · 2023-02-20 01:31
alyssabut I'd be surprised if there wasn't a raw pointer mode in here too, if that's what's happening#asahi-gpu · 2023-02-20 01:31
alyssaand the texture state registers (ts0 etc) and this uniform+reg mode are both conveniences for the driver to emulate binding tables and heaps respectively#asahi-gpu · 2023-02-20 01:31
alyssaLike, my current mental model is that the hardware is internally pointer-style bindless#asahi-gpu · 2023-02-20 01:30
alyssagiven that the hardware is all pointers internally#asahi-gpu · 2023-02-20 01:30
alyssawhile heaps are just as expressive as pointer-style bindless, I guess I'm a bit surprised to not see a way to do real pointers#asahi-gpu · 2023-02-20 01:28
alyssaThat's basically the "heap" model. It's how NVIDIA works at a hardware level, and how DX12 works at an API level.#asahi-gpu · 2023-02-20 01:28
alyssaIt's certainly possible.#asahi-gpu · 2023-02-20 01:28
alyssaI don't know.#asahi-gpu · 2023-02-20 01:27
TellowKrinkleSo does Metal just have a massive array of texture descriptors that it allocates out of and then uses 32 bit offsets into that array as texture pointers?#asahi-gpu · 2023-02-20 01:24
alyssawhat I really want is a "64-bit register" mode#asahi-gpu · 2023-02-20 01:23
alyssathat's enough to emulate bindless but it's not as nice as I was hoping#asahi-gpu · 2023-02-20 01:21
alyssaso, with flags=3 and everything else as usual, it's looking up "passed uniform + 32-bit register"#asahi-gpu · 2023-02-20 01:17
alyssaCoaxing Metal to tell me how bindless textures work seems less effective than just playing with the hardware under Linux and seeing what happens#asahi-gpu · 2023-02-19 21:00
alyssastores are masked for helpers but atomics are not, fun#asahi-gpu · 2023-02-18 20:41
alyssawell, there's another bug I didn't know I had#asahi-gpu · 2023-02-18 20:16
alyssaso, the passtype enum. nice#asahi-gpu · 2023-02-18 20:16
alyssa"opaque", "feedback", "translucent"#asahi-gpu · 2023-02-18 20:15
alyssaahaha how did I miss this#asahi-gpu · 2023-02-18 20:14
alyssawell https://developer.apple.com/videos/play/wwdc2020/10632/?time=1180 actually