From patchwork Mon Jan 19 11:00:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Wilson X-Patchwork-Id: 5657501 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F12A99F333 for ; Mon, 19 Jan 2015 11:17:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4444B2037B for ; Mon, 19 Jan 2015 11:17:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 69CB12011D for ; Mon, 19 Jan 2015 11:17:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C4B946E552; Mon, 19 Jan 2015 03:17:21 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 978 seconds by postgrey-1.34 at gabe; Mon, 19 Jan 2015 03:17:15 PST Received: from relay.fireflyinternet.com (hostedrelay.fireflyinternet.com [109.228.30.76]) by gabe.freedesktop.org (Postfix) with ESMTP id 12B966E051; Mon, 19 Jan 2015 03:17:14 -0800 (PST) X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from haswell.alporthouse.com (unverified [78.156.65.138]) by relay.fireflyinternet.com (FireflyRelay1) with ESMTP id 12848035-1305619 for multiple; Mon, 19 Jan 2015 11:00:52 +0000 From: Chris Wilson To: xorg-devel@lists.x.org, dri-devel@lists.freedesktop.org, mesa-dev@lists.freedesktop.org Subject: [dri2proto] Declare DRI2ParamXHasBufferAge Date: Mon, 19 Jan 2015 11:00:37 +0000 Message-Id: <1421665245-5994-2-git-send-email-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1421665245-5994-1-git-send-email-chris@chris-wilson.co.uk> References: <1421665245-5994-1-git-send-email-chris@chris-wilson.co.uk> X-Authenticated-User: chris.alporthouse@surfanytime.net X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham 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 In order for X/DDX to reuse a driver specific field of the DRI2GetBuffers reply, we need to declare the change in semantics. To indicate that the flags field now continues the last swap buffers count instead, we introduce the has-buffer-age parameter. Signed-off-by: Chris Wilson Reviewed-by: Ian Romanick Reviewed-by: Martin Peres --- configure.ac | 2 +- dri2proto.h | 2 ++ dri2proto.txt | 11 ++++++++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 5fadf56..9f4c4a0 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ([2.60]) -AC_INIT([DRI2Proto], [2.8], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg]) +AC_INIT([DRI2Proto], [2.9], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg]) AM_INIT_AUTOMAKE([foreign dist-bzip2]) # Require xorg-macros: XORG_DEFAULT_OPTIONS diff --git a/dri2proto.h b/dri2proto.h index 128b807..086dc96 100644 --- a/dri2proto.h +++ b/dri2proto.h @@ -340,6 +340,8 @@ typedef struct { } xDRI2GetParamReq; #define sz_xDRI2GetParamReq 12 +#define DRI2ParamXHasBufferAge 0 + typedef struct { BYTE type; /*X_Reply*/ BOOL is_param_recognized; diff --git a/dri2proto.txt b/dri2proto.txt index 9921301..9daa58e 100644 --- a/dri2proto.txt +++ b/dri2proto.txt @@ -454,9 +454,14 @@ The name of this extension is "DRI2". the screen associated with 'drawable'. Parameter names in which the value of the most significant byte is - 0 are reserved for the X server. Currently, no such parameter names - are defined. (When any such names are defined, they will be defined in - this extension specification and its associated headers). + 0 are reserved for the X server. The complete list of known parameter + names for the X server are: + + 0 - DRI2ParamXHasBufferAge + + Query whether the X server and DDX support passing the + buffers last swap buffer count in the flags field of + the DRI2GetBuffers reply. Parameter names in which the byte's value is 1 are reserved for the DDX. Such names are private to each driver and shall be defined in the