Lines Matching refs:dpy

164 save_glx_visual( Display *dpy, XVisualInfo *vinfo,
215 if (v->display == dpy
239 xmvis = XMesaCreateVisual( dpy, vinfo, rgbFlag, alphaFlag, dbFlag,
313 create_glx_visual( Display *dpy, XVisualInfo *visinfo )
323 return save_glx_visual( dpy, visinfo,
350 find_glx_visual( Display *dpy, XVisualInfo *vinfo )
356 if (VisualTable[i]->display==dpy
364 if (VisualTable[i]->display==dpy && VisualTable[i]->vishandle==vinfo) {
377 get_visual( Display *dpy, int scr, unsigned int depth, int xclass )
390 default_depth = DefaultDepth(dpy,scr);
391 default_class = DefaultVisual(dpy,scr)->CLASS;
395 temp.visualid = DefaultVisual(dpy,scr)->visualid;
399 vis = XGetVisualInfo( dpy, mask, &temp, &n );
424 * Input: dpy - the display
430 get_env_visual(Display *dpy, int scr, const char *varname)
453 vis = get_visual( dpy, scr, depth, xclass );
469 * Input: dpy,
476 choose_x_visual( Display *dpy, int screen, int min_depth,
484 vis = get_env_visual( dpy, screen, "MESA_RGB_VISUAL" );
505 vis = get_visual( dpy, screen, 8, PseudoColor );
510 vis = get_visual( dpy, screen, depth, visclass );
522 vis = get_visual( dpy, screen, 8, PseudoColor );
527 vis = get_visual( dpy, screen, depth, visclass );
549 vis = get_visual( dpy, screen, depth, visclass );
558 vis = get_visual( dpy, screen, depth, visclass );
582 destroy_visuals_on_display(Display *dpy)
586 if (VisualTable[i]->display == dpy) {
602 close_display_callback(Display *dpy, XExtCodes *codes)
604 xmesa_destroy_buffers_on_display(dpy);
605 destroy_visuals_on_display(dpy);
615 lookup_extension(Display *dpy, const char *extName)
618 for (ext = dpy->ext_procs; ext; ext = ext->next) {
632 register_with_display(Display *dpy)
637 ext = lookup_extension(dpy, extName);
639 XExtCodes *c = XAddExtension(dpy);
640 ext = dpy->ext_procs; /* new extension is at head of list */
661 choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
684 xmesa_init( dpy );
952 vis = XGetVisualInfo(dpy, VisualIDMask | VisualScreenMask, &temp, &n);
967 vis = choose_x_visual( dpy, screen, min_rgb, visual_type );
1010 xmvis = save_glx_visual( dpy, vis, rgb_flag, alpha_flag, double_flag,
1021 glXChooseVisual( Display *dpy, int screen, int *list )
1026 register_with_display(dpy);
1028 xmvis = choose_visual(dpy, screen, list, GL_FALSE);
1046 create_context(Display *dpy, XMesaVisual xmvis,
1053 if (!dpy || !xmvis)
1073 glxCtx->currentDpy = dpy;
1081 glXCreateContext( Display *dpy, XVisualInfo *visinfo,
1086 xmvis = find_glx_visual( dpy, visinfo );
1089 xmvis = create_glx_visual( dpy, visinfo );
1096 return create_context(dpy, xmvis,
1113 glXMakeContextCurrent( Display *dpy, GLXDrawable draw,
1134 drawBuffer = XMesaFindBuffer( dpy, draw );
1151 readBuffer = XMesaFindBuffer( dpy, read );
1178 ctx->currentDpy = dpy;
1209 glXMakeCurrent( Display *dpy, GLXDrawable drawable, GLXContext ctx )
1211 return glXMakeContextCurrent( dpy, drawable, drawable, ctx );
1262 glXCreateGLXPixmap( Display *dpy, XVisualInfo *visinfo, Pixmap pixmap )
1267 v = find_glx_visual( dpy, visinfo );
1269 v = create_glx_visual( dpy, visinfo );
1287 glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visinfo,
1293 v = find_glx_visual( dpy, visinfo );
1295 v = create_glx_visual( dpy, visinfo );
1311 glXDestroyGLXPixmap( Display *dpy, GLXPixmap pixmap )
1313 XMesaBuffer b = XMesaFindBuffer(dpy, pixmap);
1324 glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
1329 (void) dpy;
1338 glXQueryExtension( Display *dpy, int *errorBase, int *eventBase )
1342 if (!XQueryExtension(dpy, GLX_EXTENSION_NAME, &op, &ev, &err))
1353 glXDestroyContext( Display *dpy, GLXContext ctx )
1356 (void) dpy;
1369 glXIsDirect( Display *dpy, GLXContext ctx )
1379 glXSwapBuffers( Display *dpy, GLXDrawable drawable )
1381 XMesaBuffer buffer = XMesaFindBuffer( dpy, drawable );
1406 glXCopySubBufferMESA(Display *dpy, GLXDrawable drawable,
1409 XMesaBuffer buffer = XMesaFindBuffer( dpy, drawable );
1420 glXQueryVersion( Display *dpy, int *maj, int *min )
1422 (void) dpy;
1637 glXGetConfig( Display *dpy, XVisualInfo *visinfo,
1642 if (!dpy || !visinfo)
1645 xmvis = find_glx_visual( dpy, visinfo );
1648 xmvis = create_glx_visual( dpy, visinfo );
1693 glXQueryExtensionsString( Display *dpy, int screen )
1695 (void) dpy;
1704 glXQueryServerString( Display *dpy, int screen, int name )
1710 (void) dpy;
1729 glXGetClientString( Display *dpy, int name )
1735 (void) dpy;
1757 glXGetFBConfigAttrib(Display *dpy, GLXFBConfig config,
1761 (void) dpy;
1764 if (!dpy || !config || !value)
1772 glXGetFBConfigs( Display *dpy, int screen, int *nelements )
1780 visuals = XGetVisualInfo(dpy, visMask, &visTemplate, nelements);
1789 results[i] = create_glx_visual(dpy, visuals + i);
1802 glXChooseFBConfig(Display *dpy, int screen,
1808 register_with_display(dpy);
1812 return glXGetFBConfigs(dpy, screen, nitems);
1815 xmvis = choose_visual(dpy, screen, attribList, GL_TRUE);
1834 glXGetVisualFromFBConfig( Display *dpy, GLXFBConfig config )
1836 if (dpy && config) {
1856 glXCreateWindow(Display *dpy, GLXFBConfig config, Window win,
1868 (void) dpy;
1876 glXDestroyWindow( Display *dpy, GLXWindow window )
1878 XMesaBuffer b = XMesaFindBuffer(dpy, (Drawable) window);
1887 glXCreatePixmap(Display *dpy, GLXFBConfig config, Pixmap pixmap,
1896 if (!dpy || !config || !pixmap)
1997 glXDestroyPixmap( Display *dpy, GLXPixmap pixmap )
1999 XMesaBuffer b = XMesaFindBuffer(dpy, (Drawable)pixmap);
2007 glXCreatePbuffer(Display *dpy, GLXFBConfig config, const int *attribList)
2015 (void) dpy;
2069 glXDestroyPbuffer( Display *dpy, GLXPbuffer pbuf )
2071 XMesaBuffer b = XMesaFindBuffer(dpy, pbuf);
2079 glXQueryDrawable(Display *dpy, GLXDrawable draw, int attribute,
2083 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, draw);
2088 xmesa_get_window_size(dpy, xmbuf, &width, &height);
2125 glXCreateNewContext( Display *dpy, GLXFBConfig config,
2130 if (!dpy || !config ||
2134 return create_context(dpy, xmvis,
2142 glXQueryContext( Display *dpy, GLXContext ctx, int attribute, int *value )
2147 (void) dpy;
2171 glXSelectEvent( Display *dpy, GLXDrawable drawable, unsigned long mask )
2173 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, drawable);
2180 glXGetSelectedEvent(Display *dpy, GLXDrawable drawable, unsigned long *mask)
2182 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, drawable);
2232 glXMakeCurrentReadSGI(Display *dpy, GLXDrawable draw, GLXDrawable read,
2235 return glXMakeContextCurrent( dpy, draw, read, ctx );
2251 glXCreateGLXVideoSourceSGIX(Display *dpy, int screen, VLServer server,
2254 (void) dpy;
2264 glXDestroyGLXVideoSourceSGIX(Display *dpy, GLXVideoSourceSGIX src)
2266 (void) dpy;
2276 glXFreeContextEXT(Display *dpy, GLXContext context)
2278 (void) dpy;
2290 glXImportContextEXT(Display *dpy, GLXContextID contextID)
2292 (void) dpy;
2298 glXQueryContextInfoEXT(Display *dpy, GLXContext context, int attribute,
2301 (void) dpy;
2313 glXGetFBConfigAttribSGIX(Display *dpy, GLXFBConfigSGIX config,
2316 return glXGetFBConfigAttrib(dpy, config, attribute, value);
2320 glXChooseFBConfigSGIX(Display *dpy, int screen, int *attrib_list,
2323 return (GLXFBConfig *) glXChooseFBConfig(dpy, screen,
2329 glXCreateGLXPixmapWithConfigSGIX(Display *dpy, GLXFBConfigSGIX config,
2339 glXCreateContextWithConfigSGIX(Display *dpy, GLXFBConfigSGIX config,
2345 if (!dpy || !config ||
2349 return create_context(dpy, xmvis,
2357 glXGetVisualFromFBConfigSGIX(Display *dpy, GLXFBConfigSGIX config)
2359 return glXGetVisualFromFBConfig(dpy, config);
2364 glXGetFBConfigFromVisualSGIX(Display *dpy, XVisualInfo *vis)
2366 XMesaVisual xmvis = find_glx_visual(dpy, vis);
2369 xmvis = create_glx_visual(dpy, vis);
2380 glXCreateGLXPbufferSGIX(Display *dpy, GLXFBConfigSGIX config,
2389 (void) dpy;
2419 glXDestroyGLXPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuf)
2421 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, pbuf);
2429 glXQueryGLXPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuf, int attribute,
2432 const XMesaBuffer xmbuf = XMesaFindBuffer(dpy, pbuf);
2463 glXSelectEventSGIX(Display *dpy, GLXDrawable drawable, unsigned long mask)
2465 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, drawable);
2474 glXGetSelectedEventSGIX(Display *dpy, GLXDrawable drawable,
2477 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, drawable);
2491 glXCushionSGI(Display *dpy, Window win, float cushion)
2493 (void) dpy;
2503 glXBindChannelToWindowSGIX(Display *dpy, int screen, int channel,
2506 (void) dpy;
2514 glXChannelRectSGIX(Display *dpy, int screen, int channel,
2517 (void) dpy;
2528 glXQueryChannelRectSGIX(Display *dpy, int screen, int channel,
2531 (void) dpy;
2542 glXQueryChannelDeltasSGIX(Display *dpy, int screen, int channel,
2545 (void) dpy;
2556 glXChannelRectSyncSGIX(Display *dpy, int screen, int channel, GLenum synctype)
2558 (void) dpy;
2571 glXAssociateDMPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuffer,
2574 (void) dpy;
2586 glXJoinSwapGroupSGIX(Display *dpy, GLXDrawable drawable, GLXDrawable member)
2588 (void) dpy;
2598 glXBindSwapBarrierSGIX(Display *dpy, GLXDrawable drawable, int barrier)
2600 (void) dpy;
2606 glXQueryMaxSwapBarriersSGIX(Display *dpy, int screen, int *max)
2608 (void) dpy;
2619 glXGetTransparentIndexSUN(Display *dpy, Window overlay, Window underlay,
2622 (void) dpy;
2638 glXReleaseBuffersMESA( Display *dpy, GLXDrawable d )
2640 XMesaBuffer b = XMesaFindBuffer(dpy, d);
2651 glXBindTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer,
2654 XMesaBuffer b = XMesaFindBuffer(dpy, drawable);
2656 XMesaBindTexImage(dpy, b, buffer, attrib_list);
2660 glXReleaseTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer)
2662 XMesaBuffer b = XMesaFindBuffer(dpy, drawable);
2664 XMesaReleaseTexImage(dpy, b, buffer);
2672 glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config,
2755 return create_context(dpy, xmvis,