summaryrefslogtreecommitdiff
path: root/dri3
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-12-13 11:36:38 -0500
committerAdam Jackson <ajax@redhat.com>2013-12-13 14:59:03 -0500
commitec6087bf070131bc3a26848fb9fb840f09b0e19d (patch)
treeeddb8a3ab165d3735a03fa0731dcdd5440142b19 /dri3
parente6fafd3de70d315130fb6e5732cfd02a5901b788 (diff)
dri3: Don't use the major/minor version from the protocol headers
We want to advertise the version we implement, not the version the protocol headers happen to describe. Reviewed-by: Jasper St. Pierre <<jstpierre@mecheye.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'dri3')
-rw-r--r--dri3/dri3_request.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c
index 3ebb9d509..4e1408fb5 100644
--- a/dri3/dri3_request.c
+++ b/dri3/dri3_request.c
@@ -29,6 +29,7 @@
#include <unistd.h>
#include <xace.h>
#include "../Xext/syncsdk.h"
+#include <protocol-versions.h>
static int
proc_dri3_query_version(ClientPtr client)
@@ -38,8 +39,8 @@ proc_dri3_query_version(ClientPtr client)
.type = X_Reply,
.sequenceNumber = client->sequence,
.length = 0,
- .majorVersion = DRI3_MAJOR,
- .minorVersion = DRI3_MINOR
+ .majorVersion = SERVER_DRI3_MAJOR_VERSION,
+ .minorVersion = SERVER_DRI3_MINOR_VERSION
};
REQUEST_SIZE_MATCH(xDRI3QueryVersionReq);