mesa/src/asahi/lib
Alyssa Rosenzweig 17355f716b treewide: use UTIL_DYNARRAY_INIT
Instead of util_dynarray_init(&dynarray, NULL), just use
UTIL_DYNARRAY_INIT instead. This is more ergonomic.

Via Coccinelle patch:

    @@
    identifier dynarray;
    @@

    -struct util_dynarray dynarray = {0};
    -util_dynarray_init(&dynarray, NULL);
    +struct util_dynarray dynarray = UTIL_DYNARRAY_INIT;

    @@
    identifier dynarray;
    @@

    -struct util_dynarray dynarray;
    -util_dynarray_init(&dynarray, NULL);
    +struct util_dynarray dynarray = UTIL_DYNARRAY_INIT;

    @@
    expression dynarray;
    @@

    -util_dynarray_init(&(dynarray), NULL);
    +dynarray = UTIL_DYNARRAY_INIT;

    @@
    expression dynarray;
    @@

    -util_dynarray_init(dynarray, NULL);
    +(*dynarray) = UTIL_DYNARRAY_INIT;

Followed by sed:

    bash -c "find . -type f -exec sed -i -e 's/util_dynarray_init(&\(.*\), NULL)/\1 = UTIL_DYNARRAY_INIT/g' \{} \;"
    bash -c "find . -type f -exec sed -i -e 's/util_dynarray_init( &\(.*\), NULL )/\1 = UTIL_DYNARRAY_INIT/g' \{} \;"
    bash -c "find . -type f -exec sed -i -e 's/util_dynarray_init(\(.*\), NULL)/*\1 = UTIL_DYNARRAY_INIT/g' \{} \;"

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38189>
2025-11-04 13:39:48 +00:00
..
tests asahi: add missing tib alignment check 2024-01-10 08:44:38 -04:00
agx_abi.h hk,asahi: move scratch BO to common 2025-06-27 15:31:44 +00:00
agx_bg_eot.c asahi: use 16-bit coordinates for bg program 2025-08-03 14:41:11 -04:00
agx_bg_eot.h asahi,vtn: precompile kernels 2024-11-28 17:34:12 +00:00
agx_bo.c asahi: Add refcnt assert to agx_bo_unreference() 2025-07-13 17:43:06 +00:00
agx_bo.h asahi: Ensure shared BOs have a prime_fd 2025-07-20 00:45:48 +09:00
agx_border.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
agx_device.c treewide: Make exported DRM FDs read-write. 2025-09-27 19:46:14 +00:00
agx_device.h asahi: enable virtgpu support 2025-08-06 11:11:06 +00:00
agx_device_virtio.c asahi/virtio: fix memleak 2025-10-29 20:41:29 +00:00
agx_device_virtio.h asahi: add broken bits of unstable Linux UAPI 2024-06-14 15:44:30 +00:00
agx_helpers.h poly: Migrate AGX's GS/TESS emulation to common code 2025-10-16 19:25:35 +00:00
agx_linker.c asahi,hk: optimize no-op FS 2025-08-03 14:40:53 -04:00
agx_linker.h asahi,hk: optimize no-op FS 2025-08-03 14:40:53 -04:00
agx_nir_format_helpers.h asahi/lib: use #pragma once 2024-02-14 21:02:32 +00:00
agx_nir_lower_msaa.c treewide: use nir_break_if 2025-06-30 14:51:24 -04:00
agx_nir_lower_sample_intrinsics.c treewide: simplify nir_def_rewrite_uses_after 2025-08-01 15:34:24 +00:00
agx_nir_lower_tilebuffer.c asahi: switch tib lower to intrinsic pass 2025-02-22 02:24:28 +00:00
agx_nir_lower_uvs.c asahi: inline UVS indices 2025-08-03 21:57:26 +00:00
agx_nir_lower_vbo.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
agx_nir_lower_vbo.h hk: support static vertex input state 2025-07-22 11:21:50 +00:00
agx_nir_prolog_epilog.c poly: Migrate AGX's GS/TESS emulation to common code 2025-10-16 19:25:35 +00:00
agx_ppp.h asahi: split frag shader words 2024-05-16 13:25:56 -04:00
agx_scratch.c asahi,hk: mmap BO on first use 2024-12-02 19:26:46 +00:00
agx_scratch.h asahi,vtn: precompile kernels 2024-11-28 17:34:12 +00:00
agx_tilebuffer.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
agx_tilebuffer.h asahi/lib: Move alpha_to_one and alpha_to_coverage lowering to common code. 2025-04-23 09:03:41 +00:00
agx_usc.h all: rename PIPE_SHADER_FRAGMENT to MESA_SHADER_FRAGMENT 2025-08-06 10:28:39 +08:00
agx_uvs.h asahi: extend varying linking for tri fan weirdness 2024-05-14 04:57:27 +00:00
agx_va.c asahi: port to stable uAPI 2025-04-09 20:25:49 +00:00
asahi_proto.h asahi: port to stable uAPI 2025-04-09 20:25:49 +00:00
decode.c util/dynarray: infer type in append 2025-10-24 18:32:07 +00:00
decode.h asahi: drop image heap decode 2025-07-16 18:27:20 +00:00
dyld_interpose.h asahi: Clang-format the subtree 2022-12-27 22:46:29 +00:00
meson.build poly: Migrate AGX's GS/TESS emulation to common code 2025-10-16 19:25:35 +00:00
pool.c treewide: use UTIL_DYNARRAY_INIT 2025-11-04 13:39:48 +00:00
pool.h asahi: label individual pools 2024-12-02 19:26:46 +00:00
wrap.c asahi: fix libwrap.dylib 2025-02-22 02:24:28 +00:00