[comp.windows.x] CG6 support?

jordan@CS.COLUMBIA.EDU (Jordan Hayes) (06/10/89)

does anyone have a server/ddx/sun/sunCG6C.c ...?

thanks.

/jordan

earle@MAHENDO.JPL.NASA.GOV (Greg Earle) (06/11/89)

In article <8906091842.AA16050@cs.columbia.edu> you write:
>Does anyone have a server/ddx/sun/sunCG6C.c ...?

So far, the best that we can come up with is this: the CG6 (aka the
GX graphics accelerator & frame buffer) will emulate an 8 bit version
of a CG4 (which is the 10 bit frame buffer with monochrome + overlay
plane).  If you copy sunCG4C.c to sunCG6C.c, then edit sunCG6C.c to
remove any and all mentions of the overlay plane, then you *might* be
able to get it to work.  You'll also have to modify sunInit.c, so that
it includes /dev/cgsix0 in the search path for frame buffers.  There're
also some other hacks in sunInit.c that need to be made, which should be
obvious from examining the code.  Be aware, though, that this will only
let you get the server to run - it will *not* be accelerated one iota by
the GX!!  This is analogous to the situation that exists if you have the
older CG2 frmae buffer and a GP/GP+/GP2 graphics accelerator - the GP doesn't
get used and it might as well not exist.  In the case of the GX it is a
frame buffer and graphics accelerator all bundled into one; cobbling up a
sunCG6C.c only gets you to the dumb frame buffer interface.  You lose the
other half.  In order to get GX acceleration, you either have to recode
the entire Sun ddx layer to use Pixrects (and make the X libraries into
shared libraries), or use X11/NeWS (^:  (Note that highly placed sources
have indicated that a Pixrects-based Sun server might not be acceptable
when it comes to the required accuracy for doing certain drawing operations).

Note that I haven't actually *tried* this yet (Jim Fulton are you listening),
hey how am I supposed to get a hold of a GX, I had to sell my soul and my
first unborn child just to get this lousy old beat-up 3/160M that I use ... (^:

	- Greg Earle
	  Sun Microsystems, Inc.
	  JPL on-site Software Support
	  earle@Sun.COM
	  earle@mahendo.JPL.NASA.GOV	(Guest)