Subject: Re: Making X work on MFB
To: maximum entropy <entropy@zippy.bernstein.com>
From: Andy Doran <ad@fionn.sports.gov.uk>
List: port-pmax
Date: 05/04/1999 20:43:04
On Tue, 4 May 1999, maximum entropy wrote:

> >Run, but not work. The patch would work fine on an 8-bit cfb... mfb
> >only has 1 plane, not 8. The cfbSetVisualTypes() is bogus. I suspect 
> >the mfb Xserver never worked properly in the first place.
> 
> Yes.  It now runs, and provides approximately the same level of
> functionality as the old Xcfbpmax did.  I agree that it should be
> corrected to know that there's only 1 plane, but all my attempts to do
> so failed.

Me too. I went further, in that I modified the pixmap formats and
DepthRec's for the screen. All combos refused to work (i.e. fscked up
output or coredump). According to the DDX Porting Layer document, it
should have worked. A possible solution is to modify cfbmskbits.h but that'd 
mess up things for other depths (unless you cloned the Imakefile in cfb24
- hmm).

> Do you have all the hardware that's needed to work on this?

Hah. I just arrived in .uk; aside from the machines at work (most of which
run NT/SCO/Linux) I've got nothing to work on. For instance, my own
personal machine runs NT workstation :(. I've got a NetBSD/i386 box at
'home' but that's no good.

> I'm not sure what you meant by the statement "The cfbSetVisualTypes()
> is bogus."  My patch _removes_ the call to cfbSetVisualTypes() because
> that's the primary reason the X server wouldn't run at all.

I think you just answered your own question.

> should have been:
> 
> cfbSetVisualTypes(1, 1<<StaticGray, 8);

I changed this locally but it didn't help. Neither did anything else I
tried, and I put about ~4 hours into this.

This is depressing. *sigh*.

Andy.