Subject: Re: 24-bit X for the SPARC 20 SX graphics subsystem with 8MB VSIMM?
To: None <port-sparc@netbsd.org>
From: Craig Dewick <cdewick@lios.apana.org.au>
List: port-sparc
Date: 05/11/2000 02:41:05
fair@clock.org (Erik Fair) writes:

>I have a SPARCstation 20 equipped with an 8MB VSIMM for the SX 
>graphics subsystem. NetBSD recognizes it thusly:

>cgfourteen0 at obio0 slot 2 offset 0x0 level 8: cgthree emulated at 
>1280x1024x8bpp (console)
>cgfourteen0: attached to /dev/fb

>This is actually capable (according to the documentation I have found 
>- mostly the Sun Frame Buffer FAQ) of doing 24-bit deep, but starting 
>Xsun24 only gives me 8-bit windows.

>What needs to be done to support this 24-bits deep?

Even the standard Solaris Xserver comes up using an 8-bit visual by default
on the cg14's. You have to explicity tell the Xserver to use 24 bits per
pixel in the Xservers file.

On my Sparc 20 (running Solaris 8, but the method is the same) my Xservers
file looks like this to start up a two-headed display (I've got two VSIMM's
and one of the aux video boards) using 24 bpp on both heads:

:0 local /usr/openwin/bin/X -dev /dev/fbs/cgfourteen0 left defdepth 24 -dev /dev/fbs/cgfourteen1 right defdepth 24

I don't know if the Xserver binary pathname, or the cg14 device names, are
different in NetBSD, but you can see the idea. It should all be explained on
the Xsun and Xserver man pages.

Regards,

Craig.
--
            Craig Dewick. Send email to "cdewick@lios.apana.org.au"
  Point a web browser at 'http://lios.apana.org.au/~cdewick/sun_shack.html' to
    access my archive of Sun information and links to other places. For info 
          about Sun Ripened Kernels, go to "http://www.sunrk.com.au"