search for: cmap_paletted_truecolor

Displaying 4 results from an estimated 4 matches for "cmap_paletted_truecolor".

2018 Mar 01
1
[PATCH] Fix colormap handling at screen depth 30.
...062eb..4fcd4c1 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -1568,8 +1568,8 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL) * Must follow initialization of the default colormap */ if (xf86_config->num_crtc && - !xf86HandleColormaps(pScreen, 256, 8, NVLoadPalette, - NULL, CMAP_PALETTED_TRUECOLOR)) + !xf86HandleColormaps(pScreen, 1 << pScrn->rgbBits, pScrn->rgbBits, + NVLoadPalette, NULL, CMAP_PALETTED_TRUECOLOR)) return FALSE; /* Report any unused options (only for the first generation) */ -- 2.7.4
2018 Jun 12
0
[PATCH] Fix colormap handling at screen depth 30. (v2)
...f the default colormap. + * X-Server < 1.20 mishandles > 256 slots / > 8 bpc color maps, so skip + * color map setup on old servers at > 8 bpc. Gamma luts still work. */ - if (xf86_config->num_crtc && - !xf86HandleColormaps(pScreen, 256, 8, NVLoadPalette, - NULL, CMAP_PALETTED_TRUECOLOR)) + if (xf86_config->num_crtc && (pScrn->rgbBits <= 8 || + XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,20,0,0,0)) && + !xf86HandleColormaps(pScreen, 1 << pScrn->rgbBits, pScrn->rgbBits, + NVLoadPalette, NULL, CMAP_PALETTED_TRUECOLOR)) return...
2018 Mar 02
2
Nouveau Digest, Vol 131, Issue 3
...it(SCREEN_INIT_ARGS_DECL) >> * Must follow initialization of the default colormap >> */ >> if (xf86_config->num_crtc && >> - !xf86HandleColormaps(pScreen, 256, 8, NVLoadPalette, >> - NULL, CMAP_PALETTED_TRUECOLOR)) >> + !xf86HandleColormaps(pScreen, 1 << pScrn->rgbBits, pScrn->rgbBits, >> + NVLoadPalette, NULL, CMAP_PALETTED_TRUECOLOR)) >> return FALSE; >> >> /* Report any unused options (only for th...
2013 Jul 22
0
[RFC PATCH] Support running nested in a Mir compositor
...enInit(SCREEN_INIT_ARGS_DECL) * Initialize colormap layer. * Must follow initialization of the default colormap */ - if (xf86_config->num_crtc && + if (!xorgMir && xf86_config->num_crtc && !xf86HandleColormaps(pScreen, 256, 8, NVLoadPalette, NULL, CMAP_PALETTED_TRUECOLOR)) - return FALSE; /* Report any unused options (only for the first generation) */ if (serverGeneration == 1) xf86ShowUnusedOptions(pScrn->scrnIndex, pScrn->options); - if (xf86_config->num_crtc) + if (!xorgMir && xf86_config->num_crtc) drmmode_screen_init(pScreen)...