From: Matt Roper Subject: [PATCH i-g-t] lib/kms: Provide universal plane #define's Date: Mon, 7 Jul 2014 09:08:29 -0700 Message-ID: <1404749309-20368-1-git-send-email-matthew.d.roper@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B1D18911A for ; Mon, 7 Jul 2014 09:08:00 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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 --- lib/igt_kms.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 2442c4b..d792008 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 -- 1.8.5.1