egl: include directly the useful vulkan header, instead of including everything
authorEric Engestrom <eric@igalia.com>
Thu, 23 Feb 2023 13:21:22 +0000 (13:21 +0000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Feb 2023 18:31:22 +0000 (18:31 +0000)
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21489>

src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c
src/egl/meson.build

index 34e356e..e48777e 100644 (file)
@@ -34,7 +34,8 @@
 #include <dlfcn.h>
 #include <errno.h>
 #include <unistd.h>
-#include <vulkan/vulkan.h>
+#include <vulkan/vulkan_core.h>
+#include <vulkan/vulkan_wayland.h>
 #include <fcntl.h>
 #include <xf86drm.h>
 #include "drm-uapi/drm_fourcc.h"
index a362cce..0a4889c 100644 (file)
@@ -35,7 +35,9 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <unistd.h>
-#include <vulkan/vulkan.h>
+#include <xcb/xcb.h>
+#include <vulkan/vulkan_core.h>
+#include <vulkan/vulkan_xcb.h>
 #ifdef HAVE_LIBDRM
 #include <xf86drm.h>
 #endif
index 0a351bb..708c120 100644 (file)
@@ -95,7 +95,6 @@ if with_dri2
   )
   files_egl += sha1_h
   deps_for_egl += idep_xmlconfig
-  deps_for_egl += idep_vulkan_wsi_defines
   link_for_egl += libloader
   incs_for_egl += inc_loader
   incs_for_egl += inc_gallium