mesa/src/panfrost
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
..
ci ci: rename x86 and amd64 to x86_64, armhf to arm32, and i386 to x86_32 2023-06-02 21:30:15 +02:00
compiler panfrost: Reformat using the new style 2023-05-29 21:06:12 +00:00
drm-shim panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
ds panfrost: rename *.cc files to *.cpp 2023-05-26 18:07:38 +01:00
include panfrost: Re-run clang-format 2023-04-10 21:56:04 +00:00
lib treewide: Use nir_tex_src_for_ssa 2023-06-06 18:52:25 +00:00
midgard panfrost: Reformat using the new style 2023-05-29 21:06:12 +00:00
perf panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
shared meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
tools panfrost: clang-format the tree 2022-12-24 02:22:57 +00:00
util treewide: Use nir_trim_vector more 2023-06-06 18:52:25 +00:00
vulkan treewide: Use nir_trim_vector more 2023-06-06 18:52:25 +00:00
.clang-format panfrost: Use the Mesa base style 2023-05-29 21:06:12 +00:00
meson.build panfrost: drop no-longer-needed libglsl 2023-02-10 14:09:37 +00:00