PATCH: tdfxfb: bugfix & enable SUN12x22 font, kernel 2.4.5

From: Melchior FRANZ (a8603365@unet.univie.ac.at)
Date: Mon Jun 04 2001 - 05:26:25 EST


Hi,

I'm running a Voodoo3-3000 with the tdfxfb and the SUN12x22 font since several
months now (using "video=tdfx:1280x1024-8,nomtrr,font:SUN12x22"). The tdfx
framebuffer officially supports just 8 pixels wide fonts and issues some
"No support for fontwidth 12" error messages, but apart from that it works
almost seamlessly. Using a font wider than 8 pixels uncovers a bug, though:
The cursor appears as follows:

   ### ###
    ## ###
    ### ###
    ### ###
    ### ###
    # ## # ##
    # ## # ##
    # ## # ##
    # ## # ##
    # ### ##
    # ### ##
    # # ##
    # # ##
   ### # ####
              
              
   ######## ####
   ######## ####

It is 16 pixels wide and has a 4 pixels wide gap. Although I had no access to
3dfx specs, I'm quite sure that the problem is the following:
tdfxfb_createcursor() creates the cursor pattern (xline) beginning with the
LSB: 0x000000ff for a 8 bit font and 0x00000fff for the 12 bit font. This
pattern is now shuffled to little-endian order: 0xff000000 for 8 bit and
0xff0f0000 for 12 bit. The 8 bit pattern is by fortune exactly what the
3dfx-card expects: a pattern beginning at the MSB, so this bug wasn't obvious.
The 12 bit pattern, however, is broken and explains the above illustrated
outcome.

The attached patch fixes that bug and enables 8--12 bit wide fonts, thus
disabling the "No support ..." messages. I haven't found an indication that
there are any Voodoo3/Banshee cards for big endian machines. The bugfix implies
that they never could have worked. (But if they have indeed, they would be
broken after applying the patch. Could someone comment on this, please?)

I have written two emails to the author (Hannu MALLAT) but got no response.
http://www.linux-fbdev.org/ and http://www.hut.fi/~hmallat/linux/3dfx.html
don't seem to be very active since more than a year. So I'm trying my luck
here. :-)

m.





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 07 2001 - 21:00:29 EST