From: Ian Romanick <idr-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org>
To: Chris Wilson
<chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>,
xorg-devel-go0+a7rfsptAfugRpC6u6w@public.gmane.org,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [Mesa-dev] [dri2proto] Declare DRI2ParamXHasBufferAge
Date: Tue, 20 Jan 2015 12:53:00 -0800 [thread overview]
Message-ID: <54BEC02C.4010400@freedesktop.org> (raw)
In-Reply-To: <1421665245-5994-2-git-send-email-chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>
On 01/19/2015 03:00 AM, Chris Wilson wrote:
> 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 <chris@chris-wilson.co.uk>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
> ---
> 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
>
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
next prev parent reply other threads:[~2015-01-20 20:53 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-19 11:00 Implement GLX_EXT_buffer_age for DRI2 Chris Wilson
[not found] ` <1421665245-5994-1-git-send-email-chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>
2015-01-19 11:00 ` [dri2proto] Declare DRI2ParamXHasBufferAge Chris Wilson
[not found] ` <1421665245-5994-2-git-send-email-chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>
2015-01-20 20:53 ` Ian Romanick [this message]
2015-06-16 12:25 ` Martin Peres
2015-01-19 11:00 ` [xorg 1/3] dri2: Allow GetBuffers to match any format Chris Wilson
2015-01-20 20:49 ` [Mesa-dev] " Ian Romanick
2015-06-16 13:11 ` Martin Peres
2015-01-19 11:00 ` [xorg 2/3] dri2: Pass swap-interval=0 ScheduleSwap requests to the ddx Chris Wilson
2015-02-18 19:57 ` Fredrik Höglund
2015-01-19 11:00 ` [xorg 3/3] dri2: Reuse unused flags in GetBuffers protocol to pass last SBC Chris Wilson
2015-01-19 14:14 ` Chris Wilson
2015-01-19 14:29 ` [PATCH v2] " Chris Wilson
2015-01-20 21:55 ` Ian Romanick
2015-01-19 11:00 ` [xf86-video-ati] dri2: Enable BufferAge support Chris Wilson
2015-01-20 16:47 ` Alex Deucher
2015-01-19 11:00 ` [xf86-video-nouveau] " Chris Wilson
[not found] ` <1421665245-5994-7-git-send-email-chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>
2015-05-09 4:41 ` Mario Kleiner
2015-01-19 11:00 ` [mesa 7/9] glx/dri2: Add DRI2GetParam() Chris Wilson
[not found] ` <1421665245-5994-8-git-send-email-chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>
2015-01-20 19:11 ` [Mesa-dev] " Ian Romanick
2015-01-19 11:00 ` [mesa 8/9] glx/dri2: Move the wait after SwapBuffers into the next GetBuffers Chris Wilson
2015-01-20 20:03 ` Ian Romanick
2015-01-19 11:00 ` [mesa 9/9] glx/dri2: Implement getBufferAge Chris Wilson
2015-01-20 20:35 ` Ian Romanick
[not found] ` <54BEBBF9.8010104-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org>
2015-01-20 20:49 ` [Mesa-dev] " Ian Romanick
2015-01-20 21:49 ` Implement GLX_EXT_buffer_age for DRI2 Dave Airlie
2015-02-18 18:40 ` [Mesa-dev] " Daniel Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54BEC02C.4010400@freedesktop.org \
--to=idr-cc+yj3umiyqdupfqwhejaq@public.gmane.org \
--cc=chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org \
--cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=mesa-dev-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=xorg-devel-go0+a7rfsptAfugRpC6u6w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox