dri3: Add GLX_EXT_buffer_age support
authorAdel Gadllah <adel.gadllah@gmail.com>
Mon, 24 Feb 2014 19:44:42 +0000 (20:44 +0100)
committerEric Anholt <eric@anholt.net>
Thu, 13 Mar 2014 21:19:21 +0000 (14:19 -0700)
commita69fabc76cc5a8d744fb184bfc5a4096ee596c13
treef17c9fe43fc9f9fe0f77c9de67f380cf20bfd254
parent0b02d8a633da7ee19793eb12bb5ea407afe0de6f
dri3: Add GLX_EXT_buffer_age support

v2: Indent according to Mesa style, reuse sbc instead of making a new
    swap_count field, and actually get a usable back before returning the
    age of the back (fixing updated piglit tests).  Changes by anholt.

Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
Reviewed-by: Robert Bragg <robert@sixbynine.org> (v1)
Reviewed-by: Adel Gadllah <adel.gadllah@gmail.com> (v2)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/dri2_glx.c
src/glx/dri3_glx.c
src/glx/dri3_priv.h
src/glx/glx_pbuffer.c
src/glx/glxclient.h
src/glx/glxextensions.c
src/glx/glxextensions.h