mesa/src/panfrost
Alyssa Rosenzweig 9b07550908 treewide: use nir_shader_alu_pass
@def@
        typedef bool;
        typedef nir_builder;
        typedef nir_instr;
        typedef nir_def;
        identifier fn, instr, intr, x, builder, data;
        @@

        static fn(nir_builder* builder,
        -nir_instr *instr,
        +nir_alu_instr *intr,
        ...)
        {
        (
        -   if (instr->type != nir_instr_type_alu)
        -      return false;
        -   nir_alu_instr *intr = nir_instr_as_alu(instr);
        |
        -   nir_alu_instr *intr = nir_instr_as_alu(instr);
        -   if (instr->type != nir_instr_type_alu)
        -      return false;
        )

        <...
        (
        -instr->x
        +intr->instr.x
        |
        -instr
        +&intr->instr
        )
        ...>

        }

        @pass depends on def@
        identifier def.fn;
        expression shader, progress;
        @@

        (
        -nir_shader_instructions_pass(shader, fn,
        +nir_shader_alu_pass(shader, fn,
        ...)
        |
        -NIR_PASS_V(shader, nir_shader_instructions_pass, fn,
        +NIR_PASS_V(shader, nir_shader_alu_pass, fn,
        ...)
        |
        -NIR_PASS(progress, shader, nir_shader_instructions_pass, fn,
        +NIR_PASS(progress, shader, nir_shader_alu_pass, fn,
        ...)
        )

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30582>
2024-08-10 13:40:21 +00:00
..
ci panvk: Update CI fails 2024-07-24 10:46:00 +00:00
compiler nir/lower_vars_to_scratch: calculate threshold-limited variable size separately 2024-08-07 14:32:28 +00:00
drm-shim build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
ds build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
include panfrost: implement a driver-specific max-miplevel 2024-04-18 15:04:57 +00:00
lib panfrost: use RGB1 component ordering for R5G6B5 pixel formats 2024-08-08 13:42:34 +00:00
midgard treewide: use nir_shader_alu_pass 2024-08-10 13:40:21 +00:00
perf build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
shared format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
tools build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
util format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
vulkan panvk: Pass attrib_buf_idx_offset to desc_copy_info 2024-07-26 08:55:26 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
meson.build build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00