mesa/src/freedreno/vulkan
Valentine Burley 190ce8280f
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
meson: Add Soong compatibility compiler flags to Vulkan drivers
Suggested by @gurchetansingh.

Android's Soong build system treats several compiler warnings as errors
by default: https://android.googlesource.com/platform/build/soong/+/27f57506/cc/config/global.go/#218

To catch these issues in Mesa, introduce `soong_compat_c_args`
and `soong_compat_cpp_args` with the following flags treated as errors:
 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS
 -Werror=date-time
 -Werror=gnu-alignof-expression
 -Werror=ignored-qualifiers
 -Werror=implicit-fallthrough
 -Werror=int-conversion
 -Werror=missing-prototypes
 -Werror=pragma-pack
 -Werror=pragma-pack-suspicious-include
 -Werror=sizeof-array-div
 -Werror=string-plus-int
 -Werror=unreachable-code-loop-increment

These compatibility flags are added to the meson configurations
for ANV, Gfxstream, Lavapipe, PanVK, Turnip, and Venus.

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Acked-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Gurchetan Singh <gurchetan.singh.foss@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41644>
2026-05-22 07:09:49 +00:00
..
bvh tu: Reorder includes 2026-04-10 13:55:01 +00:00
ion turnip/kgsl: Support external memory via ION/DMABUF buffers 2024-07-05 15:33:47 +00:00
layers tu: Reorder includes 2026-04-10 13:55:01 +00:00
.clang-format tu: Update .clang-format include categories 2026-04-10 13:55:00 +00:00
.dir-locals.el
.editorconfig
meson.build meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00
msm_kgsl.h tu/kgsl: bump msm_kgsl.h header 2026-04-02 15:55:55 +00:00
TODO
tu_acceleration_structure.cc tu: fix -Wmissing-prototypes errors 2026-05-18 18:30:45 +00:00
tu_acceleration_structure.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_autotune.cc tu/autotune: Clear active_batches before history objects are freed 2026-05-12 08:37:31 +00:00
tu_autotune.h tu/autotune: Fail gracefully when CP counters are unavailable 2026-04-16 21:59:35 +00:00
tu_buffer.cc tu: Add capture/replay for sparse buffers and descriptor buffer. 2026-05-04 08:09:19 +00:00
tu_buffer.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_buffer_view.cc tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_buffer_view.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_clear_blit.cc tu/perfetto: Add performance warning tracepoints 2026-05-04 10:46:39 +00:00
tu_clear_blit.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_cmd_buffer.cc tu: fix implicit fallthrough 2026-05-18 18:30:45 +00:00
tu_cmd_buffer.h turnip, ir3: Use shader for vertex input count 2026-05-01 11:47:18 +00:00
tu_common.h tu: Fix BV/BR race in tu_clone_trace_range when waiting on barrier 2026-05-12 09:01:58 +00:00
tu_cs.cc tu/perfetto: Add a performance warning track to perfetto 2026-05-04 10:46:39 +00:00
tu_cs.h tu/perfetto: Add a performance warning track to perfetto 2026-05-04 10:46:39 +00:00
tu_cs_breadcrumbs.cc tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_descriptor_set.cc tu: Zero out unused parts of descriptors 2026-05-18 16:19:24 +00:00
tu_descriptor_set.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_device.cc util/u_trace: Rework resource management 2026-05-19 20:27:59 +00:00
tu_device.h tu: Disable concurrent binning by default due to perf regressions 2026-05-14 14:38:35 +02:00
tu_dynamic_rendering.cc treewide: use UTIL_DYNARRAY_INIT 2025-11-04 13:39:48 +00:00
tu_dynamic_rendering.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_event.cc tu: Optimize sync2 event handling in the non-asymmetric case 2026-05-01 11:47:18 +00:00
tu_event.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_formats.cc tu: Disable storage image support for depth/stencil. 2026-05-09 13:56:44 -07:00
tu_formats.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_image.cc tu: Implement deferred image creation for ANB and AHB 2026-04-23 21:21:31 +00:00
tu_image.h tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_knl.cc turnip: Add an override to uncached memory type 2026-05-08 12:27:18 +00:00
tu_knl.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_knl_drm.cc tu: Fix tu_bo_make_zombie without queues 2026-05-05 11:47:41 +00:00
tu_knl_drm.h tu: Cleanup some includes 2026-04-10 13:55:01 +00:00
tu_knl_drm_msm.cc tu: fix -Wmissing-prototypes errors 2026-05-18 18:30:45 +00:00
tu_knl_drm_virtio.cc tu: fix -Wmissing-prototypes errors 2026-05-18 18:30:45 +00:00
tu_knl_kgsl.cc tu: kgsl: fix -Wgnu-alignof-expression warning with Clang 2026-05-18 18:30:45 +00:00
tu_lrz.cc tu/perfetto: Add performance warning tracepoints 2026-05-04 10:46:39 +00:00
tu_lrz.h tu: Avoid disabling LRZ when possible for suspend/resume+depth-only draws 2026-01-26 09:48:44 +00:00
tu_nir_lower_demote_samples.cc tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_nir_lower_multiview.cc tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_nir_lower_ray_query.cc tu: fix -Wmissing-prototypes errors 2026-05-18 18:30:45 +00:00
tu_pass.cc tu: Don't enable FDM when there is FDM attachment is UNUSED 2026-05-14 15:50:37 +00:00
tu_pass.h tu/perfetto: Add performance warning tracepoints 2026-05-04 10:46:39 +00:00
tu_perfetto.cc tu: fix -Wmissing-prototypes errors 2026-05-18 18:30:45 +00:00
tu_perfetto.h tu/perfetto: Add performance warning tracepoints 2026-05-04 10:46:39 +00:00
tu_pipeline.cc turnip, ir3: Use shader for vertex input count 2026-05-01 11:47:18 +00:00
tu_pipeline.h Rename *_sha1 names to *_blake3 2026-03-23 07:03:28 +00:00
tu_query_pool.cc tu: Don't zero-initialize query pool 2026-05-01 11:47:18 +00:00
tu_query_pool.h tu: support exposing derived counters through VK_KHR_performance_query 2025-03-03 11:38:28 +00:00
tu_queue.cc tu: Disable concurrent binning by default due to perf regressions 2026-05-14 14:38:35 +02:00
tu_queue.h tu/autotune: Add "Preempt Optimize" mode 2026-04-06 14:19:29 +00:00
tu_rmv.cc tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_rmv.h tu: add RMV support 2024-03-08 11:34:17 +00:00
tu_sampler.cc tu: Don't disable UBWC for D24S8+USAGE_SAMPLED+customBorderColorWithoutFormat 2026-05-13 14:03:00 +00:00
tu_sampler.h tu: Move sampler related code to tu_sampler.cc/h 2024-06-21 19:30:06 +00:00
tu_shader.cc tu: fix -Wmissing-prototypes errors 2026-05-18 18:30:45 +00:00
tu_shader.h tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_suballoc.cc treewide: Replace calling to function ALIGN with align 2025-11-12 21:58:40 +00:00
tu_suballoc.h tu: Give suballoc bo's a name 2024-02-24 01:15:04 +00:00
tu_subsampled_image.cc tu: use nir_op_ffma_weak in lowering 2026-05-19 18:13:35 +00:00
tu_subsampled_image.h tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_tile_config.cc tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_tile_config.h tu: Implement subsampled images 2026-03-06 21:26:46 +00:00
tu_tracepoints.py tu/perfetto: Add performance warning tracepoints 2026-05-04 10:46:39 +00:00
tu_util.cc tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_util.h tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_wsi.cc tu: Reorder includes 2026-04-10 13:55:01 +00:00
tu_wsi.h tu: Replace TU_HAS_SURFACE with TU_USE_WSI_PLATFORM 2024-04-16 10:03:48 +00:00