Kendall Bennett writes: > Hi Guys, > > We just noticed a strange problem in our driver such that when we do VT > switching, when switching back to X11 the X server is calling the palette > programming functions for modes > 8bpp. Any idea why this is? It was > causing the gamma ramp to get all screwed up for 16bpp modes on some > cards, so for now we simply ignore the palette calls on > 8bpp modes to > fix this. > > I was thinking it could be related to gamma ramp programming, but I am > told that this only happens during VT switching. The palette functions > never get called during regular mode sets. > > Also what are the functions to hook out gamma ramp programming in the > drivers? >
Hi Kendall, These palette functions are called to set up the gamma ramp or the palette for DirectColor modes. You can use xgamma to set up the gamma ramp. If this should happen is controlled by the flag: CMAP_PALETTED_TRUECOLOR passed to xf86HandleColormaps(). When VT switching to X the palette should get restored to the values it had before leaving. However the values are not read from the registers on leaving. How did you set your gamma ramp? Egbert. _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
