Daniel Vetter | afa940c | 2011-04-09 20:15:10 +0200 | [diff] [blame] | 1 | if HAVE_DRM |
Daniel Vetter | a6751ba | 2011-03-31 23:29:25 +0200 | [diff] [blame] | 2 | noinst_PROGRAMS = \ |
Daniel Vetter | 08cf537 | 2011-03-19 21:34:55 +0100 | [diff] [blame] | 3 | gem_stress \ |
Daniel Vetter | ba2255a | 2011-09-14 14:58:55 +0200 | [diff] [blame^] | 4 | $(TESTS) \ |
5 | $(HANG) \ | ||||
Daniel Vetter | 08cf537 | 2011-03-19 21:34:55 +0100 | [diff] [blame] | 6 | $(NULL) |
7 | |||||
Daniel Vetter | a6751ba | 2011-03-31 23:29:25 +0200 | [diff] [blame] | 8 | gem_stress_SOURCES = \ |
9 | gem_stress.c \ | ||||
10 | gem_stress.h \ | ||||
Daniel Vetter | 4fcfc9f | 2011-03-31 23:30:17 +0200 | [diff] [blame] | 11 | gem_stress_i915.c \ |
Chris Wilson | 719ffef | 2011-05-22 10:34:12 +0100 | [diff] [blame] | 12 | gem_stress_i830.c \ |
13 | gen6_render.h \ | ||||
14 | gem_stress_gen6.c \ | ||||
15 | $(NULL) | ||||
Daniel Vetter | a6751ba | 2011-03-31 23:29:25 +0200 | [diff] [blame] | 16 | |
Eric Anholt | 895a415 | 2009-03-26 18:47:42 -0700 | [diff] [blame] | 17 | TESTS = getversion \ |
Eric Anholt | 8c64183 | 2009-03-26 17:15:11 -0700 | [diff] [blame] | 18 | getclient \ |
19 | getstats \ | ||||
Eric Anholt | 8c64183 | 2009-03-26 17:15:11 -0700 | [diff] [blame] | 20 | gem_basic \ |
Chris Wilson | 07d59b3 | 2011-01-20 22:10:10 +0000 | [diff] [blame] | 21 | gem_exec_nop \ |
Chris Wilson | 5fc09c8 | 2011-01-21 00:43:11 +0000 | [diff] [blame] | 22 | gem_exec_blt \ |
Eric Anholt | 8c64183 | 2009-03-26 17:15:11 -0700 | [diff] [blame] | 23 | gem_flink \ |
24 | gem_readwrite \ | ||||
Eric Anholt | 302d15f | 2009-04-27 09:35:40 -0700 | [diff] [blame] | 25 | gem_ringfill \ |
Eric Anholt | 3b301df | 2009-04-03 14:23:06 -0700 | [diff] [blame] | 26 | gem_mmap \ |
Chris Wilson | 9de433a | 2011-06-20 13:53:12 +0100 | [diff] [blame] | 27 | gem_mmap_gtt \ |
Chris Wilson | 5fc09c8 | 2011-01-21 00:43:11 +0000 | [diff] [blame] | 28 | gem_pwrite \ |
Eric Anholt | cd9ba0a | 2009-04-07 16:18:11 -0700 | [diff] [blame] | 29 | gem_pread_after_blit \ |
Eric Anholt | 548a6a7 | 2009-04-07 16:21:16 -0700 | [diff] [blame] | 30 | gem_tiled_pread \ |
Chris Wilson | 9fd7e35 | 2011-02-01 19:22:32 +0000 | [diff] [blame] | 31 | gem_linear_blits \ |
Chris Wilson | a0a0b6a | 2011-07-08 14:54:32 +0100 | [diff] [blame] | 32 | gem_vmap_blits \ |
Jesse Barnes | 433e1c8 | 2009-05-14 14:39:48 -0700 | [diff] [blame] | 33 | gem_tiled_blits \ |
Chris Wilson | 371f87f | 2011-02-01 10:53:57 +0000 | [diff] [blame] | 34 | gem_tiled_fence_blits \ |
Jesse Barnes | bbafc3d | 2009-06-18 18:07:47 -0700 | [diff] [blame] | 35 | gem_largeobject \ |
36 | gem_bad_address \ | ||||
Chris Wilson | 8908055 | 2011-06-23 14:04:35 +0100 | [diff] [blame] | 37 | gem_bad_length \ |
Chris Wilson | f19a194 | 2010-12-23 12:44:51 +0000 | [diff] [blame] | 38 | gem_fence_thrash \ |
Chris Wilson | 3ca054c | 2011-06-04 21:41:11 +0100 | [diff] [blame] | 39 | gem_fenced_exec_thrash \ |
Chris Wilson | f19a194 | 2010-12-23 12:44:51 +0000 | [diff] [blame] | 40 | gem_gtt_speed \ |
Chris Wilson | 20b6903 | 2011-06-05 11:20:34 +0100 | [diff] [blame] | 41 | gen3_render_linear_blits \ |
42 | gen3_render_tiledx_blits \ | ||||
43 | gen3_render_tiledy_blits \ | ||||
Chris Wilson | f5e63b1 | 2011-06-05 17:23:09 +0100 | [diff] [blame] | 44 | gen3_render_mixed_blits \ |
45 | gen3_mixed_blits \ | ||||
Daniel Vetter | 32f49c7 | 2011-09-08 10:50:37 +0200 | [diff] [blame] | 46 | gem_storedw_loop_render \ |
47 | gem_storedw_loop_blt \ | ||||
48 | gem_storedw_loop_bsd \ | ||||
Jesse Barnes | 922214f | 2011-08-12 12:51:34 -0700 | [diff] [blame] | 49 | gem_storedw_batches_loop \ |
Daniel Vetter | 61b9806 | 2011-09-09 20:44:27 +0200 | [diff] [blame] | 50 | gem_dummy_reloc_loop \ |
Daniel Vetter | b8245e1 | 2011-09-12 20:45:06 +0200 | [diff] [blame] | 51 | gem_double_irq_loop \ |
Daniel Vetter | 61b9806 | 2011-09-09 20:44:27 +0200 | [diff] [blame] | 52 | gem_ring_sync_loop \ |
Daniel Vetter | fbf8950 | 2011-09-07 09:31:00 +0200 | [diff] [blame] | 53 | gem_pipe_control_store_loop \ |
Chris Wilson | f19a194 | 2010-12-23 12:44:51 +0000 | [diff] [blame] | 54 | $(NULL) |
Eric Anholt | 8c64183 | 2009-03-26 17:15:11 -0700 | [diff] [blame] | 55 | |
Chris Wilson | d4127e0 | 2011-02-09 10:24:39 +0000 | [diff] [blame] | 56 | HANG = \ |
Chris Wilson | 84c32bd | 2011-03-05 09:01:01 +0000 | [diff] [blame] | 57 | gem_bad_batch \ |
Chris Wilson | d4127e0 | 2011-02-09 10:24:39 +0000 | [diff] [blame] | 58 | gem_hang \ |
Daniel Vetter | 2c380c2 | 2011-09-14 11:06:03 +0200 | [diff] [blame] | 59 | gem_bad_blit \ |
Chris Wilson | d4127e0 | 2011-02-09 10:24:39 +0000 | [diff] [blame] | 60 | $(NULL) |
61 | |||||
62 | EXTRA_PROGRAMS = $(TESTS) $(HANG) | ||||
Eric Anholt | 895a415 | 2009-03-26 18:47:42 -0700 | [diff] [blame] | 63 | CLEANFILES = $(EXTRA_PROGRAMS) |
64 | |||||
65 | AM_CFLAGS = $(DRM_CFLAGS) $(WARN_CFLAGS) \ | ||||
66 | -I$(srcdir)/.. \ | ||||
67 | -I$(srcdir)/../lib | ||||
Eric Anholt | 3b301df | 2009-04-03 14:23:06 -0700 | [diff] [blame] | 68 | LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS) |
Chris Wilson | 8f3f862 | 2009-09-01 10:09:55 +0100 | [diff] [blame] | 69 | |
Jesse Barnes | 5406c63 | 2010-12-21 09:38:23 -0800 | [diff] [blame] | 70 | if HAVE_CAIRO |
71 | if HAVE_LIBUDEV | ||||
72 | if HAVE_GLIB | ||||
73 | TESTS += testdisplay | ||||
74 | LDADD += $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(GLIB_LIBS) | ||||
75 | AM_CFLAGS += $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) $(GLIB_CFLAGS) | ||||
76 | endif | ||||
77 | endif | ||||
78 | endif | ||||
79 | |||||
Chris Wilson | 8f3f862 | 2009-09-01 10:09:55 +0100 | [diff] [blame] | 80 | gem_fence_thrash_CFLAGS = $(AM_CFLAGS) -pthread |
81 | gem_fence_thrash_LDADD = $(LDADD) -lpthread | ||||
Daniel Vetter | afa940c | 2011-04-09 20:15:10 +0200 | [diff] [blame] | 82 | endif |