summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 11:03:29 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 11:17:58 +0200
commit7847ea2965e548f7f68c6d7a88499bdb255a697f (patch)
treeab57251355f10ec894647eb4bb258b87e152928f /demos
parent7553ad6e10f76aa703359a10e08138e14501d54d (diff)
tests: use drmtest_skip to check for rings
To simplify things add a set of gem_check_<ring> functions which take care of this. Since I've opted for static inlines drmtest.h grew a few more header includes which was a neat opportunity to dump a few redundant #defines. This kills all the skipped_all hand-rolled logic we have. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'demos')
-rw-r--r--demos/intel_sprite_on.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/demos/intel_sprite_on.c b/demos/intel_sprite_on.c
index 783f9af2..5c380c19 100644
--- a/demos/intel_sprite_on.c
+++ b/demos/intel_sprite_on.c
@@ -51,8 +51,6 @@
#include "drm_fourcc.h"
#endif
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-
/*
* Mode setting with the kernel interfaces is a bit of a chore.
* First you have to find the connector in question and make sure the