Keith Packard wrote:
Around 9 o'clock on Feb 17, Ian Romanick wrote:

First, a comment in the structure says that nplanes is "log2 (ColormapEntries)." Does that mean that "(1U<< v->nplanes) == v->ColormapEntries" is always true?

no. ColormapEntries on a Direct/True visual is


1 << max(nred,ngreen,nblue).

Okay, then that comment is a little misleading for those cases, but I can live with it.


Second, for TrueColor and DirectColor visuals, is it safe to assume nplanes is the sum of the red, green, and blue bits?

no. There may be extra bits which have no defined meaning in the core protocol which are used by extensions.

The GLX extension usually adds some bits for alpha for it's visuals (and those are the only visuals I care about in this case). However, even in the case where there's 32 bits total (including the alpha channel), nplanes is still only 24. So, let me phrase my original question a different way. Since the GLX extension sets nplanes in its added visuals, can it make whatever assumptions about nplanes it wants? :)



_______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel

Reply via email to