[xserver-commit] xserver/hw/kdrive/fbdev fbdev.c,1.38,1.39
Keith Packard
xserver-commit@pdx.freedesktop.org
Fri, 07 Nov 2003 15:29:31 -0800
- Previous message: [xserver-commit] xserver/fb fb.h,1.39,1.40 fbpixmap.c,1.12,1.13 fbwindow.c,1.12,1.13
- Next message: [xserver-commit] xserver/hw/kdrive/linux keyboard.c,1.14,1.15 linux.c,1.15,1.16 mouse.c,1.12,1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: keithp
Update of /cvs/xserver/xserver/hw/kdrive/fbdev
In directory pdx:/tmp/cvs-serv8754/hw/kdrive/fbdev
Modified Files:
fbdev.c
Log Message:
* composite/compalloc.c: (compReportDamage), (compRedirectWindow),
(compFreeClientWindow), (compFreeClientSubwindows),
(compRedirectOneSubwindow), (compUnredirectOneSubwindow),
(compAllocPixmap), (compFreePixmap), (compReallocPixmap):
* composite/compext.c: (CompositeExtensionInit):
* composite/compinit.c: (compScreenInit):
* composite/compint.h:
* composite/compwindow.c: (compCheckRedirect),
(compReparentWindow), (compCopyWindow), (compDestroyWindow),
(compSetRedirectBorderClip), (compGetRedirectBorderClip),
(compWindowUpdateAutomatic), (compWindowUpdate):
* fb/fb.h:
* fb/fbpixmap.c: (fbCreatePixmapBpp):
* fb/fbwindow.c: (fbCopyWindow):
* hw/kdrive/fbdev/fbdev.c: (fbdevInitialize), (fbdevScreenInit):
* hw/kdrive/linux/keyboard.c: (readKernelMapping):
* hw/kdrive/linux/linux.c: (LinuxInit), (LinuxSpecialKey),
(LinuxFini):
* hw/kdrive/linux/mouse.c: (MouseWaitForReadable), (MouseReadByte),
(ps2SkipInit), (MouseRead):
* hw/kdrive/smi/smi.c: (smiScreenInit):
* include/pixmapstr.h:
* mi/mi.h:
* mi/midispcur.c:
* mi/mivaltree.c: (miRegisterRedirectBorderClipProc),
(miComputeClips):
* miext/damage/damage.c: (DamageDamageRegion):
* miext/damage/damage.h:
* render/mipict.c: (miValidatePicture):
Ok, Composite extension is semi-working; when no-one asks
for redirection, the server seems to act as before. With
RedirectSubwindows (root, automatic), the server looks just
like a regular X server. Now to go rewrite the (currently lame)
compositing manager to get some real action on the screen.
Some of the fixes here are to make valgrind quiet with
various ioctls used by kdrive/linux.
Also fixed a bug where fbdev initialization was out of order
in fbdev.c and smi.c
Index: fbdev.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/fbdev/fbdev.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- fbdev.c 2 Nov 2003 19:56:10 -0000 1.38
+++ fbdev.c 7 Nov 2003 23:29:29 -0000 1.39
@@ -40,11 +40,15 @@
perror("Error opening /dev/fb0\n");
return FALSE;
}
+ /* quiet valgrind */
+ memset (&priv->fix, '\0', sizeof (priv->fix));
if ((k=ioctl(priv->fd, FBIOGET_FSCREENINFO, &priv->fix)) < 0) {
perror("Error with /dev/fb ioctl FIOGET_FSCREENINFO");
close (priv->fd);
return FALSE;
}
+ /* quiet valgrind */
+ memset (&priv->var, '\0', sizeof (priv->var));
if ((k=ioctl(priv->fd, FBIOGET_VSCREENINFO, &priv->var)) < 0) {
perror("Error with /dev/fb ioctl FIOGET_VSCREENINFO");
close (priv->fd);
@@ -197,12 +201,13 @@
if (!scrpriv)
return FALSE;
memset (scrpriv, '\0', sizeof (FbdevScrPriv));
+ screen->driver = scrpriv;
if (!fbdevScreenInitialize (screen, scrpriv))
{
+ screen->driver = 0;
xfree (scrpriv);
return FALSE;
}
- screen->driver = scrpriv;
return TRUE;
}
- Previous message: [xserver-commit] xserver/fb fb.h,1.39,1.40 fbpixmap.c,1.12,1.13 fbwindow.c,1.12,1.13
- Next message: [xserver-commit] xserver/hw/kdrive/linux keyboard.c,1.14,1.15 linux.c,1.15,1.16 mouse.c,1.12,1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]