Lines Matching +full:enable +full:- +full:glcpp +full:- +full:tests
1 # Copyright © 2017-2020 Intel Corporation
29 'b_ndebug=if-release',
52 '-D__STDC_CONSTANT_MACROS',
53 '-D__STDC_FORMAT_MACROS',
54 '-D__STDC_LIMIT_MACROS',
55 '-DPACKAGE_VERSION="@0@"'.format(meson.project_version()),
56 '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"',
64 with_moltenvk_dir = get_option('moltenvk-dir')
65 with_vulkan_icd_dir = get_option('vulkan-icd-dir')
66 with_tests = get_option('build-tests')
67 with_glcpp_tests = get_option('enable-glcpp-tests')
68 with_aco_tests = get_option('build-aco-tests')
69 with_glx_read_only_text = get_option('glx-read-only-text')
70 with_glx_direct = get_option('glx-direct')
72 with_vulkan_overlay_layer = get_option('vulkan-layers').contains('overlay')
73 with_vulkan_device_select_layer = get_option('vulkan-layers').contains('device-select')
77 'drm-shim',
78 'dlclose-skip',
83 'intel-ui',
92 with_any_vulkan_layers = get_option('vulkan-layers').length() != 0
93 with_intel_tools = with_tools.contains('intel') or with_tools.contains('intel-ui')
96 dri_drivers_path = get_option('dri-drivers-path')
100 dri_search_path = get_option('dri-search-path')
105 gbm_backends_path = get_option('gbm-backends-path')
111 with_shared_glapi = get_option('shared-glapi') \
118 .require(with_shared_glapi, error_message : 'OpengGL ES 1.x requires shared-glapi') \
122 .require(with_shared_glapi, error_message : 'OpengGL ES 2.x requires shared-glapi') \
125 pre_args += '-DHAVE_OPENGL=@0@'.format(with_opengl ? '1' : '0')
126 pre_args += '-DHAVE_OPENGL_ES_1=@0@'.format(with_gles1 ? '1' : '0')
127 pre_args += '-DHAVE_OPENGL_ES_2=@0@'.format(with_gles2 ? '1' : '0')
135 gallium_drivers = get_option('gallium-drivers')
159 error('Unknown architecture @0@. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to fix this.'.format(
167 error('Unknown OS @0@. Please pass -Dgallium-drivers to set driver options. Patches gladly accepted to fix this.'.format(
171 # Build-test everything except for i915, which depends on libdrm-intel which
172 # is not available on non-Intel distros.
201 pre_args += '-DHAVE_@0@'.format(gallium_driver.to_upper())
215 _vulkan_drivers = get_option('vulkan-drivers')
227 error('Unknown architecture @0@. Please pass -Dvulkan-drivers to set driver options. Patches gladly accepted to fix this.'.format(
234 error('Unknown OS @0@. Please pass -Dvulkan-drivers to set driver options. Patches gladly accepted to fix this.'.format(
241 'imagination-experimental', 'microsoft-experimental',
242 'nouveau-experimental']
253 with_imagination_vk = _vulkan_drivers.contains('imagination-experimental')
254 with_imagination_srv = get_option('imagination-srv')
255 with_microsoft_vk = _vulkan_drivers.contains('microsoft-experimental')
256 with_nouveau_vk = _vulkan_drivers.contains('nouveau-experimental')
257 with_gfxstream_vk = _vulkan_drivers.contains('gfxstream-experimental')
272 pre_args += '-DUSE_VK_COMPILER=@0@'.format(with_vk_compiler ? '1' : '0')
274 freedreno_kmds = get_option('freedreno-kmds')
279 warning('As a side-effect, Turnip is forced to link with libdrm when built alongside Gallium DRM drivers which platforms such as Android may not have available at runtime.')
304 if get_option('intel-clc') != 'system'
305 # Require intel-clc with Anv & Iris (for internal shaders)
306 with_intel_clc = get_option('intel-clc') == 'enabled' or \
312 with_intel_vk_rt = get_option('intel-rt') \
330 pre_args += '-DHAVE_NVK'
340 error('ACO tests require Radv')
343 with_microsoft_clc = get_option('microsoft-clc').enabled()
345 with_spirv_to_dxil = get_option('spirv-to-dxil')
349 pre_args += '-DBUILDING_MESA'
361 with_vulkan_beta = get_option('vulkan-beta')
367 pre_args += '-DVK_ENABLE_BETA_EXTENSIONS'
370 _codecs = get_option('video-codecs')
387 pre_args += '-DVIDEO_CODEC_@0@=@1@'.format(c.to_upper(), _codecs.contains(c).to_int())
401 error('Unknown OS @0@. Please pass -Dplatforms to set platforms. Patches gladly accepted to fix this.'.format(
453 with_gfxstream_backend = get_option('gfxstream-backend')
460 with_xlib_lease = get_option('xlib-lease') \
461 .require(with_platform_x11 and system_has_kms_drm, error_message : 'xlib-lease requires X11 and KMS/DRM support') \
467 .require(with_shared_glapi, error_message : 'EGL requires shared-glapi') \
478 egl_native_platform = get_option('egl-native-platform')
485 error('-Degl-native-platform does not specify an enabled platform')
493 pre_args += '-DHAVE_@0@_PLATFORM'.format(platform.to_upper())
496 if with_platform_android and get_option('platform-sdk-version') >= 29
500 c_cpp_args += '-fno-emulated-tls'
503 # -mtls-dialect=gnu2 speeds up non-initial-exec TLS significantly but requires
507 if c_arg.startswith('-mtls-dialect=')
514 # cross-compiling, but because this is just an optimization we can skip it
516 warning('cannot auto-detect -mtls-dialect when cross-compiling, using compiler default')
518 # -fpic to force dynamic tls, otherwise TLS relaxation defeats check
520 args: ['-mtls-dialect=gnu2', '-fpic'],
521 name: '-mtls-dialect=gnu2')
523 # check for lld 13 bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5665
525 # get_linker_id misses LDFLAGS=-fuse-ld=lld: https://github.com/mesonbuild/meson/issues/6377
532 c_cpp_args += '-mtls-dialect=gnu2'
550 error('dri based GLX requires shared-glapi')
556 glvnd_vendor_name = get_option('glvnd-vendor-name')
565 if get_option('egl-lib-suffix') != ''
594 dep_dxheaders = dependency('directx-headers', required : false)
596 dep_dxheaders = dependency('DirectX-Headers',
598 fallback : ['DirectX-Headers', 'dep_dxheaders'],
604 _with_gallium_d3d12_video = get_option('gallium-d3d12-video')
608 pre_args += '-DHAVE_GALLIUM_D3D12_VIDEO'
619 vdpau = get_option('gallium-vdpau') \
620 .require(system_has_kms_drm, error_message : 'VDPAU state tracker can only be build on unix-like OSes.') \
622 .require(_vdpau_drivers.contains(true), error_message : 'VDPAU state tracker requires at least one of the following gallium drivers: r600, radeonsi, nouveau, d3d12 (with option gallium-d3d12-video, virgl).')
627 pre_args += '-DHAVE_ST_VDPAU'
631 vdpau_drivers_path = get_option('vdpau-libs-path')
638 if run_command(prog_glslang, [ '--quiet', '--version' ], check : false).returncode() == 0
639 glslang_quiet = ['--quiet']
646 _omx = get_option('gallium-omx')
651 error('OMX state tracker can only be built on unix-like OSes.')
665 'libomxil-bellagio', required : _omx == 'bellagio'
685 error('OMX-Tizonia state tracker requires dri and egl')
695 '-DENABLE_ST_OMX_BELLAGIO=' + (with_gallium_omx == 'bellagio' ? '1' : '0'),
696 '-DENABLE_ST_OMX_TIZONIA=' + (with_gallium_omx == 'tizonia' ? '1' : '0'),
700 omx_drivers_path = get_option('omx-libs-path')
734 _va = get_option('gallium-va') \
736 error_message : 'VA state tracker requires at least one of the following gallium drivers: r600, radeonsi, nouveau, d3d12 (with option gallium-d3d12-video), virgl.')
737 _dep_va_name = host_machine.system() == 'windows' ? 'libva-win32' : 'libva'
743 pre_args += '-DHAVE_VA_SURFACE_ATTRIB_DRM_FORMAT_MODIFIERS'
748 va_drivers_path = get_option('va-libs-path')
753 with_gallium_xa = get_option('gallium-xa') \
754 .require(system_has_kms_drm, error_message : 'XA state tracker can only be built on unix-like OSes.') \
759 d3d_drivers_path = get_option('d3d-drivers-path')
764 with_gallium_st_nine = get_option('gallium-nine')
781 error('The nine state tracker requires at least one non-swrast gallium driver.')
787 with_gallium_st_d3d10umd = get_option('gallium-d3d10umd')
807 args : '-mpower8-vector',
809 pre_args += ['-D_ARCH_PWR8']
810 c_cpp_args += '-mpower8-vector'
817 if get_option('vmware-mks-stats')
819 error('vmware-mks-stats requires gallium VMware/svga driver.')
821 pre_args += '-DVMX86_STATS=1'
824 _opencl = get_option('gallium-opencl')
841 with_gallium_rusticl = get_option('gallium-rusticl')
866 pre_args += '-DUSE_XSHM'
869 pre_args += '-DGLX_INDIRECT_RENDERING'
871 pre_args += '-DGLX_DIRECT_RENDERING'
874 pre_args += '-DGLX_USE_DRM'
876 pre_args += '-DGLX_USE_APPLEGL'
878 pre_args += '-DGLX_USE_WINDOWSGL'
888 pre_args += '-DGLAPI_EXPORT_PROTO_ENTRY_POINTS=@0@'.format(with_glapi_export_proto_entry_points ? '1' : '0')
890 with_android_stub = get_option('android-stub')
892 error('`-D android-stub=true` makes no sense without `-D platforms=android`')
895 with_libbacktrace = get_option('android-libbacktrace') \
896 .require(with_platform_android, error_message : '`-D android-libbacktrace=enabled` makes no sense without `-D platforms=android`') \
902 #cpp_args += '-DWITH_LIBBACKTRACE'
917 if get_option('platform-sdk-version') >= 26
920 if get_option('platform-sdk-version') >= 30
924 pre_args += '-DANDROID_API_LEVEL=' + get_option('platform-sdk-version').to_string()
925 if get_option('android-strict')
926 pre_args += '-DANDROID_STRICT'
928 pre_args += '-DVK_USE_PLATFORM_ANDROID_KHR=1'
935 if get_option('allow-kcmp') \
938 pre_args += '-DALLOW_KCMP'
943 prog_python, '-c',
962 pre_args += '-DETIME=ETIMEDOUT'
967 pre_args += '-DDEBUG'
970 with_shader_cache = get_option('shader-cache') \
975 pre_args += '-DENABLE_SHADER_CACHE'
976 if not get_option('shader-cache-default')
977 pre_args += '-DSHADER_CACHE_DISABLE_BY_DEFAULT'
980 shader_cache_max_size = get_option('shader-cache-max-size')
982 pre_args += '-DMESA_SHADER_CACHE_MAX_SIZE="@0@"'.format(shader_cache_max_size)
990 pre_args += '-DHAVE___BUILTIN_@0@'.format(b.to_upper())
1000 pre_args += '-DHAVE_FUNC_ATTRIBUTE_@0@'.format(a.to_upper())
1003 pre_args += '-DHAVE_FUNC_ATTRIBUTE_VISIBILITY'
1007 pre_args += '-DHAVE_UINT128'
1011 pre_args += '-DHAVE_REALLOCARRAY'
1014 pre_args += '-DHAVE_FMEMOPEN'
1019 pre_args += '-D_GNU_SOURCE'
1021 pre_args += '-D__EXTENSIONS__'
1024 '-D_WINDOWS', '-D_WIN32_WINNT=0x0A00', '-DWINVER=0x0A00',
1025 '-DPIPE_SUBSYSTEM_WINDOWS_USER',
1026 '-D_USE_MATH_DEFINES', # XXX: scons didn't use this for mingw
1030 '-DVC_EXTRALEAN',
1031 '-D_CRT_SECURE_NO_WARNINGS',
1032 '-D_CRT_SECURE_NO_DEPRECATE',
1033 '-D_SCL_SECURE_NO_WARNINGS',
1034 '-D_SCL_SECURE_NO_DEPRECATE',
1035 '-D_ALLOW_KEYWORD_MACROS',
1036 '-D_HAS_EXCEPTIONS=0', # Tell C++ STL to not use exceptions
1037 '-DNOMINMAX',
1050 pre_args += ['-D__MSVCRT_VERSION__=0x0700']
1054 pre_args += '-D_ISOC11_SOURCE'
1065 '/wd4056', # overflow in floating-point constant arithmetic
1075 '/wd4200', # nonstandard extension used: zero-sized array in struct/union
1089 '-Werror=implicit-function-declaration',
1090 '-Werror=missing-prototypes',
1091 '-Werror=return-type',
1092 '-Werror=empty-body',
1093 '-Werror=incompatible-pointer-types',
1094 '-Werror=int-conversion',
1095 '-Wimplicit-fallthrough',
1096 '-Wmisleading-indentation',
1097 '-Wno-missing-field-initializers',
1098 '-Wno-format-truncation',
1099 '-Wno-nonnull-compare',
1100 '-fno-math-errno',
1101 '-fno-trapping-math',
1102 '-Qunused-arguments',
1103 '-fno-common',
1104 '-Wno-unknown-pragmas',
1106 '-Wno-microsoft-enum-value',
1107 '-Wno-unused-function',
1110 '-Werror=return-type',
1111 '-Werror=empty-body',
1112 '-Wmisleading-indentation',
1113 '-Wno-non-virtual-dtor',
1114 '-Wno-missing-field-initializers',
1115 '-Wno-format-truncation',
1116 '-fno-math-errno',
1117 '-fno-trapping-math',
1118 '-Qunused-arguments',
1120 # gcc does aggressive dead-store elimination which threats all writes
1123 '-flifetime-dse=1',
1124 '-Wno-unknown-pragmas',
1126 '-Wno-microsoft-enum-value',
1131 _trial_c += ['-Werror=format', '-Wformat-security']
1132 _trial_cpp += ['-Werror=format', '-Wformat-security']
1137 _trial_c += ['-Werror=thread-safety']
1145 args : '-Wl,--gc-sections', name : 'gc-sections')
1146 ld_args_gc_sections += '-Wl,--gc-sections'
1147 _trial_c += ['-ffunction-sections', '-fdata-sections']
1148 _trial_cpp += ['-ffunction-sections', '-fdata-sections']
1152 # are disabled. Don't treat this as an error, since we build with -Werror even if
1154 if get_option('b_ndebug') == 'true' or (get_option('buildtype') == 'release' and get_option('b_ndebug') == 'if-release')
1155 _trial_c += ['-Wno-unused-variable', '-Wno-unused-but-set-variable', '/wd4189']
1156 _trial_cpp += ['-Wno-unused-variable', '-Wno-unused-but-set-variable', '/wd4189']
1163 ['-Wno-override-init', '-Wno-initializer-overrides']
1169 _trial_msvc = ['-Werror=pointer-arith', '-Werror=vla', '-Werror=gnu-empty-initializer']
1192 '-Wl,--nxcompat',
1193 '-Wl,--dynamicbase',
1194 '-static-libgcc',
1195 '-static-libstdc++',
1201 '-Wl,--nxcompat',
1202 '-Wl,--dynamicbase',
1203 '-static-libgcc',
1204 '-static-libstdc++',
1216 pre_args += '-DUSE_SSE41'
1220 sse41_args = ['-msse4.1']
1224 sse2_arg = ['-msse2', '-mfpmath=sse']
1225 sse2_args = [sse2_arg, '-mstackrealign']
1233 # -mstackrealign or -mincoming-stack-boundary=2.
1235 # XXX: We could have SSE without -mstackrealign if we always used
1243 # GCC on x86 (not x86_64) with -msse* assumes a 16 byte aligned stack, but
1245 sse41_args += '-mstackrealign'
1252 if cc.has_function('__builtin_ia32_clflushopt', args : '-mclflushopt')
1253 pre_args += '-DHAVE___BUILTIN_IA32_CLFLUSHOPT'
1254 clflushopt_args = ['-mclflushopt']
1274 pre_args += '-DUSE_GCC_ATOMIC_BUILTINS'
1276 # Not all atomic calls can be turned into lock-free instructions, in which
1278 # link with -latomic.
1280 # This can happen for 64-bit atomic operations on 32-bit architectures such
1290 name : 'GCC atomic builtins required -latomic')
1301 pre_args += '-DMISSING_64BIT_ATOMICS'
1312 pre_args += ['-DUSE_X86_ASM']
1315 pre_args += ['-DGLX_X86_READONLY_TEXT']
1321 pre_args += ['-DUSE_X86_64_ASM']
1326 pre_args += ['-DUSE_ARM_ASM']
1331 pre_args += ['-DUSE_AARCH64_ASM']
1336 pre_args += ['-DUSE_SPARC_ASM']
1341 pre_args += ['-DUSE_PPC64LE_ASM']
1346 pre_args += ['-DUSE_MIPS64EL_ASM']
1351 pre_args += ['-DUSE_LOONGARCH64_ASM']
1359 pre_args += '-DMAJOR_IN_SYSMACROS'
1364 pre_args += '-DMAJOR_IN_MKDEV'
1368 pre_args += '-DHAS_SCHED_H'
1370 pre_args += '-DHAS_SCHED_GETAFFINITY'
1377 pre_args += '-DHAVE_SYS_SYSCTL_H'
1384 pre_args += '-DHAVE_@0@'.format(h.to_upper().underscorify())
1403 pre_args += '-DHAVE_@0@'.format(f.to_upper())
1421 pre_args += '-DHAVE_GNU_QSORT_R'
1435 pre_args += '-DHAVE_BSD_QSORT_R'
1439 pre_args += '-DHAVE_STRUCT_TIMESPEC'
1446 pre_args += '-DHAVE_THRD_CREATE'
1452 args : '-D_GNU_SOURCE')
1453 pre_args += '-DHAVE_PROGRAM_INVOCATION_NAME'
1459 args : '-D_GNU_SOURCE')
1460 pre_args += '-DHAVE_ISSIGNALING'
1466 # non-windows platforms.
1469 pre_args += '-DHAVE_POSIX_MEMALIGN'
1475 pre_args += '-DHAVE_DIRENT_D_TYPE'
1497 pre_args += '-DHAVE_STRTOD_L'
1502 if cc.links('int main() { return 0; }', args : '-Wl,-Bsymbolic', name : 'Bsymbolic')
1503 ld_args_bsymbolic += '-Wl,-Bsymbolic'
1507 args : '-Wl,--version-script=@0@'.format(
1508 join_paths(meson.current_source_dir(), 'build-support/conftest.map')),
1509 name : 'version-script')
1514 args : '-Wl,--dynamic-list=@0@'.format(
1515 join_paths(meson.current_source_dir(), 'build-support/conftest.dyn')),
1516 name : 'dynamic-list')
1520 ld_args_build_id = cc.get_supported_link_arguments('-Wl,--build-id=sha1')
1530 pre_args += '-DHAVE_DLADDR'
1535 pre_args += '-DHAVE_DL_ITERATE_PHDR'
1541 pre_args += '-DSUPPORT_INTEL_INTEGRATED_GPUS'
1544 if get_option('intel-xe-kmd').enabled()
1545 pre_args += '-DINTEL_XE_KMD_SUPPORTED'
1564 pre_args += '-DHAVE_ZLIB'
1569 pre_args += '-DHAVE_ZSTD'
1574 pre_args += '-DHAVE_COMPRESSION'
1588 pre_args += '-DHAVE_PTHREAD'
1593 args : '-D_GNU_SOURCE')
1594 pre_args += '-DHAVE_PTHREAD_SETAFFINITY'
1623 pre_args += '-DWIN32_LEAN_AND_MEAN' # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx
1632 dep_regex = declare_dependency(compile_args : ['-DNO_REGEX'])
1644 if (get_option('min-windows-version') < 8)
1645 pre_args += '-DWINDOWS_NO_FUTEX'
1706 # dependencies (such as vk-runtime) linking to it
1710 pre_args += '-DHAVE_LIBDRM'
1718 pre_args += '-DHAVE_LIBUDEV'
1734 # all-targets is needed to support static linking LLVM build with multiple targets
1736 llvm_optional_modules += ['all-targets', 'frontendopenmp', 'windowsdriver']
1740 # all-targets is needed to support static linking LLVM build with multiple targets.
1743 llvm_optional_modules += ['all-targets', 'windowsdriver', 'frontendhlsl']
1745 draw_with_llvm = get_option('draw-use-llvm')
1760 _shared_llvm = get_option('shared-llvm') \
1770 method : host_machine.system() == 'windows' ? 'auto' : 'config-tool',
1785 pre_args += '-DMESA_LLVM_VERSION_STRING="@0@"'.format(dep_llvm.version())
1786 pre_args += '-DLLVM_IS_SHARED=@0@'.format(_shared_llvm.to_int())
1800 # The CMake finder will return 'ON', the llvm-config will return 'YES'
1801 _llvm_rtti = ['ON', 'YES'].contains(dep_llvm.get_variable(cmake : 'LLVM_ENABLE_RTTI', configtool: 'has-rtti'))
1820 error('ACO tests require LLVM, but LLVM is disabled.')
1830 pre_args += '-DLLVM_AVAILABLE=' + (with_llvm ? '1' : '0')
1831 pre_args += '-DDRAW_LLVM_AVAILABLE=' + (with_llvm and draw_with_llvm ? '1' : '0')
1833 with_opencl_spirv = (_opencl != 'disabled' and get_option('opencl-spirv')) or with_clc
1839 # Require an SPIRV-LLVM-Translator version compatible with the chosen LLVM
1843 # we do not want to accept SPIRV-LLVM-Translator 8.0.0.1 as that version
1856 dep_spirv_tools = dependency('SPIRV-Tools', required : true, version : '>= 2018.0')
1857 # LLVMSPIRVLib is available at https://github.com/KhronosGroup/SPIRV-LLVM-Translator
1868 dep_clang = cpp.find_library('clang-cpp', dirs : llvm_libdir, required : false)
1903 pre_args += '-DUSE_LIBELF'
1911 pre_args += '-DUSE_LIBGLVND=1'
1916 pre_args += '-DHAVE_VALGRIND'
1923 asan_c_args = ['-DBUILT_WITH_ASAN=1']
1925 asan_c_args = ['-DBUILT_WITH_ASAN=0']
1939 prog_flex = [prog_flex, '--wincompat']
1945 prog_flex += '-DYY_USE_CONST='
1952 prog_flex_cpp += '-D__STDC_VERSION__=199901'
1967 # old-bison compat. See discussion in
1970 prog_bison = [prog_bison, '-Wno-deprecated']
1980 pre_args += '-DMESA_SELINUX'
1991 pre_args += '-DHAVE_LIBUNWIND'
2008 dep_wl_scanner = dependency('wayland-scanner', native: true)
2011 wl_scanner_arg = 'private-code'
2015 dep_wl_protocols = dependency('wayland-protocols', version : '>= 1.30')
2016 dep_wayland_client = dependency('wayland-client', version : '>=1.18')
2017 dep_wayland_server = dependency('wayland-server', version : '>=1.18')
2019 dep_wayland_egl = dependency('wayland-egl-backend', version : '>= 3')
2022 pre_args += '-DWL_HIDE_DEPRECATED'
2025 prefix : '#include <wayland-client.h>',
2027 pre_args += ['-DHAVE_WL_DISPATCH_QUEUE_TIMEOUT']
2031 prefix : '#include <wayland-client.h>',
2033 pre_args += ['-DHAVE_WL_CREATE_QUEUE_WITH_NAME']
2063 pre_args += ['-DHAVE_OPENMP']
2074 dep_xcb_xrandr = dependency('xcb-randr')
2079 dep_xcb_glx = dependency('xcb-glx', version : '>= 1.8.1')
2080 dep_xcb_shm = dependency('xcb-shm')
2089 dep_xcb_keysyms = dependency('xcb-keysyms', required : false)
2092 pre_args += '-DXCB_KEYSYMS_AVAILABLE'
2094 dep_x11_xcb = dependency('x11-xcb')
2100 dep_xcb_dri2 = dependency('xcb-dri2', version : '>= 1.8')
2103 dep_xcb_dri3 = dependency('xcb-dri3')
2104 dep_xcb_present = dependency('xcb-present')
2105 # until xcb-dri3 has been around long enough to make a hard-dependency:
2110 dep_xcb_shm = dependency('xcb-shm')
2111 dep_xcb_sync = dependency('xcb-sync')
2130 dep_xcb_xfixes = dependency('xcb-xfixes')
2133 dep_xcb_xrandr = dependency('xcb-randr')
2141 pre_args += '-DHAVE_DRI'
2144 pre_args += '-DHAVE_DRI2'
2147 pre_args += '-DHAVE_DRI3'
2150 pre_args += '-DHAVE_DRI3_MODIFIERS'
2153 pre_args += '-DHAVE_DRISW_KMS'
2156 if get_option('gallium-extra-hud')
2157 pre_args += '-DHAVE_GALLIUM_EXTRA_HUD=1'
2162 pre_args += '-DHAVE_LIBSENSORS=1'
2165 _shader_replacement = get_option('custom-shader-replacement')
2168 pre_args += '-DCUSTOM_SHADER_REPLACEMENT'
2176 pre_args += '-DHAVE_PERFETTO'
2188 pre_args += '-DHAVE_GPUVIS'
2203 'x11', 'xext', 'xfixes', 'x11-xcb', 'xcb',
2204 'xcb-glx >= 1.8.1']
2206 gl_priv_reqs += 'xcb-dri2 >= 1.8'
2218 gl_priv_libs += ['-lpthread', '-pthread']
2221 gl_priv_libs += '-lm'
2224 gl_priv_libs += '-ldl'
2230 gbm_priv_libs += '-ldl'
2239 symbols_check_args = ['--dumpbin', prog_dumpbin.full_path()]
2244 symbols_check_args = ['--nm', prog_nm.full_path()]
2249 gcc_lto_quirk = (cc.get_id() == 'gcc') ? ['-fno-lto'] : []
2334 vulkan_summary += {'Layers': get_option('vulkan-layers')}
2394 gallium_summary += {'Off-screen rendering (OSMesa)': with_osmesa ? 'lib' + osmesa_lib_name : false}
2395 gallium_summary += {'HUD lm-sensors': dep_lmsensors.found()}