Lines Matching refs:pmap

67 #define LOAD_PALETTE(pmap) \  argument
68 ((pmap == GetInstalledmiColormap(pmap->pScreen)) && \
70 xf86ScreenToScrn(pmap->pScreen)->vtSema || pScreenPriv->isDGAmode))
262 CMapAllocateColormapPrivate(ColormapPtr pmap) in CMapAllocateColormapPrivate() argument
265 (CMapScreenPtr) dixLookupPrivate(&pmap->pScreen->devPrivates, in CMapAllocateColormapPrivate()
272 if (CMapColormapUseMax(pmap->pVisual, pScreenPriv)) in CMapAllocateColormapPrivate()
273 numColors = pmap->pVisual->ColormapEntries; in CMapAllocateColormapPrivate()
275 numColors = 1 << pmap->pVisual->nplanes; in CMapAllocateColormapPrivate()
285 dixSetPrivate(&pmap->devPrivates, CMapColormapKey, pColPriv); in CMapAllocateColormapPrivate()
295 pLink->cmap = pmap; in CMapAllocateColormapPrivate()
304 CMapCreateColormap(ColormapPtr pmap) in CMapCreateColormap() argument
306 ScreenPtr pScreen = pmap->pScreen; in CMapCreateColormap()
312 if ((*pScreen->CreateColormap) (pmap)) { in CMapCreateColormap()
313 if (CMapAllocateColormapPrivate(pmap)) in CMapCreateColormap()
358 CMapStoreColors(ColormapPtr pmap, int ndef, xColorItem * pdefs) in CMapStoreColors() argument
360 ScreenPtr pScreen = pmap->pScreen; in CMapStoreColors()
361 VisualPtr pVisual = pmap->pVisual; in CMapStoreColors()
369 (*pScreen->StoreColors) (pmap, ndef, pdefs); in CMapStoreColors()
379 (CMapColormapPtr) dixLookupPrivate(&pmap->devPrivates, in CMapStoreColors()
433 CMapRefreshColors(pmap, num, indices); in CMapStoreColors()
437 CMapInstallColormap(ColormapPtr pmap) in CMapInstallColormap() argument
439 ScreenPtr pScreen = pmap->pScreen; in CMapInstallColormap()
443 if (pmap == GetInstalledmiColormap(pmap->pScreen)) in CMapInstallColormap()
447 (*pScreen->InstallColormap) (pmap); in CMapInstallColormap()
452 if (GetInstalledmiColormap(pmap->pScreen)) in CMapInstallColormap()
453 pmap = GetInstalledmiColormap(pmap->pScreen); in CMapInstallColormap()
456 (pmap->pVisual->class == TrueColor) && in CMapInstallColormap()
457 CMapColormapUseMax(pmap->pVisual, pScreenPriv)) in CMapInstallColormap()
460 if (LOAD_PALETTE(pmap)) in CMapInstallColormap()
461 CMapReinstallMap(pmap); in CMapInstallColormap()
525 CMapReinstallMap(ColormapPtr pmap) in CMapReinstallMap() argument
528 (CMapScreenPtr) dixLookupPrivate(&pmap->pScreen->devPrivates, in CMapReinstallMap()
531 (CMapColormapPtr) dixLookupPrivate(&pmap->devPrivates, CMapColormapKey); in CMapReinstallMap()
532 ScrnInfoPtr pScrn = xf86ScreenToScrn(pmap->pScreen); in CMapReinstallMap()
540 CMapRefreshColors(pmap, cmapPriv->numColors, indices); in CMapReinstallMap()
543 indices, cmapPriv->colors, pmap->pVisual); in CMapReinstallMap()
556 CMapRefreshColors(ColormapPtr pmap, int defs, int *indices) in CMapRefreshColors() argument
559 (CMapScreenPtr) dixLookupPrivate(&pmap->pScreen->devPrivates, in CMapRefreshColors()
562 (CMapColormapPtr) dixLookupPrivate(&pmap->devPrivates, CMapColormapKey); in CMapRefreshColors()
563 VisualPtr pVisual = pmap->pVisual; in CMapRefreshColors()
564 ScrnInfoPtr pScrn = xf86ScreenToScrn(pmap->pScreen); in CMapRefreshColors()
613 entry = (EntryPtr) &pmap->red[index]; in CMapRefreshColors()
637 gamma[pmap->red[index].co.local.red >> shift].red; in CMapRefreshColors()
640 gamma[pmap->green[index].co.local.green >> shift].green; in CMapRefreshColors()
643 gamma[pmap->blue[index].co.local.blue >> shift].blue; in CMapRefreshColors()
651 colors[index].red = gamma[pmap->red[(index >> pVisual-> in CMapRefreshColors()
655 gamma[pmap->green[(index >> pVisual->offsetGreen) & greens].co. in CMapRefreshColors()
658 gamma[pmap->blue[(index >> pVisual->offsetBlue) & blues].co. in CMapRefreshColors()
664 if (LOAD_PALETTE(pmap)) in CMapRefreshColors()
665 (*pScrn->LoadPalette) (pScrn, defs, indices, colors, pmap->pVisual); in CMapRefreshColors()
668 CMapSetOverscan(pmap, defs, indices); in CMapRefreshColors()
688 CMapSetOverscan(ColormapPtr pmap, int defs, int *indices) in CMapSetOverscan() argument
691 (CMapScreenPtr) dixLookupPrivate(&pmap->pScreen->devPrivates, in CMapSetOverscan()
694 (CMapColormapPtr) dixLookupPrivate(&pmap->devPrivates, CMapColormapKey); in CMapSetOverscan()
695 ScrnInfoPtr pScrn = xf86ScreenToScrn(pmap->pScreen); in CMapSetOverscan()
696 VisualPtr pVisual = pmap->pVisual; in CMapSetOverscan()
822 if (LOAD_PALETTE(pmap)) { in CMapSetOverscan()