Home | History | Annotate | Download | only in glx

Lines Matching refs:bit

47 #define EXT_ENABLED(bit,supported) (IS_SET( supported, bit ))
55 unsigned char bit;
255 /* global bit-fields of available extensions and their characteristics */
303 SET_BIT(supported, ext[i].bit);
306 CLR_BIT(supported, ext[i].bit);
319 * Convert the server's extension string to a bit-field.
322 * \param server_support Bit-field of supported extensions.
326 * bit-fields used to track each of these have different sizes. Therefore,
345 /* Set the bit for the extension in the server_support table.
394 const unsigned bit = known_glx_extensions[i].bit;
397 SET_BIT(client_glx_support, bit);
401 SET_BIT(direct_glx_support, bit);
405 SET_BIT(client_glx_only, bit);
409 SET_BIT(direct_glx_only, bit);
414 const unsigned bit = known_gl_extensions[i].bit;
417 SET_BIT(client_gl_support, bit);
421 SET_BIT(client_gl_only, bit);
454 * \param bit Bit index in the direct-support table.
455 * \returns If the extension bit is enabled for the screen, \c GL_TRUE is
456 * returned. If the extension bit is not enabled or if \c psc is
460 __glXExtensionBitIsEnabled(struct glx_screen * psc, unsigned bit)
467 enabled = EXT_ENABLED(bit, psc->direct_support);
479 __glExtensionBitIsEnabled(struct glx_context *gc, unsigned bit)
484 enabled = EXT_ENABLED(bit, gc->gl_extension_bits);
493 * Convert a bit-field to a string of supported extensions.
507 if (EXT_ENABLED(ext[i].bit, supported)) {
517 if (EXT_ENABLED(ext[i].bit, supported)) {
677 SET_BIT(server_support, known_gl_extensions[i].bit);