Ian Romanick wrote:
2. Mesa's X11 driver, which is the basis of libGLcore, depends on information from an X VisualInfo. Most of the uses can be eliminated trivially, but the depth / nplanes and ColomapEntries / colormap_size fields are another story. The problem here is that the __driCreateNewScreen doesn't, and can't, provide VIsualInfo structures to the driver.
It looks like there may be an easy sollution here. From a comment in programs/Xserver/include/scrnintstr.h, it looks like ColormapEntries should always be equal to (1U << nplanes). I seem to recall that we "decided" some time ago that nplanes was, for TrueColor and DirectColor visuals, equal to (redBits + greenBits + blueBits). If those assumptions hold, the battle is won. All of that information can be derrived from the __GLcontextModes structures that are passed in to __driCreateNewScreen.
The $1,000,000 question is, how do we verify that those assumptions are or are not correct?
The patch looks good, Ian.
There were a couple minor compile-time problems when building for server-side. I've fixed those, and I'll commit that version tomorrow.
As Keith has mentioned a few times over the years, another approach to unifying libGLcore.a and the *_dri.so drivers would be replace the XMesa stuff with a new DRI pseudo-hardware driver that used software fallbacks for everything. That is, completely remove the XMesa stuff from the picture.
That sounds like a lot of work to just work-around a couple fields in a structure we can't use. :( Unless the fb versions Jon mentioned could be a dead-simple drop-in replacement, I think I'd like to avoid that route. There's *plenty* of other work to be done as it is.
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel