From 1911ee62a552fae34c82c91b4deef523380fbfe1 Mon Sep 17 00:00:00 2001 From: Mike Stroyan Date: Tue, 16 Feb 2010 14:47:21 -0700 Subject: Add more info about dri2proto events --- dri2proto.txt | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/dri2proto.txt b/dri2proto.txt index 3d3eec4..9aa7578 100644 --- a/dri2proto.txt +++ b/dri2proto.txt @@ -153,7 +153,8 @@ No errrors defined by the DRI2 extension. 5. Events -The only event provided by DRI2 is DRI2_BufferSwapComplete. +The only events provided by DRI2 are DRI2_BufferSwapComplete +and DRI2InvalidateBuffers. ⚙ ⚙ ⚙ ⚙ ⚙ ⚙ @@ -826,7 +827,38 @@ A.2 Protocol Requests A.3 Protocol Events -The DRI2 extension specifies no events. +The DRI2 extension specifies DRI2_BufferSwapComplete and +DRI2_InvalidateBuffers events. + +┌─── + DRI2_BufferSwapComplete + 1 CARD8 type + 1 CARD8 extension + 2 CARD16 sequenceNumber + 2 CARD16 event_type + 4 DRAWABLE drawable + 4 CARD32 ust_hi + 4 CARD32 ust_lo + 4 CARD32 msc_hi + 4 CARD32 msc_lo + 4 CARD32 sbc_hi + 4 CARD32 sbc_lo +└─── + + +┌─── + DRI2_InvalidateBuffers + 1 CARD8 type + 1 CARD8 extension + 2 CARD16 sequenceNumber + 4 DRAWABLE drawable + 4 CARD32 unused + 4 CARD32 unused + 4 CARD32 unused + 4 CARD32 unused + 4 CARD32 unused + 4 CARD32 unused +└─── A.4 Protocol Errors -- cgit v1.2.1