mesa/src/panfrost/compiler
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
..
bifrost meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00
midgard meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00
meson.build meson: Add Soong compatibility compiler flags to Vulkan drivers 2026-05-22 07:09:49 +00:00
pan_compiler.c pan: Add v14 support 2026-05-13 17:37:35 +00:00
pan_compiler.h panvk: Remove pan_optimize_nir call 2026-04-30 18:26:12 +00:00
pan_nir.h pan/bi: Add nir_fuse_io pass 2026-05-18 08:05:42 +00:00
pan_nir_collect_varyings.c pan/bi: Add a printing helper for pan_varying_layout 2026-05-18 08:05:42 +00:00
pan_nir_fuse_io_cvt.c pan/bi: Add nir_fuse_io pass 2026-05-18 08:05:42 +00:00
pan_nir_lower_bool_to_bitsize.c pan/bi: Switch old license texts to SPDX 2026-05-18 08:05:42 +00:00
pan_nir_lower_framebuffer.c pan: add some missing formats to pan_nir_lower_framebuffer 2026-02-23 13:32:57 +00:00
pan_nir_lower_fs_inputs.c pan/compiler/lower_fs_inputs: Do not trust slot->alu_type 2026-05-13 09:15:58 +00:00
pan_nir_lower_fs_outputs.c pan/compiler: Allow 16-bit alpha for atest_pan 2026-04-30 17:33:09 +00:00
pan_nir_lower_helper_invocation.c panfrost: SPDX everything 2026-01-20 20:49:33 +00:00
pan_nir_lower_image.c pan/nir: Lower image queries in NIR on Valhall+ 2026-05-07 00:36:02 +00:00
pan_nir_lower_image_ms.c pan: change image2DMSArray lowering to use Z instead of Y 2026-03-25 15:05:53 +00:00
pan_nir_lower_noperspective.c pan/compiler: Collect nopersp varyings in lower_noperspective_fs 2026-04-30 18:26:13 +00:00
pan_nir_lower_sample_position.c panfrost: SPDX everything 2026-01-20 20:49:33 +00:00
pan_nir_lower_tex.c pan/bi: Use LOD_MODE_EXPLICIT for the 2nd half of textureGrad() on Bifrost 2026-05-13 08:10:23 +00:00
pan_nir_lower_var_special.c pan/compiler: Replace frag_coord_zw_pan with var_special_pan 2026-03-27 19:23:02 +00:00
pan_nir_lower_vertex_id.c pan/compiler: Move all NIR passe definitions to pan_nir.h 2025-12-02 21:00:30 +00:00
pan_nir_lower_vs_outputs.c pan: Add support for 64 bit gpu_id 2026-04-09 09:49:20 +00:00
pan_nir_lower_xfb.c nir: merge xfb and xfb2 into one 64bit intrinsic index 2026-03-10 07:46:22 +00:00
pan_nir_resize_varying_io.c pan/bi: Switch old license texts to SPDX 2026-05-18 08:05:42 +00:00