xfree86: dri2: inline load_swap_reply()

very tiny and only called once, so no need to have a separate function.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-04 11:53:45 +01:00
committed by Enrico Weigelt
parent 1b9f88aa66
commit f00b684cb1

View File

@@ -329,13 +329,6 @@ ProcDRI2CopyRegion(ClientPtr client)
return X_SEND_REPLY_SIMPLE(client, reply);
}
static void
load_swap_reply(xDRI2SwapBuffersReply * rep, CARD64 sbc)
{
rep->swap_hi = sbc >> 32;
rep->swap_lo = sbc & 0xffffffff;
}
static CARD64
vals_to_card64(CARD32 lo, CARD32 hi)
{
@@ -393,7 +386,8 @@ ProcDRI2SwapBuffers(ClientPtr client)
xDRI2SwapBuffersReply reply = { 0 };
load_swap_reply(&reply, swap_target);
reply.swap_hi = swap_target >> 32;
reply.swap_lo = swap_target & 0xffffffff;
return X_SEND_REPLY_SIMPLE(client, reply);
}