summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2021-10-09 12:05:00 +0100
committerMarge Bot <emma+marge@anholt.net>2021-11-08 18:35:28 +0000
commit5cc9c30aefdfc58f180d03e16af5ed38f8fb7ef0 (patch)
tree9e1395e126f8ff0c9793effc82d1ca2f67f8cb22 /meson.build
parent448dd106da2e4751d88131e58e097ef06638154c (diff)
meson: always define `HAVE_{X11,XCB}_PLATFORM` when it's enabled
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13278>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 2 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 4fb4cfc5555..b383ef7d46b 100644
--- a/meson.build
+++ b/meson.build
@@ -916,10 +916,8 @@ endif
gl_pkgconfig_c_flags = []
if with_platform_x11
- if with_any_vk or with_egl or (with_glx == 'dri' and with_dri_platform == 'drm')
- pre_args += '-DHAVE_X11_PLATFORM'
- pre_args += '-DHAVE_XCB_PLATFORM'
- endif
+ pre_args += '-DHAVE_X11_PLATFORM'
+ pre_args += '-DHAVE_XCB_PLATFORM'
if with_glx == 'xlib' or with_glx == 'gallium-xlib'
pre_args += '-DUSE_XSHM'
else