mesa/src/intel
Alyssa Rosenzweig c39896b17b nir: Use getters for nir_src::parent_*
First, we need to give the parent_instr field a unique name to be able to
replace with a helper.  We have parent_instr fields for both nir_src and
nir_def, so let's rename nir_src::parent_instr in preparation for rework.

This was done with a combination of sed and manual fix-ups.

Then we use semantic patches plus manual fixups:

    @@
    expression s;
    @@

    -s->renamed_parent_instr
    +nir_src_parent_instr(s)

    @@
    expression s;
    @@

    -s.renamed_parent_instr
    +nir_src_parent_instr(&s)

    @@
    expression s;
    @@

    -s->parent_if
    +nir_src_parent_if(s)

    @@
    expression s;
    @@

    -s.renamed_parent_if
    +nir_src_parent_if(&s)

    @@
    expression s;
    @@

    -s->is_if
    +nir_src_is_if(s)

    @@
    expression s;
    @@

    -s.is_if
    +nir_src_is_if(&s)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24671>
2023-10-10 04:58:05 -04:00
..
blorp blorp: fix hangs with mesh enabled 2023-09-12 02:51:31 +00:00
ci ci: skip dEQP-VK.api.driver_properties.conformance_version for everyone 2023-10-06 17:37:20 +00:00
common intel/common: Add sse2_args for 32-bit build when -Dsse2=false was set 2023-09-15 17:39:55 -07:00
compiler nir: Use getters for nir_src::parent_* 2023-10-10 04:58:05 -04:00
dev intel: Sync xe_drm.h 2023-09-13 16:38:15 +00:00
ds intel/ds: track acceleration RT commands 2023-10-06 11:10:12 +00:00
genxml intel/genxml: remove HDC from gen11.xml, it is not available 2023-10-02 12:05:54 +00:00
isl isl: Use 16-bit instead of 8-bits for surface format info fields 2023-10-02 17:24:33 +00:00
nullhw-layer meson: support installation tags 2023-09-11 13:00:45 +00:00
perf intel: Move i915_drm.h specific code from common/intel_gem.h to common/i915/intel_gem.h 2023-07-28 15:36:52 +00:00
tools intel/common: Move intel_clflush.h to intel_mem.h/intel_mem.c 2023-09-06 01:39:53 +00:00
vulkan vulkan/runtime: add internal parameter to vk_spirv_to_nir 2023-10-09 23:37:51 +00:00
vulkan_hasvk hasvk: Use the common GetPhysicalDeviceFeatures2 implementation 2023-09-27 23:02:29 +00:00
meson.build intel: Only build perf if drivers or tools are enabled 2023-08-31 21:53:19 +00:00