mesa/src
Thomas Debesse e74e82ea77 gallium/clover: pass -opaque-pointers to Clang on LLVM 15 and 16
This does the exact opposite of 06e96074 from !16129.

Before LLVM commit 702d5de4 opaque pointers were supported but not enabled
by default when building LLVM. They were made default in commit 702d5de4.
LLVM commit d69e9f9d introduced -opaque-pointers/-no-opaque-pointers cc1
options to enable or disable them whatever the LLVM default is.

Those two commits follow llvmorg-15-init and precede llvmorg-15.0.0-rc1 tags.

Since LLVM commit d785a8ea, the CLANG_ENABLE_OPAQUE_POINTERS build option of
LLVM is removed, meaning there is no way to build LLVM with opaque pointers
enabled by default.
It was said at the time it was still possible to explicitly disable opaque
pointers via cc1 -no-opaque-pointers option, but it is known a later commit
broke backward compatibility provided by -no-opaque-pointers as verified with
arbitrary commit d7d586e5, so there is no way to use opaque pointers starting
with LLVM 16.

Those two commits follow llvmorg-16-init and precede llvmorg-16.0.0-rc1 tags.

Since Mesa commit 977dbfc9 opaque pointers are properly implemented in Clover
and used.

If we don't pass -opaque-pointers to Clang on LLVM versions supporting opaque
pointers but disabling them by default, there will be an API mismatch between
Mesa and LLVM and Clover will not work.

Signed-off-by: Thomas Debesse <dev@illwieckz.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19290>
2022-10-25 07:18:16 +02:00
..
amd nir: Drop infer_non_readable option for nir_opt_access() 2022-11-02 03:42:04 +00:00
android_stub
asahi asahi: Identify counts for compute kernels 2022-10-29 19:23:51 +00:00
broadcom v3dv: split event implementation to a separate file 2022-10-28 10:55:37 +00:00
c11 c11: Getting the macro guard of HAVE_PTHREAD in c11/threads.h to be consistence with util/u_uthread.h 2022-10-20 03:04:56 +00:00
compiler panfrost: Don't use nir_variable in the compilers 2022-11-02 04:22:06 +00:00
drm-shim drm-shim: drop gnu99 override 2022-09-16 02:06:38 +00:00
egl egl: Add EGL_EXT_protected_content support 2022-10-27 10:53:18 +00:00
etnaviv util/mesa/wide: Rename _SIMPLE_MTX_INITIALIZER_NP to SIMPLE_MTX_INITIALIZER 2022-10-14 03:27:41 +00:00
freedreno nir: Drop infer_non_readable option for nir_opt_access() 2022-11-02 03:42:04 +00:00
gallium gallium/clover: pass -opaque-pointers to Clang on LLVM 15 and 16 2022-10-25 07:18:16 +02:00
gbm Android: Use libgbm_mesa name for SDK30+ 2022-09-12 07:37:27 +00:00
getopt
glx glx: clean-ups in drisw_glx.c 2022-10-27 03:26:08 +00:00
gtest gtest: Fix maybe-uninitialized compiler warning 2022-06-29 21:02:18 +00:00
hgl
imagination nir: Drop infer_non_readable option for nir_opt_access() 2022-11-02 03:42:04 +00:00
imgui
intel nir: Drop infer_non_readable option for nir_opt_access() 2022-11-02 03:42:04 +00:00
loader loader/dri3: Add DRI performance option to wait for next buffer on swap 2022-10-25 08:30:35 +00:00
mapi mapi: Remove the need of _MTX_INITIALIZER_NP by using simple_mtx_t/SIMPLE_MTX_INITIALIZER in stub.c 2022-10-20 01:32:47 +00:00
mesa nir: Drop infer_non_readable option for nir_opt_access() 2022-11-02 03:42:04 +00:00
microsoft nir: Drop infer_non_readable option for nir_opt_access() 2022-11-02 03:42:04 +00:00
nouveau nouveau/codegen: Support bindless texture queries 2022-11-01 15:29:24 +00:00
panfrost panfrost: Don't use nir_variable in the compilers 2022-11-02 04:22:06 +00:00
tool pps: enable track_event in intel.cfg 2022-10-09 22:39:53 +03:00
util util: glsl2spirv.py: ensure '#endif' is printed in new line 2022-10-30 14:14:21 +01:00
virtio venus: add VK_EXT_depth_clip_control support 2022-10-27 00:22:30 +00:00
vulkan vulkan/runtime: include robustness info when hashing a shader stage 2022-10-27 08:17:11 +00:00
meson.build meson: Remove usage of use_elf_tls 2022-07-29 23:59:11 +00:00