URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=570ed11303764150ae1da4fea549f72929f8171f Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Sun Oct 1 20:30:40 2023 -0400
asahi: Remove placeholder shader Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c5437276097bb1f0641227057de916f7aa30c1d Author: Alyssa Rosenzweig <aly...@rosenzweig.io> Date: Sun Sep 3 10:06:17 2023 -0400 agx: Use CL for texture lowerings To demonstrate everything working, and the value of this approach. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ef7eec2468ab0daf2b5417ceafe0988f2ff684d Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Sun Oct 1 19:44:29 2023 -0400 asahi: Add software-defined field to texture desc We use this for buffer textures. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=eecd8390d030accd1b4a2e884b29fd18ee86d90c Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Thu Sep 28 11:54:28 2023 -0400 asahi,agx: Plumb libagx Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0be124b77e3f4fa9fba7aa5b7212f7058412217b Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Thu Sep 28 12:45:27 2023 -0400 asahi: Deserialize libagx when opening device Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=75fe90dab01d786a2314e307a4acde9eacd8b7b0 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Thu Sep 28 12:44:09 2023 -0400 asahi: Pass valid memctx to open_device Currently the argument is unused but that's about to change. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cde7ca168304d12195548af29c6ac20e5ff2e5d2 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Thu Oct 12 12:32:27 2023 -0400 asahi: Add asahi_clc infrastructure Based on intel_clc, tuned for libraries. Targets serialized NIR. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a02e46348445a66ee7550639485b6f33acc58df2 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Wed Sep 20 14:52:50 2023 -0400 asahi: Add folder for internal shaders Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=103e300e7f4d756f9f82b8b4f0ed78dc7efdde74 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Sun Oct 1 19:44:51 2023 -0400 asahi: Reexpress genxml pack macro To let NIR unroll it. Workaround NIR bug. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed1b2f40fc89d4e9f44395572367ffb6e8ab4699 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Fri Sep 29 09:08:55 2023 -0400 asahi: Unpack at 32-bit granularity The way we already do for packs. This is more efficient. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0df82f76c410ce5a7304d1afa6e367456ff79e26 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Tue Sep 19 16:18:44 2023 -0400 asahi: Make GenXML compatible with OpenCL Adapt gen_pack.py to generate an OpenCL compatible header, capable of both packing and unpacking but not printing (due to no known use case and no fprintf in CL). This is useful as a building block for manipulating descriptors from shader code, for example in texture lowering or device-generated commands. To accomplish this, we need to inline in some CL-compatible variants of mesa util functions (no doubles, etc), avoid FILE * use in the CL path, and use __constant pointers where applicable for performance. Otherwise, there are surprisingly few changes required, thanks mainly to CL 2.0 generic pointers. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=59499d8dbc8e1bc39293431e59437d994ef73dda Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Tue Sep 19 16:15:20 2023 -0400 asahi: Fix agx_pack unrolling The loop is supposed to execute exactly once, but the previous logic inadvertently executes 0 or 1 times depending on whether dst is NULL (it never is). Reexpress the loop to execute exactly once, eliminating the unnecessary branch in this hot path. Noticed when reading the NIR of generated pack code. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7193849f302afed11a618abd5f7bdfa31d5b6245 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Sun Oct 1 09:41:57 2023 -0400 agx: Fuse ubitfield_extract Similarly, let's get the win everywhere. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5500e02a611ffc91240f4d61ca2b6e8432cbd99d Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Sun Oct 1 09:33:35 2023 -0400 agx: Fuse (unmasked) extr_agx This will clean up genxml unpack code and is needed for parity with the assembly we write by hand. This way we get the win for all shaders. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0cde7b794c2f15d7337884ce81a3430c2d4f1ddc Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Fri Sep 29 10:14:52 2023 -0400 agx: Vectorize load/stores This helps CL shaders. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f27f2e314933266d1dae8787de028fa496cd556 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Thu Sep 28 21:39:32 2023 -0400 agx: Fix lower regular texture metadata for buffer textures, we insert new blocks which invalidates dominance and block index info... leads to end-to-end fails when shuffling pass order. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6afa48e86349e1c0ed2cba05d436eedf784f892 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Wed Sep 20 20:05:00 2023 -0400 clc: Add missing idep_vtn From the libclc linking code. This should probably be split out but that seems like potentially a task for another day. Avoids a linker error in the next commit the easy way. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seu...@gmail.com> Reviewed-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f164edfe71e5ddde47e7aa2bf9e3febe26819e4a Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Sun Oct 1 19:45:39 2023 -0400 vtn: Add spirv_library_to_nir_builder feature This new entrypoint takes in a SPIR-V blob and generates a header containing a static inline nir_builder-family function for each function in the SPIR-V library. The generated function will look for the function in the shader and, if not found, insert a new nir_function with the appropriate signature -- to be linked with the library later. Then, it will call the function, with the appropriate gymnastics to handle return values as necessary. This makes it super convenient to wrap CL libraries for use in a NIR pass. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seu...@gmail.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2d3c74094b0cacf6f03c2f7d047ff7d00b2b2b5 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Sun Oct 1 12:23:59 2023 -0400 meson: Require clc for asahi By the end of the series, this will become a hard dependency for the driver. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seu...@gmail.com> Reviewed-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=01d0d9431977ac25a191c860cb6711f48e6c173f Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Sun Oct 1 12:23:27 2023 -0400 meson: Simplify clc expression To make it easier to add more clc users later. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seu...@gmail.com> Reviewed-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b192f3c458010edaecfea4ec303d79873f07388b Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Sat Sep 2 15:15:54 2023 -0400 nir/builder: Add nir_call helper This adds an idiomatic way to insert NIR function calls with the builder. Since functions have variable numbers of arguments, this is a variadic function. v2: Define with a variadic macro instead, for safety with the argument count. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Reviewed-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=23bea252073c525fe8857b4334465705984dbc40 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Thu Oct 12 12:03:42 2023 -0400 nir: Add nir_remove_non_exported For libraries. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seu...@gmail.com> Reviewed-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6014f745d52cbb698115febce3dc7a7f6fdbd12d Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Thu Oct 12 12:03:11 2023 -0400 nir,vtn: Add exported bool to nir_function For optimizing libraries. Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seu...@gmail.com> Reviewed-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498> URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=103d20e657cda13ca80ff04c59f3d751df8943a2 Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com> Date: Mon Oct 2 08:55:47 2023 -0400 gitlab: Highlight .cl as C It is close enough, and a lot better than the defaults when gitlab doesn't recognize the file format as currently happens for .cl Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seu...@gmail.com> Reviewed-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Faith Ekstrand <faith.ekstr...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498>