testdisplay: automatically enable TEST_PLANES if possible

Just look for the ADDFB2 ioctl and enable the new code if it exists.
This commit is contained in:
Jesse Barnes 2011-06-07 13:32:37 -07:00
parent 8969b839b5
commit e235f93288

View File

@ -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;