=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: configure: Check if SPIR-V headers are recent enough.
Alexandre Julliard
julliard at winehq.org
Wed Jul 31 13:43:29 CDT 2019
Module: vkd3d
Branch: master
Commit: b1c417a578cfe375cbb3e32860d160db171a5fcb
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=b1c417a578cfe375cbb3e32860d160db171a5fcb
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Sat Jul 6 07:36:33 2019 +0200
configure: Check if SPIR-V headers are recent enough.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure.ac | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/configure.ac b/configure.ac
index e2d6131..abd94b5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,6 +69,13 @@ AS_IF([test "x$ac_cv_header_spirv_unified1_GLSL_std_450_h" != "xyes" \
VKD3D_CHECK_VULKAN_HEADER_VERSION([113], [AC_MSG_ERROR([Vulkan headers are too old, 1.1.113 is required.])])
+AC_CHECK_DECL([SpvCapabilityDemoteToHelperInvocationEXT],, [AC_MSG_ERROR([SPIR-V headers are too old.])], [
+#ifdef HAVE_SPIRV_UNIFIED1_SPIRV_H
+# include "spirv/unified1/spirv.h"
+#else
+# include "vulkan/spirv.h"
+#endif])
+
dnl Check for libraries
m4_ifdef([PKG_PROG_PKG_CONFIG], [PKG_PROG_PKG_CONFIG], [m4_fatal([pkg-config autoconf macros not found.])])
More information about the wine-cvs
mailing list