[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#185057: [r128] garbled output from kdm when DRI is enabled in 4.2.x



Package: xserver-xfree86
Version: 4.2.1-6pre7v2
Severity: normal
Tags: sid patch

Hi,
Please apply the patch I have include from upstream (xf-4_2_99_1).
This will solve the problems with kdm / DRI on r128 (Dell Inspiron 4000):
the background of the kdm window is not visible, in its place you will
usually see the background of the old X session.
These messages are seen when this happens:
[kernel] [drm:r128_cce_indirect] *ERROR* process 5214 using buffer owned by 0

Best regards,
Peter


--- xc/programs/Xserver/hw/xfree86/drivers/ati/r128_dri.c	2001/12/28 15:49:11	1.22
+++ xc/programs/Xserver/hw/xfree86/drivers/ati/r128_dri.c	2002/02/22 21:45:14	1.23
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/r128_dri.c,v 1.22 2001/12/28 15:49:11 dawes Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/ati/r128_dri.c,v 1.23 2002/02/22 21:45:14 dawes Exp $ */
 /*
  * Copyright 1999, 2000 ATI Technologies Inc., Markham, Ontario,
  *                      Precision Insight, Inc., Cedar Park, Texas, and
@@ -292,14 +292,16 @@ static void R128LeaveServer(ScreenPtr pS
     unsigned char *R128MMIO = info->MMIO;
 
     if (!info->directRenderingEnabled) {
-	if (!info->CCEInUse) {
-	    /* Save all hardware scissors */
-	    info->sc_left     = INREG(R128_SC_LEFT);
-	    info->sc_right    = INREG(R128_SC_RIGHT);
-	    info->sc_top      = INREG(R128_SC_TOP);
-	    info->sc_bottom   = INREG(R128_SC_BOTTOM);
-	    info->aux_sc_cntl = INREG(R128_SC_BOTTOM);
-	}
+	/* Save all hardware scissors */
+	info->sc_left     = INREG(R128_SC_LEFT);
+	info->sc_right    = INREG(R128_SC_RIGHT);
+	info->sc_top      = INREG(R128_SC_TOP);
+	info->sc_bottom   = INREG(R128_SC_BOTTOM);
+	info->aux_sc_cntl = INREG(R128_SC_BOTTOM);
+    } else if (info->CCEInUse) {
+	R128CCEReleaseIndirect(pScrn);
+
+	info->CCEInUse = FALSE;
     }
 }
 


-- Package-specific info:
01:00.0 VGA compatible controller: ATI Technologies Inc Rage Mobility M3 AGP 2x (rev 02)
01:00.0 Class 0300: 1002:4c46 (rev 02)

-- System Information:
Debian Release: 3.0
Architecture: i386
Kernel: Linux debian 2.4.20-ck2-i4k #1 Sat Feb 1 08:29:33 CET 2003 i686
Locale: LANG=sv_SE.ISO-8859-1, LC_CTYPE=sv_SE.ISO-8859-1

Versions of packages xserver-xfree86 depends on:
ii  debconf                    1.2.32        Debian configuration management sy
ii  libc6                      2.3.1-14      GNU C Library: Shared libraries an
ii  xserver-common             4.2.1-6pre7v2 files and utilities common to all 
ii  zlib1g                     1:1.1.4-11    compression library - runtime

-- debconf information excluded





Reply to: