mesa/src/panfrost/vulkan
Alyssa Rosenzweig 99a00e2247 treewide: Use nir_trim_vector more
Via Coccinelle patches

    @@
    expression a, b, c;
    @@

    -nir_channels(b, a, (1 << c) - 1)
    +nir_trim_vector(b, a, c)

    @@
    expression a, b, c;
    @@

    -nir_channels(b, a, BITFIELD_MASK(c))
    +nir_trim_vector(b, a, c)

    @@
    expression a, b;
    @@

    -nir_channels(b, a, 3)
    +nir_trim_vector(b, a, 2)

    @@
    expression a, b;
    @@

    -nir_channels(b, a, 7)
    +nir_trim_vector(b, a, 3)

Plus a fixup for pointless trimming an immediate in RADV and radeonsi.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23352>
2023-06-06 18:52:25 +00:00
..
meson.build panvk: port panvk_logi to vk_logi 2023-05-04 10:15:35 +00:00
panvk_cmd_buffer.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_cs.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_cs.h panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_descriptor_set.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_device.c panfrost: Reformat using the new style 2023-05-29 21:06:12 +00:00
panvk_formats.c panfrost: Reformat using the new style 2023-05-29 21:06:12 +00:00
panvk_image.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_mempool.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_mempool.h panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_pass.c panfrost: Reformat using the new style 2023-05-29 21:06:12 +00:00
panvk_pipeline.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_pipeline_cache.c panvk: Stub pipeline cache using the common code 2022-05-09 13:40:17 +00:00
panvk_private.h panvk: drop path from panvk_physical_device struct 2023-05-15 09:15:59 +00:00
panvk_query.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_shader.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_varyings.h panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_cmd_buffer.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_cmd_buffer.h panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_cs.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_cs.h panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_descriptor_set.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_device.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_device.h panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_image.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_meta.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_meta.h panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_meta_blit.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_meta_clear.c panvk: clear dangling pointers 2023-05-04 15:02:44 +02:00
panvk_vX_meta_copy.c treewide: Use nir_trim_vector more 2023-06-06 18:52:25 +00:00
panvk_vX_nir_lower_descriptors.c panvk: Lower legacy atomics earlier 2023-05-16 22:36:21 +00:00
panvk_vX_pipeline.c panvk: Clang-format 2023-04-10 21:56:04 +00:00
panvk_vX_shader.c treewide: Stop lowering legacy atomics 2023-05-16 22:36:21 +00:00
panvk_wsi.c panvk: Clang-format 2023-04-10 21:56:04 +00:00