xwin: drop swapping request length fields

The request struct's length fields aren't used anymore - we have the
client->req_len field instead, which also is bigreq-compatible.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1639>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-06 15:25:57 +02:00 committed by Marge Bot
parent 4cb141307c
commit 643f91266e

View File

@ -189,7 +189,6 @@ static int
SProcWindowsDRIQueryVersion(ClientPtr client) SProcWindowsDRIQueryVersion(ClientPtr client)
{ {
REQUEST(xWindowsDRIQueryVersionReq); REQUEST(xWindowsDRIQueryVersionReq);
swaps(&stuff->length);
return ProcWindowsDRIQueryVersion(client); return ProcWindowsDRIQueryVersion(client);
} }
@ -197,7 +196,6 @@ static int
SProcWindowsDRIQueryDirectRenderingCapable(ClientPtr client) SProcWindowsDRIQueryDirectRenderingCapable(ClientPtr client)
{ {
REQUEST(xWindowsDRIQueryDirectRenderingCapableReq); REQUEST(xWindowsDRIQueryDirectRenderingCapableReq);
swaps(&stuff->length);
swapl(&stuff->screen); swapl(&stuff->screen);
return ProcWindowsDRIQueryDirectRenderingCapable(client); return ProcWindowsDRIQueryDirectRenderingCapable(client);
} }
@ -206,7 +204,6 @@ static int
SProcWindowsDRIQueryDrawable(ClientPtr client) SProcWindowsDRIQueryDrawable(ClientPtr client)
{ {
REQUEST(xWindowsDRIQueryDrawableReq); REQUEST(xWindowsDRIQueryDrawableReq);
swaps(&stuff->length);
swapl(&stuff->screen); swapl(&stuff->screen);
swapl(&stuff->drawable); swapl(&stuff->drawable);
return ProcWindowsDRIQueryDrawable(client); return ProcWindowsDRIQueryDrawable(client);
@ -216,7 +213,6 @@ static int
SProcWindowsDRIFBConfigToPixelFormat(ClientPtr client) SProcWindowsDRIFBConfigToPixelFormat(ClientPtr client)
{ {
REQUEST(xWindowsDRIFBConfigToPixelFormatReq); REQUEST(xWindowsDRIFBConfigToPixelFormatReq);
swaps(&stuff->length);
swapl(&stuff->screen); swapl(&stuff->screen);
swapl(&stuff->fbConfigID); swapl(&stuff->fbConfigID);
return ProcWindowsDRIFBConfigToPixelFormat(client); return ProcWindowsDRIFBConfigToPixelFormat(client);