mesa/src/asahi
Konstantin Seurer de32f9275f treewide: add & use parent instr helpers
We add a bunch of new helpers to avoid the need to touch >parent_instr,
including the full set of:

* nir_def_is_*
* nir_def_as_*_or_null
* nir_def_as_* [assumes the right instr type]
* nir_src_is_*
* nir_src_as_*
* nir_scalar_is_*
* nir_scalar_as_*

Plus nir_def_instr() where there's no more suitable helper.

Also an existing helper is renamed to unify all the names, while we're
churning the tree:

* nir_src_as_alu_instr -> nir_src_as_alu

..and then we port the tree to use the helpers as much as possible, using
nir_def_instr() where that does not work.

Acked-by: Marek Olšák <maraeo@gmail.com>

---

To eliminate nir_def::parent_instr we need to churn the tree anyway, so I'm
taking this opportunity to clean up a lot of NIR patterns.

Co-authored-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38313>
2025-11-12 21:22:13 +00:00
..
ci asahi: Update CI expectations 2025-10-24 22:41:53 +00:00
clc asahi/clc: promote bindless textures 2025-07-10 14:55:18 -04:00
compiler treewide: add & use parent instr helpers 2025-11-12 21:22:13 +00:00
drm-shim asahi: fix drm-shim 2025-09-15 22:46:21 +00:00
genxml asahi: reduce ppp alignment 2025-08-08 10:10:58 +00:00
isa agx: fix simd reduce forcing no cache bit 2025-08-03 14:40:54 -04:00
layout asahi,ail: fix multi-plane imports 2025-11-01 14:06:32 +00:00
lib treewide: add & use parent instr helpers 2025-11-12 21:22:13 +00:00
libagx poly: Migrate AGX's GS/TESS emulation to common code 2025-10-16 19:25:35 +00:00
vulkan nir: Add a type parameter to nir_lower_point_size() 2025-11-12 01:34:36 +00:00
.clang-format clang-format: Update the .clang-format files to conformance clang-format json-schema 2025-09-09 07:04:55 +00:00
meson.build agx: add XML-based disassembler 2025-06-05 18:57:42 +00:00