summaryrefslogtreecommitdiffstats
path: root/src/isl/Makefile.am
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-12-11 17:14:52 -0800
committerChad Versace <[email protected]>2015-12-15 08:46:09 -0800
commit64f0ee73e0ade5b6f888b143a1db58ffabfffd99 (patch)
treebbcb82e2e71afb6e5e0190ab3b2c2007d4db1c1d /src/isl/Makefile.am
parent53504b884e58af6bcf92e3fd258c7d9d3332c1fc (diff)
isl: Add func isl_surf_get_image_offset_sa
The function calculates the offset to a subimage within the surface, in units of surface samples. All unit tests pass with `make check`. (Admittedly, though, there are too few unit tests).
Diffstat (limited to 'src/isl/Makefile.am')
-rw-r--r--src/isl/Makefile.am21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/isl/Makefile.am b/src/isl/Makefile.am
index 6a5c29c67cb..134e62ad105 100644
--- a/src/isl/Makefile.am
+++ b/src/isl/Makefile.am
@@ -23,6 +23,8 @@ SUBDIRS = .
noinst_LTLIBRARIES = libisl.la
+EXTRA_DIST = tests
+
# The gallium includes are for the util/u_math.h include from main/macros.h
AM_CPPFLAGS = \
$(INTEL_CFLAGS) \
@@ -64,4 +66,23 @@ isl_format_layout.c: isl_format_layout_gen.bash \
$(AM_V_GEN)$(srcdir)/isl_format_layout_gen.bash \
<$(srcdir)/isl_format_layout.csv >$@
+# ----------------------------------------------------------------------------
+# Tests
+# ----------------------------------------------------------------------------
+
+TESTS = tests/isl_surf_get_image_offset_test
+
+check_PROGRAMS = $(TESTS)
+
+# Link tests to lib965_compiler.la for brw_get_device_info().
+tests_ldadd = \
+ libisl.la \
+ $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la
+
+tests_isl_surf_get_image_offset_test_SOURCES = \
+ tests/isl_surf_get_image_offset_test.c
+tests_isl_surf_get_image_offset_test_LDADD = $(tests_ldadd)
+
+# ----------------------------------------------------------------------------
+
include $(top_srcdir)/install-lib-links.mk