mesa/src/virtio/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
..
.clang-format
meson.build meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00
vn_acceleration_structure.c venus: add missing VKAPI_ATTR/CALL 2025-12-10 18:11:07 +00:00
vn_acceleration_structure.h
vn_android.c venus: adopt common ANB helpers 2026-04-24 16:25:36 +00:00
vn_android.h venus: adopt common ANB helpers 2026-04-24 16:25:36 +00:00
vn_buffer.c venus: cache VkBufferUsageFlags2CreateInfo 2026-01-18 08:10:53 +00:00
vn_buffer.h venus: track prime blit dst buffer memory in the wsi image 2026-01-21 23:15:40 +00:00
vn_command_buffer.c venus: cmd inheritance info fix to consider descriptor heap 2026-02-15 04:32:28 +00:00
vn_command_buffer.h
vn_common.c venus: add vn_relax_warn to check if at warn order 2026-04-10 12:16:03 +00:00
vn_common.h venus: add vn_relax_warn to check if at warn order 2026-04-10 12:16:03 +00:00
vn_cs.c
vn_cs.h
vn_descriptor.h venus: add vn_descriptor.h to be shared between different desc systems 2026-02-15 04:32:28 +00:00
vn_descriptor_heap.c venus: RegisterCustomBorderColorEXT can be async when index is requested 2026-02-25 18:02:46 +00:00
vn_descriptor_set.c venus: add vn_descriptor.h to be shared between different desc systems 2026-02-15 04:32:28 +00:00
vn_descriptor_set.h venus: add vn_descriptor.h to be shared between different desc systems 2026-02-15 04:32:28 +00:00
vn_device.c venus: fix a renderer side queue timeline bound race 2026-05-15 16:11:29 +00:00
vn_device.h venus: track swapchains 2026-01-13 19:47:08 +00:00
vn_device_memory.c venus: track prime blit dst buffer memory in the wsi image 2026-01-21 23:15:40 +00:00
vn_device_memory.h venus: track dedicated image during mem alloc 2026-01-21 23:15:41 +00:00
vn_feedback.c venus: add vn_queue_family_can_feedback helper 2025-10-25 00:02:59 +00:00
vn_feedback.h
vn_host_copy.c venus: add missing VKAPI_ATTR/CALL 2025-12-10 18:11:07 +00:00
vn_icd.c venus: add missing VKAPI_ATTR/CALL 2025-12-10 18:11:07 +00:00
vn_icd.h
vn_image.c venus: adopt common ANB helpers 2026-04-24 16:25:36 +00:00
vn_image.h venus: adopt common vk_image::anb_memory 2026-04-24 16:25:36 +00:00
vn_instance.c util: pass a struct to driParseConfigFiles() 2026-05-19 19:51:45 +00:00
vn_instance.h
vn_physical_device.c venus: fix to relax the KHR_external_memory_fd requirement 2026-03-23 17:39:53 +00:00
vn_physical_device.h Inline SHA1_DIGEST_LENGTH 2026-03-23 07:03:27 +00:00
vn_pipeline.c venus: pipeline layout is now optional 2026-02-15 04:32:28 +00:00
vn_pipeline.h
vn_query_pool.c venus: ensure qfb can catch device lost 2026-04-10 12:16:03 +00:00
vn_query_pool.h
vn_queue.c venus: ensure ffb can catch device lost 2026-04-10 12:16:04 +00:00
vn_queue.h venus: allow vtest to properly wait for present 2026-01-19 21:01:13 +00:00
vn_render_pass.c venus: amend missing VKAPI_ATTR/CALL for render pass APIs 2026-01-01 20:11:28 +00:00
vn_render_pass.h
vn_renderer.h venus: add vn_renderer_bo_export_sync_file helper 2026-01-21 23:15:41 +00:00
vn_renderer_internal.c venus: add vn_renderer_bo_export_sync_file helper 2026-01-21 23:15:41 +00:00
vn_renderer_internal.h venus: add vn_renderer_bo_export_sync_file helper 2026-01-21 23:15:41 +00:00
vn_renderer_util.c
vn_renderer_util.h
vn_renderer_virtgpu.c venus: Fix error log on PPC 2026-02-09 21:35:45 +00:00
vn_renderer_vtest.c venus: add vn_renderer_bo_export_sync_file helper 2026-01-21 23:15:41 +00:00
vn_ring.c venus: disable TLS ring prio forwarding on Windows 2025-12-20 19:12:47 +00:00
vn_ring.h
vn_wsi.c venus: force prime blit on Nvidia GPU 2026-03-12 20:03:19 +00:00
vn_wsi.h venus: track prime blit dst buffer memory in the wsi image 2026-01-21 23:15:40 +00:00