Subject: xsrc/7515: Xpmax server does not work on pmax with Turbochannel MFB
To: None <gnats-bugs@gnats.netbsd.org>
From: maximum entropy <entropy@ubik.bernstein.com>
List: netbsd-bugs
Date: 05/03/1999 20:20:46
>Number:         7515
>Category:       xsrc
>Synopsis:       Xpmax server does not work on pmax with Turbochannel MFB
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    xsrc-manager (NetBSD X11 bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May  3 20:05:00 1999
>Last-Modified:
>Originator:     maximum entropy
>Organization:
	
>Release:        <NetBSD-current source date>1.4-BETA
>Environment:
	
System: NetBSD ubik.bernstein.com 1.4_BETA NetBSD 1.4_BETA (UBIK) #3: Mon May 3 20:41:47 EDT 1999 root@ubik.bernstein.com:/usr/src/sys/arch/pmax/compile/UBIK pmax

tc0 at mainbus0: 12.5 MHz clock
mfb0 at tc0 slot 0 offset 0x0: (1280x1024x8) (console)

>Description:
	
The Xpmax server does not work on pmax with Turbochannel monochrome frame
buffer.

Xpmax is new, and didn't work on this hardware when released.  There is some
code in place to support this hardware, but it was only a shot in the dark
and didn't work correctly.

The old Xcfbpmax did work on this hardware, but Xcfbpmax no longer ships with
NetBSD/pmax.

>How-To-Repeat:
	
Try to start X, using the above hardware.
>Fix:
	


--- /usr/xsrc/xc/programs/Xserver/hw/netbsd/pmax/pmax_io.c-orig	Sat Apr 17 13:20:11 1999
+++ /usr/xsrc/xc/programs/Xserver/hw/netbsd/pmax/pmax_io.c	Mon May  3 22:25:18 1999
@@ -395,15 +395,8 @@
     		break;
 		
 	case PMAX_FBTYPE_MFB:
-		/*
-		 * XXX mfb is mono, but has 1 byte per pixel (only bit 0
-		 * is significant). Am I doing this right?
-		 */
-		defaultColorVisualClass = StaticGray;
-		cfbSetVisualTypes(1, StaticGray, 8);
-	
 		if (!cfbScreenInit(pScreen, scrInfo->bitmap, fb.fb_width, 
-		    fb.fb_height, dpix, dpiy, fb.fb_width)) {
+		    fb.fb_height, dpix, dpiy, 2048)) {
 		    	close(fdPM);
 		    	return (FALSE);
 		}
>Audit-Trail:
>Unformatted: