configure.ac: do not require the i965 driver for ANV
[mesa.git] / configure.ac
index 628aec3ceb3746b3f76868e9f44cad7f9aef7676..aa5cb75dfb94f546d62de44529c3c12a82826eb8 100644 (file)
@@ -1786,9 +1786,8 @@ if test -n "$with_vulkan_drivers"; then
     for driver in $VULKAN_DRIVERS; do
         case "x$driver" in
         xintel)
-            if test "x$HAVE_I965_DRI" != xyes; then
-                AC_MSG_ERROR([Intel Vulkan driver requires the i965 dri driver])
-            fi
+            require_libdrm "i965"
+            PKG_CHECK_MODULES([INTEL], [libdrm >= $LIBDRM_INTEL_REQUIRED libdrm_intel >= $LIBDRM_INTEL_REQUIRED])
             HAVE_INTEL_VULKAN=yes
 
             ;;