#
✕ nick:i509VCB
#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-06 23:59
i509vcbMust have misread something then elsewhere
#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:09
i509vcbcan't test indirect draw, meta copy is still broken...
#asahi-gpu · 2023-09-06 15:12
i509vcbokay for later
#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: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:42
i509vcbdoes the clear color have to appear in a uniform reg?
#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: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
#asahi-gpu · 2023-09-04 18:27
i509vcbI am entirely lost there
#asahi-gpu · 2023-09-04 18:27
i509vcb> I probably need to change how this works in the compiler don't I
#asahi-gpu · 2023-09-04 18:27
i509vcbI can see that I'd need to upload the texture descriptors when descriptor sets are bound
#asahi-gpu · 2023-09-04 18:16
i509vcbokay red herring then
#asahi-gpu · 2023-09-04 18:15
i509vcb(Descriptor set accesses pretty much)
#asahi-gpu · 2023-09-04 18:15
i509vcbalyssa: for lowering all texture/image instructions to bindless, panvk appears to do something similar to that?
#asahi-gpu · 2023-08-31 14:57
i509vcbAh ok nvm
#asahi-gpu · 2023-08-31 14:56
i509vcbVK_EXT_image_drm_format_modifier is one of the big extensions for getting wlroots vulkan renderer to work, but there are a few dependent extensions needed there
#asahi-gpu · 2023-08-31 14:54
i509vcbThere's definitely stuff in agxv if you want to burn time there
#asahi-gpu · 2023-08-30 22:53
i509vcbalyssa: oops in patch, here's another
#asahi-gpu · 2023-08-30 21:49
i509vcb maxDepth: float = 1
#asahi-gpu · 2023-08-30 21:49
i509vcb minDepth: float = 0
#asahi-gpu · 2023-08-30 21:49
i509vcb height: float = -720
#asahi-gpu · 2023-08-30 21:49
i509vcb width: float = 1280
#asahi-gpu · 2023-08-30 21:49
i509vcb y: float = 720
#asahi-gpu · 2023-08-30 21:49
i509vcb x: float = 0
#asahi-gpu · 2023-08-30 21:49
i509vcb pViewports[0]: const VkViewport = 0xfffff8571848:
#asahi-gpu · 2023-08-30 21:49
i509vcb pViewports: const VkViewport* = 0xfffff8571848
#asahi-gpu · 2023-08-30 21:49
i509vcb viewportCount: uint32_t = 1
#asahi-gpu · 2023-08-30 21:49
i509vcb firstViewport: uint32_t = 0
#asahi-gpu · 2023-08-30 21:49
i509vcb commandBuffer: VkCommandBuffer = 0xaaab67735310
#asahi-gpu · 2023-08-30 21:49
i509vcbLooking at the API dump we get this:
#asahi-gpu · 2023-08-30 21:49
i509vcbvkCmdSetViewport(commandBuffer, firstViewport, viewportCount, pViewports) returns void:
#asahi-gpu · 2023-08-30 21:07
i509vcbFixing the negative viewport thing apparently was enough to run an iced app (although a simple one)
#asahi-gpu · 2023-08-30 20:43
i509vcbyes that was the issue

plus ›