In studying dri2proto.txt I noticed that it has several places that don't
mention the events that have been added.
I also noticed a couple of typos and a reference to a 'group' field
that does not exist.
Here are patches for those issues. I am unsure of the padding in the
DRI2_InvalidateBuffers event.
--
Mike Stroyan - Software Architect
LunarG, Inc. - The Graphics Experts
Cell: (970) 219-7905
Email: m...@lunarg.com
Website: http://www.lunarg.com
From a007dd82921ff5d9aad10437f71a3df17c43ac03 Mon Sep 17 00:00:00 2001
From: Mike Stroyan
Date: Tue, 16 Feb 2010 14:47:21 -0700
Subject: [PATCH 1/2] Add more info about dri2proto events
---
dri2proto.txt | 36 ++--
1 files 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
--
1.6.3.3
From 60d92e90b9929fa6b7677845b26821352aaf4012 Mon Sep 17 00:00:00 2001
From: Mike Stroyan
Date: Tue, 16 Feb 2010 14:51:43 -0700
Subject: [PATCH 2/2] Fix typo and obsolete reference in dri2proto.txt
---
dri2proto.txt |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dri2proto.txt b/dri2proto.txt
index 9aa7578..f74792e 100644
--- a/dri2proto.txt
+++ b/dri2proto.txt
@@ -146,7 +146,7 @@ version 2 is used in the CopyRegion request.
4. Errors
-No errrors defined by the DRI2 extension.
+No errors are defined by the DRI2 extension.
⚙ ⚙ ⚙ ⚙ ⚙ ⚙
@@ -260,7 +260,7 @@ The name of this extension is "DRI2".
If the client is not local, or the request driver type is
unknown or not available, 'driver' and 'device' will be empty
- strings, 'group' will be '0'. We are not using an regular X
+ strings. We are not using an regular X
error here to indicate failure, which will allow the client
fall back to other options more easily.
--
1.6.3.3
--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel