ntel-gpu-tools/tests/Makefile.am
Jesse Barnes 922214f986 tests: add store dword tests
Add a couple of simple store dword tests to test memory coherence.

gem_storedw_loop simply executes a batch that continually stores an
incremented value to a target buffer object, checking the results after
each batch completes.

gem_storedw_batches_loop does the same thing, but creates a new command
batch buffer for each iteration, which can exercise the buffer creation
code.  This test is based on one from Andrzej Kacprowski from Intel.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-08-12 12:51:34 -07:00

75 lines
1.4 KiB
Makefile

if HAVE_DRM
noinst_PROGRAMS = \
gem_stress \
$(NULL)
gem_stress_SOURCES = \
gem_stress.c \
gem_stress.h \
gem_stress_i915.c \
gem_stress_i830.c \
gen6_render.h \
gem_stress_gen6.c \
$(NULL)
TESTS = getversion \
getclient \
getstats \
gem_basic \
gem_exec_nop \
gem_exec_blt \
gem_flink \
gem_readwrite \
gem_ringfill \
gem_mmap \
gem_mmap_gtt \
gem_pwrite \
gem_pread_after_blit \
gem_tiled_pread \
gem_linear_blits \
gem_vmap_blits \
gem_tiled_blits \
gem_tiled_fence_blits \
gem_largeobject \
gem_bad_address \
gem_bad_blit \
gem_bad_length \
gem_fence_thrash \
gem_fenced_exec_thrash \
gem_gtt_speed \
gen3_render_linear_blits \
gen3_render_tiledx_blits \
gen3_render_tiledy_blits \
gen3_render_mixed_blits \
gen3_mixed_blits \
gem_storedw_loop \
gem_storedw_batches_loop \
$(NULL)
HANG = \
gem_bad_batch \
gem_hang \
$(NULL)
EXTRA_PROGRAMS = $(TESTS) $(HANG)
CLEANFILES = $(EXTRA_PROGRAMS)
AM_CFLAGS = $(DRM_CFLAGS) $(WARN_CFLAGS) \
-I$(srcdir)/.. \
-I$(srcdir)/../lib
LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS)
if HAVE_CAIRO
if HAVE_LIBUDEV
if HAVE_GLIB
TESTS += testdisplay
LDADD += $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(GLIB_LIBS)
AM_CFLAGS += $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) $(GLIB_CFLAGS)
endif
endif
endif
gem_fence_thrash_CFLAGS = $(AM_CFLAGS) -pthread
gem_fence_thrash_LDADD = $(LDADD) -lpthread
endif