#asahi-gpu · 2023-02-14 21:41
alyssaThen, they multiply it with 255.0#asahi-gpu · 2023-02-14 21:41
alyssaFirst, they calculate the alpha and clamp it to [0.0, 1.0]#asahi-gpu · 2023-02-14 21:41
alyssathis is for alpha to coverage with msaa 4x#asahi-gpu · 2023-02-14 21:40
alyssafor anyone following along at home#asahi-gpu · 2023-02-14 21:40
alyssabe91c8280000 is the spicy convert#asahi-gpu · 2023-02-14 21:38
alyssawhat kind of witchcraft is this#asahi-gpu · 2023-02-14 21:38
alyssathis doesn't make any sense, why are they converting a float from uint to float#asahi-gpu · 2023-02-14 21:35
alyssaer no it's a funny encoding of convert#asahi-gpu · 2023-02-14 21:32
alyssalikelier than you would think#asahi-gpu · 2023-02-14 21:32
alyssaan unknown ALU instruction? on M1?#asahi-gpu · 2023-02-14 04:11
alyssamaybe I just need to try to wire this stuff up and see what breaks.#asahi-gpu · 2023-02-14 04:09
alyssaare these addresses 32-bits or not?!#asahi-gpu · 2023-02-14 04:08
alyssaI still feel like I'm missing something#asahi-gpu · 2023-02-14 03:52
alyssanext question is whether there's proper bindless image load i missed#asahi-gpu · 2023-02-14 03:51
alyssaok, so there's full bindless image_write, so what? well..#asahi-gpu · 2023-02-14 03:49
alyssai just mised the second add due to the scheduling#asahi-gpu · 2023-02-14 03:48
alyssahi = hi + u64_hi#asahi-gpu · 2023-02-14 03:48
alyssalo_hi = mad(u32, u32, u64_lo)#asahi-gpu · 2023-02-14 03:48
alyssathey implement (u32 * u32) + u64 in two instructions#asahi-gpu · 2023-02-14 03:47
alyssaI see what's happening. cute.#asahi-gpu · 2023-02-14 03:47
alyssaoh, no#asahi-gpu · 2023-02-14 03:47
alyssaor not, uh#asahi-gpu · 2023-02-14 03:41
alyssa(Spoiler alert: bindless image writes are 100% a thing and it's a straightforward mechanism and I just need a bit more staring to get the details)#asahi-gpu · 2023-02-14 03:41
alyssafrom context of the shader I'm staring at#asahi-gpu · 2023-02-14 03:40
alyssaI *think* the u2 should be u2_u3..#asahi-gpu · 2023-02-14 03:40
alyssa 16: 9e138c0202840100 imadd r4_r5.cache, r6.cache, 32, u2#asahi-gpu · 2023-02-12 17:23
alyssaif you're not setting those =true explicitly in AGXV, please do so#asahi-gpu · 2023-02-12 17:23
alyssaella-0: https://rosenzweig.io/0001-asahi-Remove-default-true-on-index-list-values.patch#asahi-gpu · 2023-02-12 03:18
alyssauniversity calls~#asahi-gpu · 2023-02-12 03:17
alyssaunfortunately I think that's time for the weekend#asahi-gpu · 2023-02-12 03:17
alyssathere's plenty of room in the image_write encoding for a samplerureg, just a matter of finding it#asahi-gpu · 2023-02-12 02:14
alyssaI don't understand the various Vulkan extensions well enough to know if this is a problem#asahi-gpu · 2023-02-12 02:14
alyssahttps://developer.apple.com/documentation/metal/mtlsamplerdescriptor/2915782-supportargumentbuffers?language=objc#asahi-gpu · 2023-02-12 02:13
alyssathis corresponds to the limit of 2048 samplers allowed in argument buffers in metal#asahi-gpu · 2023-02-12 02:13
alyssa(because now the sampler descriptor is 5 words -> round up to 8 words for a power-of-two limit)#asahi-gpu · 2023-02-12 02:13
alyssaif custom border colours are allowed, we only get (conservatively) 2048 samplers#asahi-gpu · 2023-02-12 02:12
alyssai.e. we only get to set the bottom 16-bits of the pointer ourselves#asahi-gpu · 2023-02-12 02:12
alyssaalso, it looks like -- while textures are full bindless -- samplers are basically a heap with maximum size 8192#asahi-gpu · 2023-02-12 01:41
alyssabut I guess bumping M1 to 13.x firmware to get the fancy features isn't the worst thing in the world #asahi-gpu · 2023-02-12 01:40
alyssabut mesh isn't added until Metal 3 == macOS 13#asahi-gpu · 2023-02-12 01:40
alyssaAt least, I'm not convinced it gets used for geometry or tessellation shaders on Apple's driver, though it's definitely needed for mesh#asahi-gpu · 2023-02-12 01:40
alyssalina: I think the firmware allocation feature I mentioned might not be added until macOS 13#asahi-gpu · 2023-02-11 20:07
alyssalest this all be purely theoretical#asahi-gpu · 2023-02-11 20:07
alyssakicking the can down the line until we have 4K pages#asahi-gpu · 2023-02-11 20:06
alyssadamned if you do, damned if you dont#asahi-gpu · 2023-02-11 20:06
alyssayeah I am still waffling#asahi-gpu · 2023-02-11 20:06
alyssawhich isn't ideal#asahi-gpu · 2023-02-11 20:05
alyssaThe fighting comes with something like glBitmap + glClipControl used together#asahi-gpu · 2023-02-11 20:04
alyssaMeh. Will do the flushing option to light up the CAP and then when we actually have workloads we can optimize#asahi-gpu · 2023-02-11 20:03
alyssawhich violates the "only pay for what you use" rule