summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-driver/xf86-video-intel/disable-dri2-tests.patch
blob: 9e93ca875cba9e1fec95d34dae9f1317a9a41d96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Upstream-Status: Submitted
Signed-off-by: Ross Burton <ross.burton@intel.com>

From ec91cfe7e5efdd5e1b1fbb85eea8f07b50e24c4b Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@intel.com>
Date: Wed, 11 Sep 2013 21:12:37 +0100
Subject: [PATCH] test: only build DRI2 tests if DRI2 is enabled

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 test/Makefile.am |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/Makefile.am b/test/Makefile.am
index f51967b..18528a9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -16,9 +16,14 @@ stress_TESTS = \
 	render-copyarea-size \
 	render-copy-alphaless \
 	mixed-stress \
+	$(NULL)
+
+if DRI2
+stress_TESTS += \
 	dri2-swap \
 	dri2-race \
 	$(NULL)
+endif
 
 check_PROGRAMS = $(stress_TESTS)
 
@@ -34,9 +39,14 @@ libtest_la_SOURCES = \
 	test_image.c \
 	test_log.c \
 	test_render.c \
+	$(NULL)
+
+if DRI2
+libtest_la_SOURCES += \
 	dri2.c \
 	dri2.h \
 	$(NULL)
+endif
 
 vsync.avi: mkvsync.sh
 	./mkvsync.sh $@
-- 
1.7.10.4