-D glx=dri
-D gbm=enabled
-D egl=enabled
- -D platforms=x11,drm
+ -D platforms=x11
GALLIUM_ST: >
-D dri3=enabled
GALLIUM_DRIVERS: "swrast,virgl"
-D glx=dri
-D gbm=enabled
-D egl=enabled
- -D platforms=x11,wayland,drm
+ -D platforms=x11,wayland
GALLIUM_ST: >
-D dri3=enabled
-D gallium-extra-hud=true
-D glx=disabled
-D egl=disabled
-D gbm=disabled
- -D platforms=drm
+ -D platforms=[]
GALLIUM_DRIVERS: "i915,r600"
script:
- LLVM_VERSION=3.9 .gitlab-ci/meson-build.sh
-D glx=disabled
-D gbm=disabled
-D egl=disabled
- -D platforms=x11,wayland,drm
+ -D platforms=x11,wayland
-D osmesa=none
GALLIUM_ST: >
-D dri3=enabled
``-D platforms=...``
List the platforms (window systems) to support. Its argument is a
- comma separated string such as ``-D platforms=x11,drm``. It decides
+ comma separated string such as ``-D platforms=x11,wayland``. It decides
the platforms a driver may support. The first listed platform is also
used by the main library to decide the native platform.
- The available platforms are ``x11``, ``drm``, ``wayland``,
+ The available platforms are ``x11``, ``wayland``,
``android``, and ``haiku``. The ``android`` platform
can either be built as a system component, part of AOSP, using
``Android.mk`` files, or cross-compiled using appropriate options.
_platforms = get_option('platforms')
if _platforms.contains('auto')
if system_has_kms_drm
- _platforms = ['x11', 'wayland', 'drm']
+ _platforms = ['x11', 'wayland']
elif ['darwin', 'cygwin'].contains(host_machine.system())
_platforms = ['x11']
elif ['haiku'].contains(host_machine.system())
with_platform_android = _platforms.contains('android')
with_platform_x11 = _platforms.contains('x11')
with_platform_wayland = _platforms.contains('wayland')
-with_platform_drm = _platforms.contains('drm')
with_platform_haiku = _platforms.contains('haiku')
with_platform_windows = _platforms.contains('windows')
warning('Platform `surfaceless` is now always selected; setting this option will be an error in Mesa 20.3')
endif
+if _platforms.contains('drm')
+ warning('Platform `drm` is now automatically selected; setting this option will be an error in Mesa 20.3')
+endif
+
if _platforms.length() != 0
egl_native_platform = _platforms[0]
else
warning('xlib_lease option "false" deprecated, please use "disabled" instead.')
endif
if _xlib_lease == 'auto'
- with_xlib_lease = with_platform_x11 and with_platform_drm
+ with_xlib_lease = with_platform_x11 and with_gbm
else
with_xlib_lease = _xlib_lease == 'enabled'
endif
pre_args += '-DEGL_NO_X11'
gl_pkgconfig_c_flags += '-DEGL_NO_X11'
endif
-if with_platform_drm
- if with_egl and not with_gbm
- error('EGL drm platform requires gbm')
- endif
+if with_gbm
pre_args += '-DHAVE_DRM_PLATFORM'
endif
if with_platform_android
lines += 'GBM: ' + (with_gbm ? 'yes' : 'no')
if with_egl or with_any_vk
_platforms += 'surfaceless'
+ if with_gbm
+ _platforms += 'drm'
+ endif
lines += 'EGL/Vulkan/VL platforms: ' + ' '.join(_platforms)
endif