#asahi-gpu · 2023-09-07 00:35
alyssanice#asahi-gpu · 2023-09-07 00:31
i509vcbI've pretty much been working on what's needed so that the wsi can allocate images with a non-linear tiling#asahi-gpu · 2023-09-07 00:29
i509vcb(off topic, I don't exactly know if the dcp can scan out the special apple drm modifiers)#asahi-gpu · 2023-09-07 00:25
i509vcbYeah I've heard of compressed texture formats typically being used to reduce ram usage in games. I'm talking specifically about the twiddled tiling#asahi-gpu · 2023-09-07 00:24
alyssathe former is indeed not renderable on virtually any hardware#asahi-gpu · 2023-09-07 00:24
alyssa?#asahi-gpu · 2023-09-07 00:24
alyssai509vcb: possibly you're mixing up util_format_is_compressed style compressed (ASTC, ETC, BCn, PVRTC) with Apple's framebuffer compression scheme (COMPRESSED_TWIDLDED)#asahi-gpu · 2023-09-06 23:59
i509vcbMust have misread something then elsewhere #asahi-gpu · 2023-09-06 23:53
alyssa(also good for SAMPLED_IMAGE but not for MUTABLE_FORMAT_BIT)#asahi-gpu · 2023-09-06 23:53
alyssain vulkan speak, compression is good for COLOR_ATTACHMENT but not allowed for STORAGE_IMAGE#asahi-gpu · 2023-09-06 23:53
alyssajust no SHADER_IMAGEs#asahi-gpu · 2023-09-06 23:53
alyssacompression is fine for render targets#asahi-gpu · 2023-09-06 23:53
alyssa?#asahi-gpu · 2023-09-06 23:23
i509vcband the other things mentioned in gallium#asahi-gpu · 2023-09-06 23:22
i509vcbalyssa: compressed tiling doesn't seem to be allowed for an image that's used as a render target? I guess in vk I'd need to forbid compressed tiling with a color attachment usage#asahi-gpu · 2023-09-06 16:34
alyssawomp#asahi-gpu · 2023-09-06 16:09
i509vcbcan't test indirect draw, meta copy is still broken...#asahi-gpu · 2023-09-06 15:14
alyssa+1#asahi-gpu · 2023-09-06 15:12
i509vcbokay for later#asahi-gpu · 2023-09-06 15:12
alyssa("Do you have a plan for everything?" "Yes.")#asahi-gpu · 2023-09-06 15:11
alyssa(if we try to implement it now, we'll fail, there are a bunch of pieces that are needed first. luckily it won't be required for a while yet.)#asahi-gpu · 2023-09-06 15:11
alyssattbomk it is not supported, I have a plan for it but please totally ignore it for now#asahi-gpu · 2023-09-06 15:10
i509vcb(the gl equivalents are in ARB_indirect_parameters)#asahi-gpu · 2023-09-06 15:03
i509vcbI don't know what the gl equivalent of that is but I definitely saw a capability related to that in the documentation #asahi-gpu · 2023-09-06 15:00
i509vcb(If I am going to implement indirect draws may as well turn every stone)#asahi-gpu · 2023-09-06 15:00
i509vcbalyssa: do you know if the hardware supports taking an indirect draw call count from a buffer (https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_KHR_draw_indirect_count.html) or would implementing that require some shader magic?#asahi-gpu · 2023-09-04 22:39
alyssabizarre.#asahi-gpu · 2023-09-04 22:37
alyssawonders how that happened#asahi-gpu · 2023-09-04 22:36
alyssaNot intentionally..#asahi-gpu · 2023-09-04 22:36
i509vcbalyssa: did the uuid stuff accidentally vanish from asahi/main during a rebase?#asahi-gpu · 2023-09-04 18:59
i509vcbs/load/clear#asahi-gpu · 2023-09-04 18:58
i509vcbhmm but the load still doesn't consider that#asahi-gpu · 2023-09-04 18:57
i509vcbAh agx_meta_key has a reserved preamble, so I don't need that#asahi-gpu · 2023-09-04 18:52
i509vcbI guess I need to add a way to tell agx_meta to offset where it loads the clear color#asahi-gpu · 2023-09-04 18:50
i509vcbthe .base is implied#asahi-gpu · 2023-09-04 18:50
i509vcbnope double ignore#asahi-gpu · 2023-09-04 18:50
i509vcbhmm no ignore that#asahi-gpu · 2023-09-04 18:48
i509vcbHmm it seems that agx_meta just happens to work, moving the sysvals up to u2_u3 breaks because of the hardcoded uniform locations#asahi-gpu · 2023-09-04 18:48
i509vcb> nir_load_preamble(b, nr, 32, 4 + (rt * 8))#asahi-gpu · 2023-09-04 18:43
alyssayes?#asahi-gpu · 2023-09-04 18:42
i509vcbdoes the clear color have to appear in a uniform reg?#asahi-gpu · 2023-09-04 18:41
alyssaclear colour#asahi-gpu · 2023-09-04 18:40
i509vcbHmm I guess I need to take a sidequest on why AGX_META_OP_CLEAR handling in agxv is uploading a uniform#asahi-gpu · 2023-09-04 18:35
alyssaso.. I guess the way it works now is the right way, it's just kinda ugly#asahi-gpu · 2023-09-04 18:35
alyssasince it's an optional opt pass#asahi-gpu · 2023-09-04 18:35
alyssathis means at a fundamental level nir_opt_preamble can't be used to push the address#asahi-gpu · 2023-09-04 18:35
alyssa18:29 @alyssa | the issue is that the base address MUST come from a uniform, it CANNOT come from registers#asahi-gpu · 2023-09-04 18:30
alyssaI mean, I probably need to redo this anyway for $SECRET_PROJECT, just not sure what the right way is yet.#asahi-gpu · 2023-09-04 18:29
alyssaalright#asahi-gpu · 2023-09-04 18:29
i509vcbI can just shift everything since how I redid the sysvals the sysval pointer is placed at it's location via a defined constant