i965: Add a dependency on libisl
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Apr 2016 22:32:18 +0000 (15:32 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Apr 2016 03:44:27 +0000 (20:44 -0700)
To avoid build issues, ensure that you're running `make' at the top level
and/or you've executed `make clean' beforehand.

Reviewed-by: Chad Versace <chad.versace@intel.com>
configure.ac
src/Makefile.am
src/intel/Makefile.am
src/mesa/drivers/dri/i965/Makefile.am

index 9226a0d99ab8ec8976e38335f4be77417e5198f9..e4ce8fe1ad61fcc461554205875b4efc7d1276bf 100644 (file)
@@ -2459,7 +2459,8 @@ AM_CONDITIONAL(HAVE_SWRAST_DRI, test x$HAVE_SWRAST_DRI = xyes)
 
 AM_CONDITIONAL(HAVE_INTEL_VULKAN, test "x$HAVE_INTEL_VULKAN" = xyes)
 
-AM_CONDITIONAL(HAVE_INTEL_DRIVERS, test "x$HAVE_INTEL_VULKAN" = xyes)
+AM_CONDITIONAL(HAVE_INTEL_DRIVERS, test "x$HAVE_INTEL_VULKAN" = xyes -o \
+                                        "x$HAVE_I965_DRI" = xyes)
 
 AM_CONDITIONAL(NEED_RADEON_DRM_WINSYS, test "x$HAVE_GALLIUM_R300" = xyes -o \
                                             "x$HAVE_GALLIUM_R600" = xyes -o \
index a0572b7a563adbbd32ddbf74c1747caf5bbe1e07..1471fa0e48aab1a900f0668c0769fd8b61e1d885 100644 (file)
@@ -24,10 +24,19 @@ SUBDIRS = . gtest util mapi/glapi/gen mapi
 # include only conditionally ?
 SUBDIRS += compiler
 
+if HAVE_INTEL_DRIVERS
+SUBDIRS += intel
+endif
+
 if NEED_OPENGL_COMMON
 SUBDIRS += mesa
 endif
 
+# This explicitly comes after mesa because it depends on the i965 compiler
+if HAVE_INTEL_VULKAN
+SUBDIRS += intel/vulkan
+endif
+
 SUBDIRS += loader
 
 if HAVE_DRI_GLX
@@ -56,10 +65,6 @@ EXTRA_DIST = \
 AM_CFLAGS = $(VISIBILITY_CFLAGS)
 AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
 
-if HAVE_INTEL_DRIVERS
-SUBDIRS += intel
-endif
-
 AM_CPPFLAGS = \
        -I$(top_srcdir)/include/ \
        -I$(top_srcdir)/src/mapi/ \
index c3673c6e7c88f7bca83d054e20c49e41c0db5ec7..520602dd290e647267744bbf993727d59b1f8c13 100644 (file)
@@ -20,7 +20,3 @@
 # IN THE SOFTWARE.
 
 SUBDIRS = genxml isl
-
-if HAVE_INTEL_VULKAN
-SUBDIRS += vulkan
-endif
index ba3aa267bbf0408979c71dbe8c3c756d2558b80c..1049d4a4916432babc9dc52df8ab4977f8a2ce14 100644 (file)
@@ -34,6 +34,7 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/mesa/drivers/dri/intel/server \
        -I$(top_srcdir)/src/gtest/include \
        -I$(top_srcdir)/src/compiler/nir \
+       -I$(top_srcdir)/src/intel \
        -I$(top_builddir)/src/compiler/nir \
        -I$(top_builddir)/src/mesa/drivers/dri/common \
        $(DEFINES) \
@@ -48,7 +49,10 @@ brw_nir_trig_workarounds.c: brw_nir_trig_workarounds.py $(top_srcdir)/src/compil
 
 noinst_LTLIBRARIES = libi965_dri.la libi965_compiler.la
 libi965_dri_la_SOURCES = $(i965_FILES)
-libi965_dri_la_LIBADD = libi965_compiler.la $(INTEL_LIBS)
+libi965_dri_la_LIBADD = \
+       $(top_builddir)/src/intel/isl/libisl.la \
+       libi965_compiler.la \
+       $(INTEL_LIBS)
 
 libi965_compiler_la_SOURCES = \
        $(i965_compiler_FILES) \
@@ -60,6 +64,7 @@ CLEANFILES = $(BUILT_SOURCES)
 TEST_LIBS = \
        libi965_compiler.la \
         ../../../libmesa.la \
+       $(top_builddir)/src/intel/isl/libisl.la \
        $(PTHREAD_LIBS) \
        $(DLOPEN_LIBS) \
        ../common/libdri_test_stubs.la