1 From fc7f191a1a0f290a4e808dd8f9bd58ba1dbd2be4 Mon Sep 17 00:00:00 2001
2 From: Otavio Salvador <otavio@ossystems.com.br>
3 Date: Sat, 29 Dec 2012 18:00:36 -0200
4 Subject: [PATCH 1/2] ext: Update to newer swap macros
6 The swap macros now use an internal temporary variable so we need to
7 adapt the code according.
9 Upstream-Status: Pending
11 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13 src/imx_ext.c | 16 ++++++----------
14 1 file changed, 6 insertions(+), 10 deletions(-)
16 diff --git a/src/imx_ext.c b/src/imx_ext.c
17 index f12469a..710cba4 100644
20 @@ -57,8 +57,6 @@ void imxExtInit()
22 Proc_IMX_EXT_GetPixmapPhysAddr(ClientPtr client)
26 REQUEST(xIMX_EXT_GetPixmapPhysAddrReq);
27 REQUEST_SIZE_MATCH(xIMX_EXT_GetPixmapPhysAddrReq);
29 @@ -96,10 +94,10 @@ Proc_IMX_EXT_GetPixmapPhysAddr(ClientPtr client)
30 /* Check if any reply values need byte swapping */
31 if (client->swapped) {
33 - swaps(&rep.sequenceNumber, n);
34 - swapl(&rep.length, n);
35 - swapl(&rep.pixmapPhysAddr, n);
36 - swapl(&rep.pixmapPitch, n);
37 + swaps(&rep.sequenceNumber);
39 + swapl(&rep.pixmapPhysAddr);
40 + swapl(&rep.pixmapPitch);
44 @@ -123,16 +121,14 @@ Proc_IMX_EXT_Dispatch(ClientPtr client)
46 SProc_IMX_EXT_GetPixmapPhysAddr(ClientPtr client)
50 REQUEST(xIMX_EXT_GetPixmapPhysAddrReq);
52 /* Swap request message length and verify it is correct. */
53 - swaps(&stuff->length, n);
54 + swaps(&stuff->length);
55 REQUEST_SIZE_MATCH(xIMX_EXT_GetPixmapPhysAddrReq);
57 /* Swap remaining request message parameters. */
58 - swapl(&stuff->pixmap, n);
59 + swapl(&stuff->pixmap);
61 return Proc_IMX_EXT_GetPixmapPhysAddr(client);