summaryrefslogtreecommitdiff
path: root/meson_options.txt
AgeCommit message (Collapse)AuthorFilesLines
8 daysbuild/amd: add amd-use-llvm build optionMike Blumenkrantz1-0/+8
this allows amd drivers to disable llvm support while still allowing llvmpipe/lavapipe to be built by disabling llvm support in amd drivers, the load times for these drivers decreases by 5-10ms Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Tested-by: Mike Lothian <mike@fireburn.co.uk> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28969>
2024-04-23meson: implement split-debugDavid Heidelberg1-0/+6
split-debug uses C args `--gsplit-dwarf` and linker args `--gdb-index` to achieve split debug, speed up the CI linking, and allow us to distribute debug symbols standalone. Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28576>
2024-04-15meson: Add missing newline at eofChristian Gmeiner1-1/+1
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28747>
2024-04-06meson: auto-enable glvnd when libglvnd is installedEric Engestrom1-1/+0
We've talked about flipping the default value of `glvnd` to `true` a bunch of times but never actually went through with it because some don't want to use glvnd, so let's instead go for the middle ground of "enabled glvnd by default if it's installed". Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26367>
2024-04-06meson: turn `glvnd` option into a featureEric Engestrom1-2/+3
Makes for nicer code, and allows the next commit. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26367>
2024-03-12intel: Enable Xe KMD support by defaultJosé Roberto de Souza1-8/+1
Xe KMD landed on drm-next, uAPI is now stable and we can remove the build time parameter to enable support to it but platforms older than Lunar lake will have experimental support with Xe KMD. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20418>
2024-03-06d3d12: Add partial media, compute, graphics support with CORE and GENERIC ↵Sil Vilerino1-0/+7
feature levels Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27997>
2024-02-28meson: Rename nouveau-experimental to nouveau and build by default on x86Faith Ekstrand1-1/+1
Reviewed-by: Joshua Ashton <joshua@froggi.es> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27832>
2024-02-16meson: rework intel-rt option to be a featureDylan Baker1-5/+1
This allows intel-rt to be turned on in cases where we're on x86_64 and we're building anv, but otherwise default to off, while still giving users the power to ignore those defaults if they want to. Because of the use of `feature.disable_if` this bumps the Meson requirement to 1.1. I can get rid of that, but it just makes for a lot more code than using the helper methods Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27645>
2024-02-16meson: drop intel-cl deprecation of 'false'Dylan Baker1-1/+1
It maps to `disabled`, which isn't actually an option. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27645>
2024-02-13meson: enforce build of intel-clc with anv/irisLionel Landwerlin1-3/+3
If we do a native build, regardless of the host architecture and we build Anv or Iris, we need intel-clc. So force building that tool. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10601 Fixes: b52e25d3a8 ("anv: rewrite internal shaders using OpenCL") Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27593>
2024-02-13meson: add option to install intel-clcLionel Landwerlin1-0/+7
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26797>
2024-02-13meson: add a new option to enable intel-clc without building RT shadersLionel Landwerlin1-2/+12
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26797>
2024-02-05d3d10umd, meson: Allow naming d3d10umd DLLsMax R1-2/+10
For graphics drivers on windows it is beneficial to have usermode DLLs names matching driver overall name, example being vm3dum_10.dll and nvwgf2um.dll for d3d10 usermode drivers from VMWare and Nvidia. To implement that new meson option `gallium-d3d10-dll-name` that names the resulting d3d10umd target DLL is introduced. Additionaly, to avoid confusion `gallium-dll-name` is renamed to `gallium-wgl-dll-name` as it corresponds to the name used in wgl target. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27416>
2024-01-31meson: remove opencl-external-clang-headers option and rely on shared-llvmKarol Herbst1-7/+0
Setting opencl-external-clang-headers to enabled while using shared LLVM was broken and this option was mostly used for windows to force static inclusion of opencl base headers. Simply relying on the shared-llvm option here is enough to get what we want. Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25568>
2024-01-24teflon: Initial commitTomeu Vizoso1-0/+7
Teflon is a Gallium frontend that TensorFlow Lite can load to delegate the execution of operations in a neural network model. See docs for more. Acked-by: Christian Gmeiner <cgmeiner@igalia.com> Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25714>
2024-01-15freedreno/replay: Add WSL backend for WindowsDanylo Piliaiev1-1/+1
d3dkmthk.h contains only non driver specific structs, private data structs are not defined anywhere public but contain important information for memory allocation and submissions. Luckily only small parts of these structs are relevant for what we want to do and most of them are not changed between calls. Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26101>
2023-12-13meson: Add option to ignore artificial Android limitationsChris Spencer1-0/+9
Some capabilities are artificially disabled on Android to avoid running afoul of the CTS. Make this behaviour opt-out so devices that don't need strict conformance can take advantage of the full capabilities of the driver. Signed-off-by: Chris Spencer <spencercw@gmail.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Acked-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25101>
2023-12-06meson: Add all, all_free (default) options for video-codecs option.Sil Vilerino1-4/+4
- Adds new 'all' value to the video-codecs option - Adds 'all_free' value to video-codecs and sets it as default value for non patent-encumbered codecs, restoring the behavior for these codecs before existing as options in commit 7b22dd8bfdc Fixes: 7b22dd8bfdc ("meson: add vp9 and av1 codec support options") Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26320>
2023-11-20meson: add vp9 and av1 codec support optionsSil Vilerino1-1/+1
Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26223>
2023-10-26meson: Add gallium-drivers=all optionAlyssa Rosenzweig1-1/+1
Again, useful to lint common code changes and for our macbook-wielding rel manager <3 Omits i915g due to dependency hell, everything else builds on fedora asahi. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Cc: mesa-stable Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25882>
2023-10-26meson: Add vulkan-drivers=all optionAlyssa Rosenzweig1-1/+1
To build-test everything, helpful to check common code changes before pounding CI. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Cc: mesa-stable Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25882>
2023-09-26nvk: Rip out old UAPI supportFaith Ekstrand1-7/+0
This was mostly generated by unifdef -DNVK_NEW_UAPI=1 -m src/nouveau/**/*.h with a few manual fixups for device features and to remove includes and strip out the meson bits. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25357>
2023-09-01intel: Allow using intel_clc from the systemMatt Turner1-1/+4
With -Dintel-clc=system, the build system will search for an `intel_clc` binary and use it instead of building `intel_clc` itself. This allows Intel Vulkan ray tracing support to be built when cross compiling without terrible hacks (that would otherwise be necessary due to `intel_clc`'s dependence on SPIRV-LLVM-Translator, libclc, clang, and LLVM). Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24983>
2023-08-19util/perf: Add gpuvis integration.Bas Nieuwenhuizen1-0/+7
Initial integration, still needs the init functions to be changed across the codebase. For the context usage https://github.com/mikesart/gpuvis/pull/82 is needed to display it correctly in gpuvis. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22505>
2023-08-04nvk: Enable the new UAPIFaith Ekstrand1-0/+7
We also add a meson option to disable it and re-enable the legacy API. This code probably won't last long but it gives developers the option. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
2023-08-04nvk: add vulkan skeletonKarol Herbst1-1/+1
This is enough to run vulkaninfo without crashing. Jason: * Drop a redundant nvk_device_entrypoints * Add some VKAPI_ATTR and VKAPI_CALL * nvk: Move EnumerateInstanceExtensionProperties to the top This way things are more-or-less in initialization order. First the version then extensions then create the instance. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
2023-07-12meson: clarify description of `opengl` optionEric Engestrom1-1/+1
There was some confusion from users as to whether disabling this option disables OpenGL ES as well, so let's remove the confusing "all versions" note and specify this affects "desktop OpenGL" only. Signed-off-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24113>
2023-06-30meson: Add back execmem option as a deprecated optionDylan Baker1-0/+7
I've been betting support requests by people confused as to why their builds broke because this option was removed. We can add the option back with the deprecated flag set so that Meson will give a nice warning, but builds will continue to work. fixes: 1dd1147408e8fcfb9cbd08d5a5651152d288ef41 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23893>
2023-06-22meson: Use consistence disabled/enabled comment for shared-glapi optionYonggang Luo1-1/+1
Reviewed-by: Eric Engestrom <eric@igalia.com> Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23793>
2023-06-12meson: Key whether to build batch decoder on expatDylan Baker1-0/+9
Instead of on Android. Which allows an end user to turn off expat without breaking or disabling Intel support. I've additionally refactored to separate expat and xmlconfig a bit more in the root meson.build This does make expat a hard dependency for building Intel tools, despite the fact that only aubinator actually requires it. This simplifies the build for the common case, and in the event that someone wants to build the Intel tools and doesn't have libexpat, they can fall back to the meson wrap for expat instead. fixes: 75276deebcf76f8fafa68f4e4ecb29768d98c764 closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8791 Reviewed-by: Mark Janes <markjanes@swizzler.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23605>
2023-06-12mapi: Delete execmem support code.Emma Anholt1-12/+0
No longer used now that we don't dynamically generate dispatch stubs. Acked-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23451>
2023-05-31meson: add feature option for use of system Clang headers at runtimeDor Askayo1-0/+7
Enabling or disabling the "microsoft-clc" option previously changed shared logic for all compiler/clc users, which was surprising. In addition, the option to avoid the use of system Clang headers at runtime is useful outside the scope of Windows. Separating the two concepts by making this a neutral feature option addresses both matters. Signed-off-by: Dor Askayo <dor.askayo@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23255>
2023-05-03meson/ci: promote virtio-experimental to virtioYiwei Zhang1-2/+2
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22547>
2023-03-10meson: allow feature options to take true/false to mean enabled/disabledEric Engestrom1-0/+24
This reduces the pain of Meson having picked inconsistent value names. See also https://github.com/mesonbuild/meson/pull/11279 where Meson devs argue that allowing `foo=false` could be interpreted by users to mean either `disabled` or `auto`, which I personally don't see. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21485>
2023-03-03intel: Add Meson parameter to enable Xe KMD supportJosé Roberto de Souza1-0/+6
The plan is to compile all the Xe files but in run time it will fail to detect the KMD loaded and it will fall back to software rendering(if build). Compiling Xe files makes sure newer commits don't break Xe even if developers don't have Xe enabled in their build folder. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21368>
2023-02-25tu+meson: Re-work KMD selectionRob Clark1-12/+9
Now that turnip can support multiple kernel-mode drivers in a single build, re-work the meson option to have a single list of KMDs, rather than special options to enable kgsl for turnip or virtio for gallium. It is temporarily a bit awkward as gallium does not yet support kgsl and turnip does not yet support virtio. But both of those are planned or in-progress, so long term a single list is the most sensible option. TODO freedreno/drm support to build with only virtio support. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21394>
2023-02-18meson: improve formatting of options fileEric Engestrom1-53/+165
Acked-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21321>
2023-02-12util: avoid calling kcmp on AndroidEric Engestrom1-0/+5
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-01meson: turn android-libbacktrace into a feature optionEric Engestrom1-3/+1
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-01-27meson: remove deprecated dri-drivers optionErik Faye-Lund1-5/+0
This was deprecated in cdde031ac2c ("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-27meson: remove deprecated osmesa-bits optionErik Faye-Lund1-8/+0
We've released several new major versions since this was deprecated in 202cab3d308 ("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-25android: Make libbacktrace optional againTomeu Vizoso1-1/+7
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-19meson: use a feature option for shared-llvmDylan Baker1-3/+1
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-19meson: use a feature option for eglDylan Baker1-3/+1
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-19meson: use a feature option for zstdDylan Baker1-3/+1
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-19meson: use a feature option for xlib-leaseDylan Baker1-3/+1
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-19meson: use a feature option for power8Dylan Baker1-3/+1
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-19meson: use a feature option for lmsensorsDylan Baker1-3/+1
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-19meson: use a feature option for libunwindDylan Baker1-3/+1
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>