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 <msrb@suse.com>
Reviewed-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston <jeremyhu@apple.com>
Tested-by: Michel Dänzer's avatarMichel Dänzer <michel@daenzer.net>
Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
parent 457fc776
...@@ -589,12 +589,15 @@ SProcDRI2Connect(ClientPtr client) ...@@ -589,12 +589,15 @@ SProcDRI2Connect(ClientPtr client)
if (sizeof(*stuff) / 4 != client->req_len) if (sizeof(*stuff) / 4 != client->req_len)
return BadLength; return BadLength;
rep.type = X_Reply;
rep.sequenceNumber = client->sequence; rep.sequenceNumber = client->sequence;
swaps(&rep.sequenceNumber); swaps(&rep.sequenceNumber);
rep.length = 0; rep.length = 0;
rep.driverNameLength = 0; rep.driverNameLength = 0;
rep.deviceNameLength = 0; rep.deviceNameLength = 0;
WriteToClient(client, sizeof(xDRI2ConnectReply), &rep);
return Success; 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