Commit 9bc53d8c authored by Michal Srb's avatar Michal Srb Committed by Keith Packard
Browse files

dri2: SProcDRI2Connect - send the response.

The swapped implementation of DRI2Connect is always responding with empty
device and driver values. However the response was only prepared and never
sent (also had undefined .type member), causing e.g. glxinfo get stuck waiting
for response when started remotely from machine with different endianity.
Signed-off-by: default avatarMichal Srb <>
Reviewed-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <>
Tested-by: Michel Dänzer's avatarMichel Dänzer <>
Signed-off-by: Keith Packard's avatarKeith Packard <>
parent 457fc776
......@@ -589,12 +589,15 @@ SProcDRI2Connect(ClientPtr client)
if (sizeof(*stuff) / 4 != client->req_len)
return BadLength;
rep.type = X_Reply;
rep.sequenceNumber = client->sequence;
rep.length = 0;
rep.driverNameLength = 0;
rep.deviceNameLength = 0;
WriteToClient(client, sizeof(xDRI2ConnectReply), &rep);
return Success;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment