blob: 4d5230c348bfb4fd35ac236560bc079806ff9a21 [file] [log] [blame]
Daniel Vetterafa940c2011-04-09 20:15:10 +02001if HAVE_DRM
Daniel Vettera6751ba2011-03-31 23:29:25 +02002noinst_PROGRAMS = \
Daniel Vetter08cf5372011-03-19 21:34:55 +01003 gem_stress \
Daniel Vetterba2255a2011-09-14 14:58:55 +02004 $(TESTS) \
5 $(HANG) \
Daniel Vetter08cf5372011-03-19 21:34:55 +01006 $(NULL)
7
Daniel Vettera6751ba2011-03-31 23:29:25 +02008gem_stress_SOURCES = \
9 gem_stress.c \
10 gem_stress.h \
Daniel Vetter4fcfc9f2011-03-31 23:30:17 +020011 gem_stress_i915.c \
Chris Wilson719ffef2011-05-22 10:34:12 +010012 gem_stress_i830.c \
13 gen6_render.h \
14 gem_stress_gen6.c \
15 $(NULL)
Daniel Vettera6751ba2011-03-31 23:29:25 +020016
Eric Anholt895a4152009-03-26 18:47:42 -070017TESTS = getversion \
Eric Anholt8c641832009-03-26 17:15:11 -070018 getclient \
19 getstats \
Eric Anholt8c641832009-03-26 17:15:11 -070020 gem_basic \
Chris Wilson07d59b32011-01-20 22:10:10 +000021 gem_exec_nop \
Chris Wilson5fc09c82011-01-21 00:43:11 +000022 gem_exec_blt \
Eric Anholt8c641832009-03-26 17:15:11 -070023 gem_flink \
24 gem_readwrite \
Eric Anholt302d15f2009-04-27 09:35:40 -070025 gem_ringfill \
Eric Anholt3b301df2009-04-03 14:23:06 -070026 gem_mmap \
Chris Wilson9de433a2011-06-20 13:53:12 +010027 gem_mmap_gtt \
Chris Wilson5fc09c82011-01-21 00:43:11 +000028 gem_pwrite \
Eric Anholtcd9ba0a2009-04-07 16:18:11 -070029 gem_pread_after_blit \
Eric Anholt548a6a72009-04-07 16:21:16 -070030 gem_tiled_pread \
Chris Wilson9fd7e352011-02-01 19:22:32 +000031 gem_linear_blits \
Chris Wilsona0a0b6a2011-07-08 14:54:32 +010032 gem_vmap_blits \
Jesse Barnes433e1c82009-05-14 14:39:48 -070033 gem_tiled_blits \
Chris Wilson371f87f2011-02-01 10:53:57 +000034 gem_tiled_fence_blits \
Jesse Barnesbbafc3d2009-06-18 18:07:47 -070035 gem_largeobject \
36 gem_bad_address \
Chris Wilson89080552011-06-23 14:04:35 +010037 gem_bad_length \
Chris Wilsonf19a1942010-12-23 12:44:51 +000038 gem_fence_thrash \
Chris Wilson3ca054c2011-06-04 21:41:11 +010039 gem_fenced_exec_thrash \
Chris Wilsonf19a1942010-12-23 12:44:51 +000040 gem_gtt_speed \
Chris Wilson20b69032011-06-05 11:20:34 +010041 gen3_render_linear_blits \
42 gen3_render_tiledx_blits \
43 gen3_render_tiledy_blits \
Chris Wilsonf5e63b12011-06-05 17:23:09 +010044 gen3_render_mixed_blits \
45 gen3_mixed_blits \
Daniel Vetter32f49c72011-09-08 10:50:37 +020046 gem_storedw_loop_render \
47 gem_storedw_loop_blt \
48 gem_storedw_loop_bsd \
Jesse Barnes922214f2011-08-12 12:51:34 -070049 gem_storedw_batches_loop \
Daniel Vetter61b98062011-09-09 20:44:27 +020050 gem_dummy_reloc_loop \
Daniel Vetterb8245e12011-09-12 20:45:06 +020051 gem_double_irq_loop \
Daniel Vetter61b98062011-09-09 20:44:27 +020052 gem_ring_sync_loop \
Daniel Vetterfbf89502011-09-07 09:31:00 +020053 gem_pipe_control_store_loop \
Chris Wilsonf19a1942010-12-23 12:44:51 +000054 $(NULL)
Eric Anholt8c641832009-03-26 17:15:11 -070055
Chris Wilsond4127e02011-02-09 10:24:39 +000056HANG = \
Chris Wilson84c32bd2011-03-05 09:01:01 +000057 gem_bad_batch \
Chris Wilsond4127e02011-02-09 10:24:39 +000058 gem_hang \
Daniel Vetter2c380c22011-09-14 11:06:03 +020059 gem_bad_blit \
Chris Wilsond4127e02011-02-09 10:24:39 +000060 $(NULL)
61
62EXTRA_PROGRAMS = $(TESTS) $(HANG)
Eric Anholt895a4152009-03-26 18:47:42 -070063CLEANFILES = $(EXTRA_PROGRAMS)
64
65AM_CFLAGS = $(DRM_CFLAGS) $(WARN_CFLAGS) \
66 -I$(srcdir)/.. \
67 -I$(srcdir)/../lib
Eric Anholt3b301df2009-04-03 14:23:06 -070068LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS)
Chris Wilson8f3f8622009-09-01 10:09:55 +010069
Jesse Barnes5406c632010-12-21 09:38:23 -080070if HAVE_CAIRO
71if HAVE_LIBUDEV
72if HAVE_GLIB
73TESTS += testdisplay
74LDADD += $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(GLIB_LIBS)
75AM_CFLAGS += $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) $(GLIB_CFLAGS)
76endif
77endif
78endif
79
Chris Wilson8f3f8622009-09-01 10:09:55 +010080gem_fence_thrash_CFLAGS = $(AM_CFLAGS) -pthread
81gem_fence_thrash_LDADD = $(LDADD) -lpthread
Daniel Vetterafa940c2011-04-09 20:15:10 +020082endif