mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-28 07:48:20 +02:00
Two Coccinelle patches here. Didn't catch nearly as much as I would've liked but
it's a start.
Coccinelle patch:
@@
expression intr, repl;
@@
-nir_def_rewrite_uses(&intr->def, repl);
-nir_instr_remove(&intr->instr);
+nir_def_replace(&intr->def, repl);
Coccinelle patch:
@@
identifier intr;
expression instr, repl;
@@
nir_intrinsic_instr *intr = nir_instr_as_intrinsic(instr);
...
-nir_def_rewrite_uses(&intr->def, repl);
-nir_instr_remove(instr);
+nir_def_replace(&intr->def, repl);
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com> [broadcom]
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> [lima]
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> [etna]
Reviewed-by: Pavel Ondračka <pavel.ondracka@gmail.com> [r300]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29817>
|
||
|---|---|---|
| .. | ||
| genxml | ||
| kmod | ||
| tests | ||
| .gitignore | ||
| meson.build | ||
| pan_afbc.c | ||
| pan_attributes.c | ||
| pan_blend.c | ||
| pan_blend.h | ||
| pan_blitter.c | ||
| pan_blitter.h | ||
| pan_clear.c | ||
| pan_desc.c | ||
| pan_desc.h | ||
| pan_earlyzs.c | ||
| pan_earlyzs.h | ||
| pan_encoder.h | ||
| pan_format.c | ||
| pan_format.h | ||
| pan_indirect_dispatch.c | ||
| pan_indirect_dispatch.h | ||
| pan_jc.h | ||
| pan_layout.c | ||
| pan_pool.h | ||
| pan_props.c | ||
| pan_props.h | ||
| pan_samples.c | ||
| pan_samples.h | ||
| pan_scratch.c | ||
| pan_shader.c | ||
| pan_shader.h | ||
| pan_texture.c | ||
| pan_texture.h | ||
| pan_tiler.c | ||
| pan_util.c | ||
| pan_util.h | ||
| wrap.h | ||