(!1639) present: 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>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-06 14:39:53 +02:00
parent 6a6f04bbe0
commit a29aa98030

View File

@ -343,7 +343,6 @@ sproc_present_query_version(ClientPtr client)
REQUEST(xPresentQueryVersionReq); REQUEST(xPresentQueryVersionReq);
REQUEST_SIZE_MATCH(xPresentQueryVersionReq); REQUEST_SIZE_MATCH(xPresentQueryVersionReq);
swaps(&stuff->length);
swapl(&stuff->majorVersion); swapl(&stuff->majorVersion);
swapl(&stuff->minorVersion); swapl(&stuff->minorVersion);
return (*proc_present_vector[stuff->presentReqType]) (client); return (*proc_present_vector[stuff->presentReqType]) (client);
@ -355,7 +354,6 @@ sproc_present_pixmap(ClientPtr client)
REQUEST(xPresentPixmapReq); REQUEST(xPresentPixmapReq);
REQUEST_AT_LEAST_SIZE(xPresentPixmapReq); REQUEST_AT_LEAST_SIZE(xPresentPixmapReq);
swaps(&stuff->length);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->pixmap); swapl(&stuff->pixmap);
swapl(&stuff->valid); swapl(&stuff->valid);
@ -375,7 +373,6 @@ sproc_present_notify_msc(ClientPtr client)
REQUEST(xPresentNotifyMSCReq); REQUEST(xPresentNotifyMSCReq);
REQUEST_SIZE_MATCH(xPresentNotifyMSCReq); REQUEST_SIZE_MATCH(xPresentNotifyMSCReq);
swaps(&stuff->length);
swapl(&stuff->window); swapl(&stuff->window);
swapll(&stuff->target_msc); swapll(&stuff->target_msc);
swapll(&stuff->divisor); swapll(&stuff->divisor);
@ -389,7 +386,6 @@ sproc_present_select_input (ClientPtr client)
REQUEST(xPresentSelectInputReq); REQUEST(xPresentSelectInputReq);
REQUEST_SIZE_MATCH(xPresentSelectInputReq); REQUEST_SIZE_MATCH(xPresentSelectInputReq);
swaps(&stuff->length);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->eventMask); swapl(&stuff->eventMask);
return (*proc_present_vector[stuff->presentReqType]) (client); return (*proc_present_vector[stuff->presentReqType]) (client);
@ -400,7 +396,6 @@ sproc_present_query_capabilities (ClientPtr client)
{ {
REQUEST(xPresentQueryCapabilitiesReq); REQUEST(xPresentQueryCapabilitiesReq);
REQUEST_SIZE_MATCH(xPresentQueryCapabilitiesReq); REQUEST_SIZE_MATCH(xPresentQueryCapabilitiesReq);
swaps(&stuff->length);
swapl(&stuff->target); swapl(&stuff->target);
return (*proc_present_vector[stuff->presentReqType]) (client); return (*proc_present_vector[stuff->presentReqType]) (client);
} }
@ -413,8 +408,6 @@ sproc_present_pixmap_synced(ClientPtr client)
REQUEST(xPresentPixmapSyncedReq); REQUEST(xPresentPixmapSyncedReq);
REQUEST_AT_LEAST_SIZE(xPresentPixmapSyncedReq); REQUEST_AT_LEAST_SIZE(xPresentPixmapSyncedReq);
swaps(&stuff->length);
swapl(&stuff->window); swapl(&stuff->window);
swapl(&stuff->pixmap); swapl(&stuff->pixmap);