summaryrefslogtreecommitdiff
path: root/meson.build
Commit message (Collapse)AuthorAgeFilesLines
...
* meson: use a feature option for shared-llvmDylan Baker2023-01-191-14/+4
| | | | | | 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>
* meson: use a feature option for eglDylan Baker2023-01-191-29/+8
| | | | | | 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>
* meson: use a feature option for zstdDylan Baker2023-01-191-15/+3
| | | | | | 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>
* meson: use a feature option for xlib-leaseDylan Baker2023-01-191-13/+3
| | | | | | 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>
* meson: use a feature option for power8Dylan Baker2023-01-191-9/+2
| | | | | | 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>
* meson: use a feature option for lmsensorsDylan Baker2023-01-191-15/+3
| | | | | | 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>
* meson: use a feature option for libunwindDylan Baker2023-01-191-18/+8
| | | | | | 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>
* meson: use a feature option for valgrindDylan Baker2023-01-191-15/+3
| | | | | | 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>
* meson: use a feature option for llvmDylan Baker2023-01-191-9/+2
| | | | | | | | | 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>
* meson: use a feature option for gbmDylan Baker2023-01-191-16/+4
| | | | | | 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>
* meson: use a feature option for gles2Dylan Baker2023-01-191-34/+6
| | | | | | 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>
* meson: use a feature option for gles1Dylan Baker2023-01-191-15/+7
| | | | | | 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>
* meson: use a feature option for shared-glapiDylan Baker2023-01-191-13/+3
| | | | | | 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>
* meson: use a feature option for shader_cacheDylan Baker2023-01-191-22/+8
| | | | | | 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>
* meson: use a feature option for gallium-xaDylan Baker2023-01-191-23/+5
| | | | | | 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>
* meson: use a feature option for gallium-vaDylan Baker2023-01-191-36/+19
| | | | | | 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>
* meson: use a feature option for gallium-vdpauDylan Baker2023-01-191-44/+18
| | | | | | | | | | 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>
* meson: use a feature option for dri3Dylan Baker2023-01-191-13/+1
| | | | | | | | | 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>
* meson: drop meson < 0.54 workaroundDylan Baker2023-01-191-11/+0
| | | | | | 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>
* meson: replace uses of ExternalProgram.path with .full_pathDylan Baker2023-01-191-2/+2
| | | | | | | | 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>
* meson: replace has_exe_wrapper with can_run_host_binariesDylan Baker2023-01-191-1/+1
| | | | | | | | | 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>
* meson: bump minimum required version to meson 0.59Dylan Baker2023-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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>
* zink: add renderdoc handlingMike Blumenkrantz2023-01-141-1/+2
| | | | | | | | | | | | 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>
* meson: Define VK_USE_PLATFORM_WIN32_KHR for C++Jesse Natalie2023-01-111-2/+1
| | | | | | 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>
* OpenCL/draw module: Support linking with LLVM and clang 15 static librariespal10002022-12-161-2/+11
| | | | | | | | | | | | | 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>
* vdpau: allow building vdpau st with virgl onlyJan Palus2022-12-121-1/+2
| | | | | | | | Fixes: 6b5aecb1955 ("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>
* nine: enable on panfrostDavid Heidelberg2022-12-101-0/+1
| | | | | | | | | 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>
* meson: Do not enable drm for KGSL Turnip buildDanylo Piliaiev2022-12-071-1/+5
| | | | | | | | | | | | | 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: 09ac29cca9bf7978911f81bcfce12ce71c260a97 ("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>
* meson: sort drivers alphabetically in any-of checksEric Engestrom2022-12-011-15/+15
| | | | | | 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>
* meson: make long any-of checks easier to read and to updateEric Engestrom2022-12-011-12/+35
| | | | | | 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>
* meson: Enable system_has_kms_drm for androidRoman Stratiienko2022-11-291-1/+1
| | | | | | | | | | 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>
* meson: Don't depend on expat for !use_xmlconfigAlyssa Rosenzweig2022-11-231-4/+12
| | | | | | | | | | | | | 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>
* intel: Add SUPPORT_INTEL_INTEGRATED_GPUS build argumentPhilippe Lecluse2022-11-231-0/+5
| | | | | | | | | | | | | | | This is meant to remove any integrated GPU only code paths that can't be compiled in CPU architectures different than x86. Discrete GPUS don't have need_clflush set to true so it was just matter of remove some code blocks around need_clflush but was left a check in anv_physical_device_init_heaps() to fail physical device initialization if it ever became false. Signed-off-by: Philippe Lecluse <philippe.lecluse@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19812>
* meson: do not use source_root() when possibleDanylo Piliaiev2022-11-221-1/+10
| | | | | | | | | | | | | | | | source_root() function is deprecated in Meson version 0.56.0 because it returns the source root of the parent project if called from a subproject. Why would anyone need Mesa as a meson subproject? It would be used as subproject in a project generated by command buffer "decompiler" for Freedreno. Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Reviewed-by: David Heidelberg <david.heidelberg@collabora.com> Acked-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19901>
* freedreno: Find curses properly for building fdperfJami Kettunen2022-11-171-1/+1
| | | | | | | | | | | | | | | | | Upstream ncurses doesn't ship any legacy ncurses.pc pkg-config symlinks (just ncursesw.pc) which Void Linux strictly follows[1] for example. Meson (since 0.54) has a generic curses dependency which works perfectly in this case[2], thus also bump the toplevel minimum meson version from 0.53. [1] https://github.com/void-linux/void-packages/tree/master/srcpkgs/ncurses [2] https://mesonbuild.com/Dependencies.html#curses Signed-off-by: Jami Kettunen <jami.kettunen@protonmail.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19664>
* meson: Enable initialized-but-unused warning for MSVCJesse Natalie2022-11-171-0/+1
| | | | | Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19792>
* meson: Enable SSE4.1 for MSVCJesse Natalie2022-11-171-24/+26
| | | | | | | | | | Modern MSVC always supports compiling with the SSE4.1 intrinsics with no additional command line options, but doesn't have any options for auto-vectorizing into SSE4.1. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16840>
* meson: only enable intel-clc for x86_64 buildsLuis Felipe Strano Moraes2022-11-111-2/+7
| | | | | Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19662>
* meson: enable Wmisleading-indentationLucas Stach2022-11-111-0/+2
| | | | | | | | | | Clang enables it by default, but GCC does not. Enable it explicitly to have some consistency between the supported compilers. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Eric Engestrom <eric@igalia.com> Acked-by: Dylan Baker <dylan.c.baker@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19439>
* util/glsl2spirv: pass path to glslangValidator into the scriptDylan Baker2022-11-101-1/+1
| | | | | | | | This allows users to override the location of glslang using normal meson mechanisms. Reviewed-by: Luis Felipe Strano Moraes <luis.strano@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19449>
* meson: prog_glslang should always be for the build machineDylan Baker2022-11-101-1/+1
| | | | | | | | | It doesn't produce different code when compiled for the host machine, and this avoids needing two copies and possibly a host machine emulator in cross compilation settings Reviewed-by: Luis Felipe Strano Moraes <luis.strano@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19449>
* meson: -DVK_ENABLE_BETA_EXTENSIONS at a single placeYonggang Luo2022-11-091-3/+4
| | | | | | Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19549>
* nine: enable on freedrenoDavid Heidelberg2022-11-051-1/+2
| | | | | | | | | | nine-tests on Adreno 630: ~ 10000 passing ~ 85 failures Acked-by: Rob Clark <robdclark@chromium.org> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19244>
* meson: simplified meson for enabling ray-tracing on IntelLuis Felipe Strano Moraes2022-11-011-6/+2
| | | | | | | | | | Removed warning about deprecated usage that was not necessary. Also added information on whether support is enabled or not to the summary so it is easier to check when building. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19332>
* gallium: Stub support for Asahi + DRMAlyssa Rosenzweig2022-10-291-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy-paste a pile of winsys code from panfrost and find-and-replace the name to asahi. This should contain all the glue code needed for asahi+kmsro. The kernel driver is under way (led by Asahi Lina, not me), but it's not wred up here. My goal was rather to run shader-db, which expects a render node, which means drm-shim, which means DRM loader support. With this patch and a trivial drm-shim, shader-db runs. In general I am reticent to touch UABI related code when the UABI hasn't been finalized upstream, or started design at all, hence the RFC. Realistically this patch assumes the following about the future UABI: 0. It will be a DRM driver. This is nonnegotiable. 1. The render node will be named "asahi". The other reasonable name would be "apple", which I'm using for the display controller (not yet upstream, but getting close). 2. Display and rendering will be split in the kernel, requiring kmsro in userspace, as agreed in past discussions. The 3D accelerator (AGX) and the display controller (DCP) are completely orthogonal blocks with separate lineages. True, Apple A14 (~= M1) has AGX and DCP together, and it seems like all the chips that will get upstream support will have this for the forseeable future. Nevertheless, it's a historical coincidence. Apple A12 had an AGX block with a pre-DCP Apple display controller, which would use a completely different display driver. Older SoCs had a PowerVR block with an Apple shader core, with a pre-DCP Apple display controller. Even older SoCs had a pure PowerVR block (+ Apple display). The AGX and DCP kernel drivers are not expected to share any nontrivial code. We don't gain anything by bundling them together. Likewise, the many codec blocks are completely orthogonal. This is all standard practice for Arm SoCs. It is true that AGX has never been used with a non-Apple display controller; it is highly unlikely this would change (either by AGX licensing out or something like Mali-DP getting licensed in). But an extra kmsro user doesn't actually add more complexity to Mesa, so shrug. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Eric Engestrom <eric@igalia.com> [meson, ack on gallium] Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15940>
* meson: with_glx never assigned to 'gallium-xlib', remove 'gallium-xlib'Yonggang Luo2022-10-221-4/+4
| | | | | | | Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19221>
* meson: with_glx never assigned to 'gallium-xlib', so need add with_glx == ↵Yonggang Luo2022-10-221-1/+1
| | | | | | | | | | | 'xlib' for dep_glproto Fixes: 76791db0882b3715cd7d ("mesa/x11: Remove the swrast-classic-based fake libGL") Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19221>
* c11: Getting the macro guard of HAVE_PTHREAD in c11/threads.h to be ↵Yonggang Luo2022-10-201-2/+9
| | | | | | | | | | | | | | | consistence with util/u_uthread.h The macro guard of #if defined(_WIN32) && !defined(__CYGWIN__) is comes from yohhoy's implementation and that's not consistence with util/u_uthread.h, this caused it's hard to understand. Now we change the behavior that's always rely on how meson detecting HAVE_PTHREAD. So we always disable detecting of threads on Win32 as it's always included in the kernel32 library to avoid detecting pthreads in mingw. Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18425>
* meson/mesa/wide: define WIN32_LEAN_AND_MEAN with pre_argsYonggang Luo2022-10-201-0/+4
| | | | | | Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18425>
* deps: Update DirectX-Headers req to 1.606.4Jesse Natalie2022-10-201-1/+1
| | | | | Reviewed-by: Sil Vilerino <sivileri@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18305>