summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-08-06 15:36:46 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-08-06 15:36:46 +0000
commit384ebc29841e4f83b776274dc52b1b617859106e (patch)
tree8acc6900fcd08e25aa52734735489e04c4cb86f8
parentb61ae7d900c95c116adf53a42d4c4443e3160296 (diff)
update dri2proto to the latest version. (needed for dri2 with xserver
1.6.2 to work correctly) ok matthieu@
-rw-r--r--proto/dri2proto/configure.ac2
-rw-r--r--proto/dri2proto/dri2proto.h5
-rw-r--r--proto/dri2proto/dri2proto.txt67
-rw-r--r--proto/dri2proto/dri2tokens.h1
4 files changed, 70 insertions, 5 deletions
diff --git a/proto/dri2proto/configure.ac b/proto/dri2proto/configure.ac
index 234426ced..2d8fdc824 100644
--- a/proto/dri2proto/configure.ac
+++ b/proto/dri2proto/configure.ac
@@ -1,5 +1,5 @@
AC_PREREQ([2.57])
-AC_INIT([DRI2Proto], [2.0], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg])
+AC_INIT([DRI2Proto], [2.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg])
AM_INIT_AUTOMAKE([foreign dist-bzip2])
# Require xorg-macros: XORG_CHANGELOG
diff --git a/proto/dri2proto/dri2proto.h b/proto/dri2proto/dri2proto.h
index dc3f2d18f..8d76079a9 100644
--- a/proto/dri2proto/dri2proto.h
+++ b/proto/dri2proto/dri2proto.h
@@ -35,11 +35,11 @@
#define DRI2_NAME "DRI2"
#define DRI2_MAJOR 1
-#define DRI2_MINOR 0
+#define DRI2_MINOR 1
#define DRI2NumberErrors 0
#define DRI2NumberEvents 0
-#define DRI2NumberRequests 7
+#define DRI2NumberRequests 8
#define X_DRI2QueryVersion 0
#define X_DRI2Connect 1
@@ -48,6 +48,7 @@
#define X_DRI2DestroyDrawable 4
#define X_DRI2GetBuffers 5
#define X_DRI2CopyRegion 6
+#define X_DRI2GetBuffersWithFormat 7
typedef struct {
CARD32 attachment B32;
diff --git a/proto/dri2proto/dri2proto.txt b/proto/dri2proto/dri2proto.txt
index 106f8d8e8..e931bfbff 100644
--- a/proto/dri2proto/dri2proto.txt
+++ b/proto/dri2proto/dri2proto.txt
@@ -142,7 +142,8 @@ DRI2ATTACHMENT { DRI2BufferFrontLeft
DRI2BufferStencil
DRI2BufferAccum
DRI2BufferFakeFrontLeft
- DRI2BufferFakeFrontRight }
+ DRI2BufferFakeFrontRight
+ DRI2BufferDepthStencil }
These values describe various attachment points for DRI2
buffers.
@@ -159,6 +160,13 @@ DRI2BUFFER { attachment: CARD32
underlying kernel buffer,
+DRI2ATTACH_FORMAT { attachment: CARD32
+ format: CARD32 }
+
+ The DRI2ATTACH_FORMAT describes an attachment and the associated
+ format. 'attachment' describes the attachment point for the buffer,
+ 'format' describes an opaque, device-dependent format for the buffer.
+
⚙ ⚙ ⚙ ⚙ ⚙ ⚙
@@ -281,6 +289,31 @@ The name of this extension is "DRI2".
rendering the next frame.
+┌───
+ DRI2GetBuffersWithFormat
+ drawable: DRAWABLE
+ attachments: LISTofDRI2ATTACH_FORMAT
+ ▶
+ width, height: CARD32
+ buffers: LISTofDRI2BUFFER
+└───
+ Errors: Window
+
+ Get buffers for the provided attachment points with the specified
+ formats for the given drawable.
+
+ If the DDX driver does not support one or more of the
+ specified attachment points or formats, a Value error is generated,
+ with the first unsupported attachment point as the error value.
+
+ 'width' and 'height' describes the dimensions of the drawable.
+
+ 'buffers' is a list of DRI2BUFFER for the given DRI2
+ attachment points.
+
+ This request is only available with protocol version 1.1 or
+ later.
+
⚙ ⚙ ⚙ ⚙ ⚙ ⚙
@@ -366,8 +399,11 @@ A.1 Common Types
0x6 DRI2BufferAccum
0x7 DRI2BufferFakeFrontLeft
0x8 DRI2BufferFakeFrontRight
+ 0x9 DRI2BufferDepthStencil
└───
- Used to encode the possible attachment points.
+ Used to encode the possible attachment points. The attachment
+ DRI2BufferDepthStencil is only available with protocol version 1.1 or
+ later.
┌───
DRI2BUFFER
@@ -381,6 +417,14 @@ A.1 Common Types
manager name, the pitch and chars per pixel for a buffer
attached to a given drawable.
+┌───
+ DRI2ATTACH_FORMAT
+ 4 CARD32 attachment
+ 4 CARD32 format
+└───
+ Used to describe the attachment and format requested from the server.
+ This data type is only available with protocol version 1.1 or
+ later.
A.2 Protocol Requests
@@ -474,6 +518,25 @@ A.2 Protocol Requests
24 unused
└───
+┌───
+ DRI2GetBuffersWithFormat
+ 1 CARD8 major opcode
+ 1 3 DRI2 opcode
+ 2 3 length
+ 4 DRAWABLE drawable
+ 4 n number of attachments
+ 8n LISTofDRI2ATTACH_FORMAT attachments and formats
+ ▶
+ 1 1 Reply
+ 1 unused
+ 2 CARD16 sequence number
+ 4 0 reply length
+ 4 CARD32 width of drawable
+ 4 CARD32 height of drawable
+ 4 CARD32 buffer count
+ 12 unused
+ 5n LISTofDRI2BUFFER buffers
+└───
A.3 Protocol Events
diff --git a/proto/dri2proto/dri2tokens.h b/proto/dri2proto/dri2tokens.h
index 087159f5c..d56e4fb53 100644
--- a/proto/dri2proto/dri2tokens.h
+++ b/proto/dri2proto/dri2tokens.h
@@ -42,6 +42,7 @@
#define DRI2BufferAccum 6
#define DRI2BufferFakeFrontLeft 7
#define DRI2BufferFakeFrontRight 8
+#define DRI2BufferDepthStencil 9
#define DRI2DriverDRI 0