Home | History | Annotate | Download | only in x11

Lines Matching refs:dpy

171  * \param dpy  the display
177 GetOverlayInfo(Display *dpy, int screen, int *numOverlays)
190 overlayVisualsAtom = XInternAtom(dpy,"SERVER_OVERLAY_VISUALS", True);
195 status = XGetWindowProperty(dpy, RootWindow(dpy, screen),
217 * Input: dpy - the X display
225 level_of_visual( Display *dpy, XVisualInfo *vinfo )
230 overlay_info = GetOverlayInfo(dpy, vinfo->screen, &numOverlaysPerScreen);
265 save_glx_visual( Display *dpy, XVisualInfo *vinfo,
313 if (v->display == dpy
336 xmvis = XMesaCreateVisual( dpy, vinfo, GL_TRUE, alphaFlag, dbFlag,
410 create_glx_visual( Display *dpy, XVisualInfo *visinfo )
417 vislevel = level_of_visual( dpy, visinfo );
426 return save_glx_visual( dpy, visinfo,
452 find_glx_visual( Display *dpy, XVisualInfo *vinfo )
458 if (VisualTable[i]->display==dpy
466 if (VisualTable[i]->display==dpy && VisualTable[i]->vishandle==vinfo) {
484 Display *dpy = glxvis->display;
489 overlay_info = GetOverlayInfo(dpy, vinfo->screen, &numOverlaysPerScreen);
522 get_visual( Display *dpy, int scr, unsigned int depth, int xclass )
535 default_depth = DefaultDepth(dpy,scr);
536 default_class = DefaultVisual(dpy,scr)->CLASS;
540 temp.visualid = DefaultVisual(dpy,scr)->visualid;
544 vis = XGetVisualInfo( dpy, mask, &temp, &n );
570 * Input: dpy - the display
576 get_env_visual(Display *dpy, int scr, const char *varname)
597 vis = get_visual( dpy, scr, depth, xclass );
613 * Input: dpy, screen - X display and screen number
619 choose_x_visual(Display *dpy, int screen, int min_depth, int preferred_class)
626 vis = get_env_visual( dpy, screen, "MESA_RGB_VISUAL" );
642 vis = get_visual( dpy, screen, depth, visclass );
651 vis = get_visual( dpy, screen, depth, visclass );
673 vis = get_visual( dpy, screen, depth, visclass );
682 vis = get_visual( dpy, screen, depth, visclass );
698 * Input: dpy, screen - X display and screen number
709 choose_x_overlay_visual( Display *dpy, int scr,
731 overlay_info = GetOverlayInfo(dpy, scr, &numOverlaysPerScreen);
764 vislist = XGetVisualInfo( dpy, VisualIDMask | VisualScreenMask,
811 destroy_visuals_on_display(Display *dpy)
815 if (VisualTable[i]->display == dpy) {
831 close_display_callback(Display *dpy, XExtCodes *codes)
833 destroy_visuals_on_display(dpy);
834 xmesa_destroy_buffers_on_display(dpy);
844 lookup_extension(Display *dpy, const char *extName)
847 for (ext = dpy->ext_procs; ext; ext = ext->next) {
861 register_with_display(Display *dpy)
866 ext = lookup_extension(dpy, extName);
868 XExtCodes *c = XAddExtension(dpy);
869 ext = dpy->ext_procs; /* new extension is at head of list */
890 choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
1185 vis = XGetVisualInfo(dpy, VisualIDMask | VisualScreenMask, &temp, &n);
1205 vis = choose_x_visual(dpy, screen, min_rgb, visual_type);
1208 vis = choose_x_overlay_visual(dpy, screen, level,
1242 xmvis = save_glx_visual( dpy, vis, alpha_flag, double_flag,
1253 Fake_glXChooseVisual( Display *dpy, int screen, int *list )
1258 register_with_display(dpy);
1260 xmvis = choose_visual(dpy, screen, list, GL_FALSE);
1282 init_glx_context(struct fake_glx_context *glxCtx, Display *dpy)
1289 glxCtx->glxContext.currentDpy = dpy;
1298 Fake_glXCreateContext( Display *dpy, XVisualInfo *visinfo,
1305 if (!dpy || !visinfo)
1314 XMesaGarbageCollect(dpy);
1317 xmvis = find_glx_visual( dpy, visinfo );
1320 xmvis = create_glx_visual( dpy, visinfo );
1335 init_glx_context(glxCtx, dpy);
1351 Fake_glXMakeContextCurrent( Display *dpy, GLXDrawable draw,
1366 drawBuffer = XMesaFindBuffer( dpy, draw );
1383 readBuffer = XMesaFindBuffer( dpy, read );
1402 ((__GLXcontext *) ctx)->currentDpy = dpy;
1431 Fake_glXMakeCurrent( Display *dpy, GLXDrawable drawable, GLXContext ctx )
1433 return Fake_glXMakeContextCurrent( dpy, drawable, drawable, ctx );
1438 Fake_glXCreateGLXPixmap( Display *dpy, XVisualInfo *visinfo, Pixmap pixmap )
1443 v = find_glx_visual( dpy, visinfo );
1445 v = create_glx_visual( dpy, visinfo );
1463 Fake_glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visinfo,
1469 v = find_glx_visual( dpy, visinfo );
1471 v = create_glx_visual( dpy, visinfo );
1487 Fake_glXDestroyGLXPixmap( Display *dpy, GLXPixmap pixmap )
1489 XMesaBuffer b = XMesaFindBuffer(dpy, pixmap);
1500 Fake_glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
1507 (void) dpy;
1516 Fake_glXQueryExtension( Display *dpy, int *errorBase, int *eventBase )
1520 if (!XQueryExtension(dpy, GLX_EXTENSION_NAME, &op, &ev, &err))
1530 extern void _kw_ungrab_all( Display *dpy );
1531 void _kw_ungrab_all( Display *dpy )
1533 XUngrabPointer( dpy, CurrentTime );
1534 XUngrabKeyboard( dpy, CurrentTime );
1539 Fake_glXDestroyContext( Display *dpy, GLXContext ctx )
1542 (void) dpy;
1549 XMesaGarbageCollect(dpy);
1555 Fake_glXIsDirect( Display *dpy, GLXContext ctx )
1558 (void) dpy;
1565 Fake_glXSwapBuffers( Display *dpy, GLXDrawable drawable )
1567 XMesaBuffer buffer = XMesaFindBuffer( dpy, drawable );
1583 Fake_glXCopySubBufferMESA( Display *dpy, GLXDrawable drawable,
1586 XMesaBuffer buffer = XMesaFindBuffer( dpy, drawable );
1597 Fake_glXQueryVersion( Display *dpy, int *maj, int *min )
1599 (void) dpy;
1835 Fake_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
1840 if (!dpy || !visinfo)
1843 xmvis = find_glx_visual( dpy, visinfo );
1846 xmvis = create_glx_visual( dpy, visinfo );
1891 Fake_glXQueryExtensionsString( Display *dpy, int screen )
1893 (void) dpy;
1902 Fake_glXQueryServerString( Display *dpy, int screen, int name )
1908 (void) dpy;
1927 Fake_glXGetClientString( Display *dpy, int name )
1933 (void) dpy;
1955 Fake_glXGetFBConfigAttrib( Display *dpy, GLXFBConfig config,
1959 (void) dpy;
1962 if (!dpy || !config || !value)
1970 Fake_glXGetFBConfigs( Display *dpy, int screen, int *nelements )
1978 visuals = XGetVisualInfo(dpy, visMask, &visTemplate, nelements);
1987 results[i] = create_glx_visual(dpy, visuals + i);
1996 Fake_glXChooseFBConfig( Display *dpy, int screen,
2002 register_with_display(dpy);
2006 return Fake_glXGetFBConfigs(dpy, screen, nitems);
2009 xmvis = choose_visual(dpy, screen, attribList, GL_TRUE);
2028 Fake_glXGetVisualFromFBConfig( Display *dpy, GLXFBConfig config )
2030 if (dpy && config) {
2050 Fake_glXCreateWindow( Display *dpy, GLXFBConfig config, Window win,
2062 (void) dpy;
2070 Fake_glXDestroyWindow( Display *dpy, GLXWindow window )
2072 XMesaBuffer b = XMesaFindBuffer(dpy, (XMesaDrawable) window);
2081 Fake_glXCreatePixmap( Display *dpy, GLXFBConfig config, Pixmap pixmap,
2090 if (!dpy || !config || !pixmap)
2191 Fake_glXDestroyPixmap( Display *dpy, GLXPixmap pixmap )
2193 XMesaBuffer b = XMesaFindBuffer(dpy, (XMesaDrawable)pixmap);
2201 Fake_glXCreatePbuffer( Display *dpy, GLXFBConfig config,
2210 (void) dpy;
2264 Fake_glXDestroyPbuffer( Display *dpy, GLXPbuffer pbuf )
2266 XMesaBuffer b = XMesaFindBuffer(dpy, pbuf);
2274 Fake_glXQueryDrawable( Display *dpy, GLXDrawable draw, int attribute,
2277 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, draw);
2319 Fake_glXCreateNewContext( Display *dpy, GLXFBConfig config,
2326 if (!dpy || !config ||
2335 XMesaGarbageCollect(dpy);
2344 init_glx_context(glxCtx, dpy);
2351 Fake_glXQueryContext( Display *dpy, GLXContext ctx, int attribute, int *value )
2356 (void) dpy;
2377 Fake_glXSelectEvent( Display *dpy, GLXDrawable drawable, unsigned long mask )
2379 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, drawable);
2386 Fake_glXGetSelectedEvent( Display *dpy, GLXDrawable drawable,
2389 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, drawable);
2439 dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
2441 return Fake_glXMakeContextCurrent( dpy, draw, read, ctx );
2457 Fake_glXCreateGLXVideoSourceSGIX(Display *dpy, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode)
2459 (void) dpy;
2469 Fake_glXDestroyGLXVideoSourceSGIX(Display *dpy, GLXVideoSourceSGIX src)
2471 (void) dpy;
2481 Fake_glXFreeContextEXT(Display *dpy, GLXContext context)
2483 (void) dpy;
2495 Fake_glXImportContextEXT(Display *dpy, GLXContextID contextID)
2497 (void) dpy;
2503 Fake_glXQueryContextInfoEXT(Display *dpy, GLXContext context, int attribute, int *value)
2505 (void) dpy;
2517 Fake_glXGetFBConfigAttribSGIX(Display *dpy, GLXFBConfigSGIX config, int attribute, int *value)
2519 return Fake_glXGetFBConfigAttrib(dpy, config, attribute, value);
2523 Fake_glXChooseFBConfigSGIX(Display *dpy, int screen, int *attrib_list, int *nelements)
2525 return (GLXFBConfig *) Fake_glXChooseFBConfig(dpy, screen, attrib_list, nelements);
2530 Fake_glXCreateGLXPixmapWithConfigSGIX(Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap)
2539 Fake_glXCreateContextWithConfigSGIX(Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct)
2550 XMesaGarbageCollect(dpy);
2559 init_glx_context(glxCtx, dpy);
2566 Fake_glXGetVisualFromFBConfigSGIX(Display *dpy, GLXFBConfigSGIX config)
2568 return Fake_glXGetVisualFromFBConfig(dpy, config);
2573 Fake_glXGetFBConfigFromVisualSGIX(Display *dpy, XVisualInfo *vis)
2575 XMesaVisual xmvis = find_glx_visual(dpy, vis);
2578 xmvis = create_glx_visual(dpy, vis);
2589 Fake_glXCreateGLXPbufferSGIX(Display *dpy, GLXFBConfigSGIX config,
2598 (void) dpy;
2628 Fake_glXDestroyGLXPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuf)
2630 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, pbuf);
2638 Fake_glXQueryGLXPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value)
2640 const XMesaBuffer xmbuf = XMesaFindBuffer(dpy, pbuf);
2671 Fake_glXSelectEventSGIX(Display *dpy, GLXDrawable drawable, unsigned long mask)
2673 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, drawable);
2682 Fake_glXGetSelectedEventSGIX(Display *dpy, GLXDrawable drawable, unsigned long *mask)
2684 XMesaBuffer xmbuf = XMesaFindBuffer(dpy, drawable);
2698 Fake_glXCushionSGI(Display *dpy, Window win, float cushion)
2700 (void) dpy;
2710 Fake_glXBindChannelToWindowSGIX(Display *dpy, int screen, int channel , Window window)
2712 (void) dpy;
2720 Fake_glXChannelRectSGIX(Display *dpy, int screen, int channel, int x, int y, int w, int h)
2722 (void) dpy;
2733 Fake_glXQueryChannelRectSGIX(Display *dpy, int screen, int channel, int *x, int *y, int *w, int *h)
2735 (void) dpy;
2746 Fake_glXQueryChannelDeltasSGIX(Display *dpy, int screen, int channel, int *dx, int *dy, int *dw, int *dh)
2748 (void) dpy;
2759 Fake_glXChannelRectSyncSGIX(Display *dpy, int screen, int channel, GLenum synctype)
2761 (void) dpy;
2774 Fake_glXAssociateDMPbufferSGIX(Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer)
2776 (void) dpy;
2788 Fake_glXJoinSwapGroupSGIX(Display *dpy, GLXDrawable drawable, GLXDrawable member)
2790 (void) dpy;
2800 Fake_glXBindSwapBarrierSGIX(Display *dpy, GLXDrawable drawable, int barrier)
2802 (void) dpy;
2808 Fake_glXQueryMaxSwapBarriersSGIX(Display *dpy, int screen, int *max)
2810 (void) dpy;
2821 Fake_glXGetTransparentIndexSUN(Display *dpy, Window overlay, Window underlay, long *pTransparent)
2823 (void) dpy;
2839 Fake_glXReleaseBuffersMESA( Display *dpy, GLXDrawable d )
2841 XMesaBuffer b = XMesaFindBuffer(dpy, d);
2896 Fake_glXBindTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer,
2899 XMesaBuffer b = XMesaFindBuffer(dpy, drawable);
2901 XMesaBindTexImage(dpy, b, buffer, attrib_list);
2905 Fake_glXReleaseTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer)
2907 XMesaBuffer b = XMesaFindBuffer(dpy, drawable);
2909 XMesaReleaseTexImage(dpy, b, buffer);