mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-19 09:18:10 +02:00
Via Coccinelle patch:
@def@
typedef bool;
typedef nir_builder;
typedef nir_instr;
typedef nir_def;
identifier fn, instr, intr, x, builder, data;
@@
static fn(struct nir_builder* builder,
-nir_instr *instr,
+nir_intrinsic_instr *intr,
...)
{
(
- if (instr->type != nir_instr_type_intrinsic)
- return false;
- nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr);
|
- nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr);
- if (instr->type != nir_instr_type_intrinsic)
- 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_intrinsics_pass(shader, fn,
...)
|
-NIR_PASS_V(shader, nir_shader_instructions_pass, fn,
+NIR_PASS_V(shader, nir_shader_intrinsics_pass, fn,
...)
|
-NIR_PASS(progress, shader, nir_shader_instructions_pass, fn,
+NIR_PASS(progress, shader, nir_shader_intrinsics_pass, fn,
...)
)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24852>
|
||
|---|---|---|
| .. | ||
| test | ||
| agx_builder.h.py | ||
| agx_compile.c | ||
| agx_compile.h | ||
| agx_compiler.h | ||
| agx_dce.c | ||
| agx_debug.h | ||
| agx_insert_waits.c | ||
| agx_internal_formats.h | ||
| agx_ir.c | ||
| agx_liveness.c | ||
| agx_lower_64bit.c | ||
| agx_lower_parallel_copy.c | ||
| agx_lower_pseudo.c | ||
| agx_lower_uniform_sources.c | ||
| agx_minifloat.h | ||
| agx_nir.h | ||
| agx_nir_algebraic.py | ||
| agx_nir_fence_images.c | ||
| agx_nir_lower_address.c | ||
| agx_nir_lower_discard_zs_emit.c | ||
| agx_nir_lower_frag_sidefx.c | ||
| agx_nir_lower_interpolation.c | ||
| agx_nir_lower_load_mask.c | ||
| agx_nir_lower_sample_mask.c | ||
| agx_nir_lower_shared_bitsize.c | ||
| agx_nir_lower_texture.c | ||
| agx_nir_opt_preamble.c | ||
| agx_opcodes.c.py | ||
| agx_opcodes.h.py | ||
| agx_opcodes.py | ||
| agx_opt_cse.c | ||
| agx_opt_empty_else.c | ||
| agx_optimizer.c | ||
| agx_pack.c | ||
| agx_performance.c | ||
| agx_print.c | ||
| agx_register_allocate.c | ||
| agx_validate.c | ||
| meson.build | ||