debrix/hw/xorg/ramdac xf86HWCurs.c,1.3,1.4
Adam Jackson
xserver-commit at pdx.freedesktop.org
Mon Jun 21 20:27:39 PDT 2004
- Previous message: xserver/hw/kdrive/mga g400_common.h, NONE, 1.1 g400_composite.c,
NONE, 1.1 mga.c, 1.4, 1.5 mgadraw.c, 1.9, 1.10
- Next message: debrix-driver-tdfx Makefile.am, NONE, 1.1 autogen.sh, NONE,
1.1 configure.ac, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: ajax
Update of /cvs/xserver/debrix/hw/xorg/ramdac
In directory pdx:/home/ajax/debrix/hw/xorg/ramdac
Modified Files:
xf86HWCurs.c
Log Message:
add xf86ReverseBitOrder, which was referenced but never defined. needed
for tdfx, probably others.
Index: xf86HWCurs.c
===================================================================
RCS file: /cvs/xserver/debrix/hw/xorg/ramdac/xf86HWCurs.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xf86HWCurs.c 10 Jun 2004 19:41:17 -0000 1.3
+++ xf86HWCurs.c 22 Jun 2004 03:27:37 -0000 1.4
@@ -69,6 +69,18 @@
static unsigned char* RealizeCursorInterleave32(xf86CursorInfoPtr, CursorPtr);
static unsigned char* RealizeCursorInterleave64(xf86CursorInfoPtr, CursorPtr);
+/*
+ * XXX identical to XAAReverseBitOrder, but we can't assume that XAA is loaded
+ */
+CARD32
+xf86ReverseBitOrder(CARD32 data)
+{
+ return (((0x01010101 & data) << 7) | ((0x02020202 & data) << 5) |
+ ((0x04040404 & data) << 3) | ((0x08080808 & data) << 1) |
+ ((0x10101010 & data) >> 1) | ((0x20202020 & data) >> 3) |
+ ((0x40404040 & data) >> 5) | ((0x80808080 & data) >> 7));
+}
+
Bool
xf86InitHardwareCursor(ScreenPtr pScreen, xf86CursorInfoPtr infoPtr)
{
- Previous message: xserver/hw/kdrive/mga g400_common.h, NONE, 1.1 g400_composite.c,
NONE, 1.1 mga.c, 1.4, 1.5 mgadraw.c, 1.9, 1.10
- Next message: debrix-driver-tdfx Makefile.am, NONE, 1.1 autogen.sh, NONE,
1.1 configure.ac, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the xserver-commit
mailing list