Bug 43760

Summary: PATCH: (ports/graphics/dri-devel) Fix Matrox G550 cursor
Product: Ports & Packages Reporter: Peter Johnson <freebsd>
Component: Individual Port(s)Assignee: Eric Anholt <anholt>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Peter Johnson 2002-10-07 09:40:01 UTC
PR/37542 patch should be applied to graphics/dri-devel port (it's fixed in the X11 server port but not in the dri-devel port).

The MGA driver in XFree86 4.2.0 corrupts the hardware cursor when using
the Matrox G550 card.  The corrupted cursor usually appears as a pair of
sets of vertical lines taking up a 64x64 area instead of the normal
cursor contents.  This makes XFree86 unusable for normal use.

Fix: 

Workaround:
Add option "hw cursor" "off" to the G550 Device section of the
XF86Config file.  This disables the hardware cursor.

Fix:
This has been fixed in XFree86 CVS, as part of the following patch:
http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_driver.c.diff?r1=1.218&;r2=1.219
(the specific XFree86 4.2.0 bug number is 98).

As this patch covers a number of bugs, the relevant part of the patch
to this specific bug is:
--- xc/programs/Xserver/hw/xfree86/drivers/mga/mga_driver.c	2002/02/21 02:46:38	1.218
+++ xc/programs/Xserver/hw/xfree86/drivers/mga/mga_driver.c	2002/04/04 14:05:43	1.219
@@ -2794,7 +2794,8 @@ MGAModeInit(ScrnInfoPtr pScrn, DisplayMo
 	    case PCI_CHIP_MGAG200:
 	    case PCI_CHIP_MGAG200_PCI:
 	    case PCI_CHIP_MGAG400:	      
-	      if(pMga->SecondCrtc == FALSE && pMga->HWCursor == TRUE) {
+	    case PCI_CHIP_MGAG550:
+		if(pMga->SecondCrtc == FALSE && pMga->HWCursor == TRUE) {
 		outMGAdac(MGA1064_CURSOR_BASE_ADR_LOW, 
 			  pMga->FbCursorOffset >> 10);
 		outMGAdac(MGA1064_CURSOR_BASE_ADR_HI,
How-To-Repeat: Run XFree86 with dri-devel on a Matrox G550 card with the HW cursor
enabled.
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-10-07 13:17:51 UTC
Responsible Changed
From-To: freebsd-ports->anholt

over to maintainer
Comment 2 Eric Anholt freebsd_committer freebsd_triage 2002-10-17 01:39:50 UTC
State Changed
From-To: open->closed

Patch committed, thanks!