Lines Matching refs:depth
159 /* Any depth of TrueColor or DirectColor works in RGB mode */
261 * Given an XVisualInfo and RGB, Double, and Depth buffer flags, save the
406 * for depth buffer size, stencil size, accum size, etc.
423 /* Configure this visual as RGB, double-buffered, depth-buffered. */
522 get_visual( Display *dpy, int scr, unsigned int depth, int xclass )
532 temp.depth = depth;
538 if (depth==default_depth && xclass==default_class) {
550 if (vis && depth > 24 && (xclass==TrueColor || xclass==DirectColor)) {
579 int depth, xclass = -1;
589 sscanf( value, "%s %d", type, &depth );
596 if (xclass>-1 && depth>0) {
597 vis = get_visual( dpy, scr, depth, xclass );
603 _mesa_warning(NULL, "GLX unable to find visual class=%s, depth=%d.",
604 type, depth);
612 * Select an X visual which satisfies the RGBA/CI flag and minimum depth.
614 * min_depth - minimum visual depth
623 int depth;
641 for (depth=0;depth<=32;depth++) {
642 vis = get_visual( dpy, screen, depth, visclass );
650 for (depth=32;depth>=min_depth;depth--) {
651 vis = get_visual( dpy, screen, depth, visclass );
672 for (depth=0;depth<=32;depth++) {
673 vis = get_visual( dpy, screen, depth, visclass );
681 for (depth=32;depth>=min_depth;depth--) {
682 vis = get_visual( dpy, screen, depth, visclass );
704 * min_depth - minimum visual depth
761 /* get XVisualInfo and check the depth */
780 if (deepvis==NULL || vislist->depth > deepest) {
785 deepest = vislist->depth;
794 printf("chose 0x%x: layer=%d depth=%d trans_type=%d trans_value=%d\n",
795 deepvis->visualid, level, deepvis->depth, tt, tv );
1175 * or CI visual of appropriate depth. Other requested attributes such as
1176 * double buffering, depth buffer, etc. will be associated with the X
1189 if (vis->depth <= 8)
1216 * largest depth buffer size, which is 32bits/value. Instead, we
1372 /* Out of memory, or context/drawable depth mismatch */
1389 /* Out of memory, or context/drawable depth mismatch */
1622 *value = xmvis->visinfo->depth;
2835 * Release the depth, stencil, accum buffers attached to a GLXDrawable