895055c836
The previous detection was based on color depth only to determine the texture format to use in GLX. If that worked fine at depths 24 (RGB8) and 32 (ARGB8), that would fail at depth 30 (BGR10) and fallback to software instead of using the TFP extension. This commit uses an efficient population count implementation to compare the number of 1-bits in color masks against the color depth requested by the X client. If they are not equal this means that an alpha channel has been requested. Reviewed-by: Robert Bragg <robert@linux.intel.com> |
||
---|---|---|
.. | ||
cogl-texture-pixmap-x11-private.h | ||
cogl-texture-pixmap-x11.c | ||
cogl-texture-pixmap-x11.h | ||
cogl-winsys-egl-feature-functions.h | ||
cogl-winsys-egl-private.h | ||
cogl-winsys-egl.c | ||
cogl-winsys-glx-feature-functions.h | ||
cogl-winsys-glx.c | ||
cogl-winsys-private.h | ||
cogl-winsys-sdl.c | ||
cogl-winsys-stub-private.h | ||
cogl-winsys-stub.c | ||
cogl-winsys-wgl-feature-functions.h | ||
cogl-winsys-wgl.c | ||
cogl-winsys.c |