mesa/src/microsoft/vulkan
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
..
dzn_abi_helper.h dzn: External Win32 memory extension 2023-05-15 17:14:20 +00:00
dzn_cmd_buffer.c treewide: use UTIL_DYNARRAY_INIT 2025-11-04 13:39:48 +00:00
dzn_descriptor_set.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dzn_device.c treewide: use UTIL_DYNARRAY_INIT 2025-11-04 13:39:48 +00:00
dzn_dxcore.cpp dzn: Use common physical device list/enumeration helpers 2023-01-24 17:22:25 +00:00
dzn_dxgi.c dzn: Use common physical device list/enumeration helpers 2023-01-24 17:22:25 +00:00
dzn_dxgi.h dzn: Move DXGI code to a separate file and only build it on Windows 2022-07-06 12:18:55 +00:00
dzn_image.c vulkan: Drop the driver_internal from vk_image_view_init/create() 2025-09-05 23:34:14 +00:00
dzn_meta.c util/hash_table: don't allocate hash_table_u64::table, declare it statically 2025-08-21 06:13:48 +00:00
dzn_nir.c dozen: Use NIR_PASS instead of NIR_PASS_V 2025-07-25 08:55:14 -07:00
dzn_nir.h dzn: Rework indirect drawing keys for shaders and command signatures 2024-04-05 00:25:41 +00:00
dzn_physical_device_enum.h dzn: Include vulkan_core.h instead of vulkan.h in the device enum header 2024-03-25 19:11:35 +00:00
dzn_pipeline.c microsoft: switch to new subgroup size info 2025-09-12 21:05:17 +00:00
dzn_private.h build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dzn_query.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dzn_sync.c treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
dzn_util.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
dzn_wsi.c vulkan/wsi: Make get_blit_queue return a struct vk_queue * 2025-08-22 23:05:03 +00:00
meson.build vulkan: Compute path to write into JSON manifests once, use it everywhere 2025-09-26 10:47:31 +00:00