summaryrefslogtreecommitdiffstats
path: root/src/glx/dri3_priv.h
diff options
context:
space:
mode:
authorAdel Gadllah <adel.gadllah@gmail.com>2014-02-24 20:44:42 +0100
committerEric Anholt <eric@anholt.net>2014-03-13 14:19:21 -0700
commita69fabc76cc5a8d744fb184bfc5a4096ee596c13 (patch)
treef17c9fe43fc9f9fe0f77c9de67f380cf20bfd254 /src/glx/dri3_priv.h
parent0b02d8a633da7ee19793eb12bb5ea407afe0de6f (diff)
downloadexternal_mesa3d-a69fabc76cc5a8d744fb184bfc5a4096ee596c13.zip
external_mesa3d-a69fabc76cc5a8d744fb184bfc5a4096ee596c13.tar.gz
external_mesa3d-a69fabc76cc5a8d744fb184bfc5a4096ee596c13.tar.bz2
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>
Diffstat (limited to 'src/glx/dri3_priv.h')
-rw-r--r--src/glx/dri3_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/dri3_priv.h b/src/glx/dri3_priv.h
index 1d124f8..316e313 100644
--- a/src/glx/dri3_priv.h
+++ b/src/glx/dri3_priv.h
@@ -97,6 +97,7 @@ struct dri3_buffer {
uint32_t cpp;
uint32_t flags;
uint32_t width, height;
+ uint64_t last_swap;
enum dri3_buffer_type buffer_type;
};