summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2014-07-07 09:08:29 -0700
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-07-07 18:27:07 +0200
commitc8b8f8abf60de1fdaafc798ebc6f73880a4e4225 (patch)
tree63c4448338d98d32be435232f1d579e8ce363106 /lib
parent80a4a4fd43aff81dea8822ab4756ed99b7b13e66 (diff)
lib/kms: Provide universal plane #define's
There hasn't been a libdrm release containing the universal plane definitions yet, so add them to igt_kms to allow compilation to succeed in the meantime. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_kms.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 2442c4b7..d792008c 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -42,6 +42,20 @@
#include "igt_kms.h"
#include "igt_aux.h"
+/*
+ * There hasn't been a release of libdrm containing these #define's yet, so
+ * copy them here to allow compilation to succeed in the mean time.
+ *
+ * We can drop these #define's and just make i-g-t depend on the proper libdrm
+ * version in the future.
+ */
+#define DRM_CLIENT_CAP_UNIVERSAL_PLANES 2
+#define DRM_PLANE_TYPE_OVERLAY 0
+#define DRM_PLANE_TYPE_PRIMARY 1
+#define DRM_PLANE_TYPE_CURSOR 2
+
+
+
/**
* SECTION:igt_kms
* @short_description: Kernel modesetting support library