# Used when generating entrypoints to filter out unwanted extensions
VULKAN_ENTRYPOINT_CPPFLAGS = \
- -I$(top_srcdir)/include/vulkan \
- -DVK_USE_PLATFORM_XCB_KHR
+ -I$(top_srcdir)/include/vulkan
lib_LTLIBRARIES = libvulkan_intel.la
-I$(top_builddir)/src/compiler/nir \
-I$(top_builddir)/src/intel
-AM_CFLAGS = -DVK_USE_PLATFORM_XCB_KHR -Wno-override-init -msse2
+AM_CFLAGS = -Wno-override-init -msse2
VULKAN_SOURCES = \
$(VULKAN_GENERATED_FILES) \
- $(VULKAN_FILES) \
- $(VULKAN_WSI_X11_FILES)
+ $(VULKAN_FILES)
VULKAN_LIB_DEPS =
libanv_gen9_la_CFLAGS = $(AM_CFLAGS) -DGEN_VERSIONx10=90
libanv_gen9_la_SOURCES = $(GEN9_FILES)
+
+if HAVE_EGL_PLATFORM_X11
+VULKAN_ENTRYPOINT_CPPFLAGS += \
+ -DVK_USE_PLATFORM_XCB_KHR
+
+AM_CPPFLAGS += \
+ $(XCB_DRI3_CFLAGS) \
+ -DVK_USE_PLATFORM_XCB_KHR
+
+VULKAN_SOURCES += $(VULKAN_WSI_X11_FILES)
+VULKAN_LIB_DEPS += $(XCB_DRI3_LIBS)
+endif
+
+
if HAVE_EGL_PLATFORM_WAYLAND
VULKAN_ENTRYPOINT_CPPFLAGS += -DVK_USE_PLATFORM_WAYLAND_KHR
VULKAN_LIB_DEPS += \
libvulkan_common.la \
- -lxcb -lxcb-dri3 -lxcb-present -lxcb-sync -lxshmfence \
$(top_builddir)/src/intel/isl/libisl.la \
$(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
$(top_builddir)/src/mesa/libmesa.la \
.extensionName = VK_KHR_SURFACE_EXTENSION_NAME,
.specVersion = 25,
},
+#ifdef VK_USE_PLATFORM_XCB_KHR
{
.extensionName = VK_KHR_XCB_SURFACE_EXTENSION_NAME,
.specVersion = 5,
},
+#endif
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
{
.extensionName = VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME,
{
VkResult result;
+#ifdef VK_USE_PLATFORM_XCB_KHR
result = anv_x11_init_wsi(instance);
if (result != VK_SUCCESS)
return result;
+#endif
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
result = anv_wl_init_wsi(instance);
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
anv_wl_finish_wsi(instance);
#endif
+#ifdef VK_USE_PLATFORM_XCB_KHR
anv_x11_finish_wsi(instance);
+#endif
}
void anv_DestroySurfaceKHR(