From patchwork Thu Apr 10 21:23:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Roper X-Patchwork-Id: 3964901 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 01680BFF02 for ; Thu, 10 Apr 2014 21:20:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 12DFF20831 for ; Thu, 10 Apr 2014 21:20:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 364402082E for ; Thu, 10 Apr 2014 21:20:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A63286E2E3; Thu, 10 Apr 2014 14:20:47 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id BB0016E2E3 for ; Thu, 10 Apr 2014 14:20:46 -0700 (PDT) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 10 Apr 2014 14:20:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,836,1389772800"; d="scan'208";a="417511471" Received: from mdroper-hswdev.fm.intel.com (HELO mdroper-hswdev) ([10.1.134.215]) by azsmga001.ch.intel.com with ESMTP; 10 Apr 2014 14:20:46 -0700 Received: from mattrope by mdroper-hswdev with local (Exim 4.82) (envelope-from ) id 1WYMRG-0006eS-D8; Thu, 10 Apr 2014 14:23:14 -0700 From: Matt Roper To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] drm: Add universal plane capability bit and plane type enums Date: Thu, 10 Apr 2014 14:23:12 -0700 Message-Id: <1397164992-25536-1-git-send-email-matthew.d.roper@intel.com> X-Mailer: git-send-email 1.8.5.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Matt Roper --- include/drm/drm.h | 8 ++++++++ xf86drmMode.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/include/drm/drm.h b/include/drm/drm.h index f0b4c16..229a29f 100644 --- a/include/drm/drm.h +++ b/include/drm/drm.h @@ -627,6 +627,14 @@ struct drm_get_cap { */ #define DRM_CLIENT_CAP_STEREO_3D 1 +/** + * DRM_CLIENT_CAP_UNIVERSAL_PLANES + * + * if set to 1, the DRM core will expose the full universal plane list + * (including primary and cursor planes). + */ +#define DRM_CLIENT_CAP_UNIVERSAL_PLANES 2 + /** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */ struct drm_set_client_cap { __u64 capability; diff --git a/xf86drmMode.h b/xf86drmMode.h index 9bcb1d1..a0db82b 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h @@ -296,6 +296,10 @@ typedef struct _drmModeConnector { uint32_t *encoders; /**< List of encoder ids */ } drmModeConnector, *drmModeConnectorPtr; +#define DRM_PLANE_TYPE_OVERLAY 0 +#define DRM_PLANE_TYPE_PRIMARY 1 +#define DRM_PLANE_TYPE_CURSOR 2 + typedef struct _drmModeObjectProperties { uint32_t count_props; uint32_t *props;