summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2011-06-07 13:32:37 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-06-07 13:32:37 -0700
commite235f932883316953a9b7a5bcc76ea3b775c3695 (patch)
treeddde84c8f5c4fcd9a6a7b07a86560099174ca56b
parent8969b839b544e73a9242adb025562b1dc9ec5916 (diff)
testdisplay: automatically enable TEST_PLANES if possible
Just look for the ADDFB2 ioctl and enable the new code if it exists.
-rw-r--r--tests/testdisplay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c
index 8859d55d..e8e3309c 100644
--- a/tests/testdisplay.c
+++ b/tests/testdisplay.c
@@ -67,6 +67,10 @@
#include "xf86drmMode.h"
#include "i915_drm.h"
+#ifdef DRM_IOCTL_MODE_ADDFB2
+#define TEST_PLANES 1
+#endif
+
struct udev_monitor *uevent_monitor;
drmModeRes *resources;
int fd, modes;