The same names could be reused for e.g. GLX_OML_swap_control, and the
COMPLETE suffix doesn't make so much sense there.

Signed-off-by: Francisco Jerez <curroje...@riseup.net>
---
This patch isn't strictly necessary for buffer validation events, but
it makes some of the X server code nicer.

 dri2proto.txt |    6 +++---
 dri2tokens.h  |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dri2proto.txt b/dri2proto.txt
index 3d3eec4..4e53bea 100644
--- a/dri2proto.txt
+++ b/dri2proto.txt
@@ -453,9 +453,9 @@ The name of this extension is "DRI2".
 └───
 
        This event reports the status of the last DRI2SwapBuffers event to
-       the client.  The event type should be one of DRI2_EXCHANGE_COMPLETE,
-       indicating a successful buffer exchange, DRI2_BLIT_COMPLETE, indicating
-       the swap was performed with a blit, and DRI2_FLIP_COMPLETE, indicating
+       the client.  The event type should be one of DRI2_SWAP_EXCHANGE,
+       indicating a successful buffer exchange, DRI2_SWAP_BLIT, indicating
+       the swap was performed with a blit, and DRI2_SWAP_FLIP, indicating
        a full page flip was completed.
 
 ┌───
diff --git a/dri2tokens.h b/dri2tokens.h
index 7804e4d..2b31a1d 100644
--- a/dri2tokens.h
+++ b/dri2tokens.h
@@ -48,8 +48,8 @@
 #define DRI2DriverVDPAU                        1
 
 /* Event sub-types for the swap complete event */
-#define DRI2_EXCHANGE_COMPLETE         0x1
-#define DRI2_BLIT_COMPLETE             0x2
-#define DRI2_FLIP_COMPLETE             0x3
+#define DRI2_SWAP_EXCHANGE             0x1
+#define DRI2_SWAP_BLIT                 0x2
+#define DRI2_SWAP_FLIP                 0x3
 
 #endif
-- 
1.6.4.4


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to