projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8969b83
)
testdisplay: automatically enable TEST_PLANES if possible
author
Jesse Barnes
<jbarnes@virtuousgeek.org>
Tue, 7 Jun 2011 20:32:37 +0000
(13:32 -0700)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Tue, 7 Jun 2011 20:32:37 +0000
(13:32 -0700)
Just look for the ADDFB2 ioctl and enable the new code if it exists.
tests/testdisplay.c
patch
|
blob
|
history
diff --git
a/tests/testdisplay.c
b/tests/testdisplay.c
index
8859d55
..
e8e3309
100644
(file)
--- 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;