mesa/src/microsoft
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 ci: Bump DirectX-Headers and Agility SDK dependencies to 1.618.1 2025-10-01 14:46:15 -04:00
clc treewide: add & use parent instr helpers 2025-11-12 21:22:13 +00:00
compiler treewide: add & use parent instr helpers 2025-11-12 21:22:13 +00:00
spirv_to_dxil microsoft/compiler: Use lower_mem_access_bit_sizes for scratch/shared 2025-10-10 19:53:15 +00:00
vulkan mesa: replace most occurrences of getenv() with os_get_option() 2025-11-06 04:36:13 +00:00
meson.build d3d12: Do not build microsoft/compiler when graphics, gl or vk disabled 2025-05-08 14:17:22 +00:00