Erik Faye-Lund
139dd4e772
meson: remove unused USE_FOO_ASM defines
...
The usage of these defines was removed, so let's remove the definitions
as well.
Reviewed-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21212 >
2023-02-14 17:22:14 +00:00
Eric Engestrom
a72035f9c5
util: avoid calling kcmp on Android
...
On some combinations of Android version and kernel version, calling kcmp
results in seccomp killing the process.
As there doesn't seem to be a way to query for that in advance, skip
this check altogether on Android.
Signed-off-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Rob Clark <robclark@freedesktop.org >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20180 >
2023-02-12 17:11:16 +00:00
pal1000
4347072443
meson: Ignore unused variables when assertions are disabled
...
Fixes: 46b099e3
("meson: Ignore unused variables in release builds")
46b099e3
has some issues:
- it doesn't enable unused variables warning on release builds
with assertions enabled;
- it doesn't disable unused variables warning on debug builds
with assertions disabled;
- it doesn't disable unused variables warning when building
with MSVC and assertions are disabled regardless of buildtype,
see #8147 . 3/4 regressions reported there have this limitation
alone as root cause.
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21154 >
2023-02-07 08:44:14 +00:00
Asahi Lina
4ca4a05627
meson: Fix Asahi build on macOS
...
!19950 introduced a dependency between NIR and Vulkan headers, and the
Vulkan headers try to include X11 headers we cannot find on macOS.
Disable this (we have no plans for Vulkan on the macOS testing platform
anyway).
Signed-off-by: Asahi Lina <lina@asahilina.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21059 >
2023-02-05 09:15:48 +00:00
Dylan Baker
fd9b50aa1c
meson: combine checks for linker --gc-sections support
...
We first do an incomplete check for whether the linker supports
--gc-sections, then potentially add C and C++ arguments assuming that it
works, then later do a complete check to see if it actually works and
use --gc-sections. This means we can end up putting functions and data
in separate sections when we can't gc them.
Combine the checks, do less work, and be more accurate.
fixes: f51ce21e4e
("meson: Drop adding -Wl,--gc-sections to project c/cpp arguments.")
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21083 >
2023-02-03 17:48:58 +00:00
Eric Engestrom
6291d4d339
meson: turn android-libbacktrace into a feature option
...
Signed-off-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20915 >
2023-02-01 06:33:52 +00:00
Karol Herbst
4b841cfec8
rusticl: fix build error with valgrind being enabled
...
This bumps the meson requierement to 1.0 because it requires
https://github.com/mesonbuild/meson/pull/11024
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7688
Fixes: 20c90fed5a
("rusticl: added")
Signed-off-by: Karol Herbst <kherbst@redhat.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19778 >
2023-01-30 03:41:39 +01:00
Erik Faye-Lund
59625a68ff
meson: remove deprecated dri-drivers option
...
This was deprecated in cdde031ac2
("classic/i965: Remove driver"),
which is almost two years ago, and many major releases ago. Nobody
should be using this any more. Let's remove it.
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20905 >
2023-01-27 10:29:26 +00:00
Erik Faye-Lund
47d19196c1
meson: remove deprecated osmesa-bits option
...
We've released several new major versions since this was deprecated in
202cab3d30
("meson: deprecate specifying osmesa-bits"), so it's
probably about time to remove it.
Reviewed-by: David Heidelberg <david.heidelberg@collabora.com >
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20905 >
2023-01-27 10:29:26 +00:00
Erik Faye-Lund
713371c723
meson: remove dupliace add_devenv call
...
Looks like a bad merge-conflict resolution.
Fixes: 7bed7d9475
("meson: use sections in summary()")
Reviewed-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Thomas Andersen <phomes@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20908 >
2023-01-27 09:34:00 +00:00
Tomeu Vizoso
b1bd6aa21a
android: Make libbacktrace optional again
...
For the same reason why we used to have USE_LIBBACKTRACE with the old
Android makefiles, allow to build Mesa without linking to it.
In recent VNDK versions, libbacktrace isn't available.
When building without linking libbacktrace, for some reason some symbols
related to C++ exception handling are exposed. Allow them in the symbols
check script.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com >
Signed-off-by: Helen Koike <helen.koike@collabora.com >
Reviewed-by: Sergi Blanch Torné <sergi.blanch.torne@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20019 >
2023-01-25 08:58:25 -03:00
Helen Koike
0e286d0dbc
android: allow system = 'android' on cross file
...
Allow building with system = 'android' on the cross file.
This avoids creating symlinks for the libs.
Suggested-by: Roman Stratiienko <r.stratiienko@gmail.com >
Suggested-by: David Heidelberg <david.heidelberg@collabora.com >
Signed-off-by: Helen Koike <helen.koike@collabora.com >
Reviewed-by: Sergi Blanch Torné <sergi.blanch.torne@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20019 >
2023-01-25 08:58:25 -03:00
Juston Li
1709590439
util/fossilize_db: fix macOS inotify build error
...
require <sys/inotify.h> for fossilize_db
Fixes: 3b69b67545
("util/fossilize_db: add runtime RO foz db loading via FOZ_DBS_DYNAMIC_LIST")
Signed-off-by: Juston Li <justonli@google.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20755 >
2023-01-23 18:31:48 +00:00
Thomas H.P. Andersen
7bed7d9475
meson: use sections in summary()
...
Makes the list easier to read
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12161 >
2023-01-20 04:22:40 +00:00
Thomas H.P. Andersen
6c0dc0b2a7
meson: use summary()
...
Make use of mesons summary() to create and align the configuration
summary.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12161 >
2023-01-20 04:22:39 +00:00
Dylan Baker
a79e6457d8
meson: use builtin support for reading version from a file
...
In meson 0.57 support was added for reading a version from a file to
meson natively, so we don't need this workaround anymore.
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20752 >
2023-01-19 23:06:07 +00:00
Dylan Baker
c31629ee78
meson: remove version checks for < 0.59
...
Which is now required, so these are useless
Reviewed-by: Eric Engestrom <eric@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20752 >
2023-01-19 23:06:07 +00:00
Dylan Baker
75276deebc
meson: Use feature option methods for xmlconfig
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
37463bedec
meson: use a feature option for shared-llvm
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
c52c2ed0f8
meson: use a feature option for egl
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
afa97e7468
meson: use a feature option for zstd
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
e3f60ea4a8
meson: use a feature option for xlib-lease
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
ce490a20e7
meson: use a feature option for power8
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
2653fe11c9
meson: use a feature option for lmsensors
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
202344e9a0
meson: use a feature option for libunwind
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
3f10a89180
meson: use a feature option for valgrind
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
d00c6e0fd7
meson: use a feature option for llvm
...
Still not as awesome as it should be, but an improvement over what we had
before.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
c40e1bb1d0
meson: use a feature option for gbm
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
6b334a8416
meson: use a feature option for gles2
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
ca615a4f16
meson: use a feature option for gles1
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
80eb78d7a4
meson: use a feature option for shared-glapi
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
98bd7cdb8c
meson: use a feature option for shader_cache
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
b200d547dc
meson: use a feature option for gallium-xa
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
6f66b89ac3
meson: use a feature option for gallium-va
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
eac76e433d
meson: use a feature option for gallium-vdpau
...
Which we can use with the require method, and use the feature itself
as the require argument to dependency call. All of this results in less
code
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
8dcc1f8311
meson: use a feature option for dri3
...
This removes the deprecated 'true' and 'false' options, and uses a meson
feature, requiring significantly less code.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
643af2cf83
meson: drop meson < 0.54 workaround
...
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
3c5e969144
meson: replace uses of ExternalProgram.path with .full_path
...
The former is deprecated
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
92235e0c48
meson: replace has_exe_wrapper with can_run_host_binaries
...
The former is a deprecated alias for the latter, which more accurately
describes what the function does.
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Dylan Baker
45632b3297
meson: bump minimum required version to meson 0.59
...
This gives us some utility methods for feature options, allowing even
simpler code. We can replace something like:
```meson
_opt = get_option('opt')
if _opt.auto()
opt = host_machine.system() != 'windows'
else
opt = opt.enabled()
endif
```
with
```meson
opt = get_option('opt') \
.disable_auto_if(host_machine.system() != 'windows') \
.allowed()
```
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20409 >
2023-01-19 16:29:03 +00:00
Mike Blumenkrantz
48a0478126
zink: add renderdoc handling
...
renderdoc won't work with zink in frontends that aren't dri,
so ZINK_RENDERDOC should be used to specify start:end frames
to ensure that the vulkan command stream is captured
this is not a renderdoc issue: there are no frame boundaries in rusticl
or gallium-nine, so there is no possible way that renderdoc could
determine when/how to split frames
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20651 >
2023-01-14 18:15:48 +00:00
Jesse Natalie
a67f5f32a8
meson: Define VK_USE_PLATFORM_WIN32_KHR for C++
...
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com >
Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16200 >
2023-01-11 09:31:02 +00:00
pal1000
f69b43ae3e
OpenCL/draw module: Support linking with LLVM and clang 15 static libraries
...
Cc: mesa-stable
Closes : #7243
Closes : #7487
Reviewed-by: Karol Herbst <kherbst@redhat.com >
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19009 >
2022-12-16 16:52:48 +00:00
Jan Palus
8560ce28c2
vdpau: allow building vdpau st with virgl only
...
Fixes: 6b5aecb195
("virgl: add support for hardware video acceleration")
Signed-off-by: Jan Palus <jpalus@fastmail.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20108 >
2022-12-12 22:01:27 +00:00
David Heidelberg
b19a14a094
nine: enable on panfrost
...
Also, enable required kmsro dependencies.
Tested-by: Aleksey Komarov <q4arus@ya.ru >
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com >
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20238 >
2022-12-10 10:56:09 +00:00
Danylo Piliaiev
1cfc413c9a
meson: Do not enable drm for KGSL Turnip build
...
Android may use either DRM or some downstream solution, KGSL is a
downstream kernel driver for Adreno. Don't enable DRM when we want
Turnip to use KGSL instead of DRM.
Fixes: 09ac29cca9
("meson: Enable system_has_kms_drm for android")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com >
Reviewed-by: Emma Anholt <emma@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20168 >
2022-12-07 10:40:50 +00:00
Eric Engestrom
43eab9252e
meson: sort drivers alphabetically in any-of checks
...
Signed-off-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19977 >
2022-12-01 23:53:08 +00:00
Eric Engestrom
5479234d45
meson: make long any-of checks easier to read and to update
...
Signed-off-by: Eric Engestrom <eric@igalia.com >
Reviewed-by: Dylan Baker <dylan@pnwbakers.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19977 >
2022-12-01 23:53:08 +00:00
Roman Stratiienko
09ac29cca9
meson: Enable system_has_kms_drm for android
...
This allows to build libgbm when system = 'android' is set in
the cross_file.
Cc: "22.3" "22.2" mesa-stable
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com >
Acked-by: Mauro Rossi <issor.oruam@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20033 >
2022-11-29 15:01:22 +00:00
Alyssa Rosenzweig
bdc240e13e
meson: Don't depend on expat for !use_xmlconfig
...
If we don't use xmlconfig, expat becomes an optional dependency on
Linux/BSD, which may be convenient for embedded systems that do not
otherwise need expat. (expat is so ubiquitous that this
probably doesn't matter a ton in practice, but fewer required Mesa deps
is probably nice anyway.)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com >
Suggested-by: Dylan Baker <dylan.c.baker@intel.com >
Reviewed-by: Jesse Natalie <jenatali@microsoft.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19626 >
2022-11-23 23:14:10 +00:00