Home
last modified time | relevance | path

Searched refs:visinfo (Results 1 – 19 of 19) sorted by relevance

/external/libepoxy/test/
Dglx_common.c45 XVisualInfo *visinfo; in get_glx_visual() local
56 visinfo = glXChooseVisual(dpy, screen, attrib); in get_glx_visual()
57 if (visinfo == NULL) { in get_glx_visual()
62 return visinfo; in get_glx_visual()
66 get_glx_window(Display *dpy, XVisualInfo *visinfo, bool map) in get_glx_window() argument
77 visinfo->visual, AllocNone); in get_glx_window()
83 0, visinfo->depth, InputOutput, in get_glx_window()
84 visinfo->visual, mask, &window_attr); in get_glx_window()
93 XVisualInfo *visinfo = get_glx_visual(dpy); in make_glx_context_current_or_skip() local
94 Window win = get_glx_window(dpy, visinfo, false); in make_glx_context_current_or_skip()
[all …]
Dglx_public_api_core.c144 XVisualInfo *visinfo; in main() local
164 visinfo = get_glx_visual(dpy); in main()
165 win = get_glx_window(dpy, visinfo, false); in main()
166 config = get_fbconfig_for_visinfo(dpy, visinfo); in main()
Dglx_common.h33 get_fbconfig_for_visinfo(Display *dpy, XVisualInfo *visinfo);
39 get_glx_window(Display *dpy, XVisualInfo *visinfo, bool map);
/external/mesa3d/src/gallium/targets/graw-xlib/
Dgraw_xlib.c57 XVisualInfo templat, *visinfo = NULL; in graw_create_window_and_screen() local
83 visinfo = XGetVisualInfo(graw.display, mask, &templat, &n); in graw_create_window_and_screen()
84 if (!visinfo) { in graw_create_window_and_screen()
90 if (visinfo->red_mask == 0xff0000 && in graw_create_window_and_screen()
91 visinfo->green_mask == 0xff00 && in graw_create_window_and_screen()
92 visinfo->blue_mask == 0xff) { in graw_create_window_and_screen()
96 else if (visinfo->red_mask == 0xff && in graw_create_window_and_screen()
97 visinfo->green_mask == 0xff00 && in graw_create_window_and_screen()
98 visinfo->blue_mask == 0xff0000) { in graw_create_window_and_screen()
109 attr.colormap = XCreateColormap( graw.display, root, visinfo->visual, AllocNone); in graw_create_window_and_screen()
[all …]
/external/mesa3d/src/gallium/frontends/glx/xlib/
Dxm_api.c302 XVisualInfo * visinfo = xmv->visinfo; in bits_per_pixel() local
306 img = XCreateImage( dpy, visinfo->visual, visinfo->depth, in bits_per_pixel()
539 b->ws.visual = vis->visinfo->visual; in create_xmesa_buffer()
540 b->ws.depth = vis->visinfo->depth; in create_xmesa_buffer()
679 printf("X/Mesa depth = %d\n", v->visinfo->depth); in initialize_visual_and_buffer()
746 XVisualInfo * visinfo, in XMesaCreateVisual() argument
792 v->visinfo = malloc(sizeof(*visinfo)); in XMesaCreateVisual()
793 if (!v->visinfo) { in XMesaCreateVisual()
797 memcpy(v->visinfo, visinfo, sizeof(*visinfo)); in XMesaCreateVisual()
801 v->mesa_visual.redMask = visinfo->red_mask; in XMesaCreateVisual()
[all …]
Dglx_api.c250 if ((!comparePointers && v->visinfo->visualid == vinfo->visualid) in save_glx_visual()
331 create_glx_visual( Display *dpy, XVisualInfo *visinfo ) in create_glx_visual() argument
337 if (is_usable_visual( visinfo )) { in create_glx_visual()
341 return save_glx_visual( dpy, visinfo, in create_glx_visual()
376 && VisualTable[i]->visinfo->visualid == vinfo->visualid) { in find_glx_visual()
1107 memcpy(xmvis->vishandle, xmvis->visinfo, sizeof(XVisualInfo)); in glXChooseVisual()
1155 glXCreateContext( Display *dpy, XVisualInfo *visinfo, in glXCreateContext() argument
1160 xmvis = find_glx_visual( dpy, visinfo ); in glXCreateContext()
1163 xmvis = create_glx_visual( dpy, visinfo ); in glXCreateContext()
1307 glXCreateGLXPixmap( Display *dpy, XVisualInfo *visinfo, Pixmap pixmap ) in glXCreateGLXPixmap() argument
[all …]
Dxm_api.h113 XVisualInfo * visinfo,
291 XVisualInfo * visinfo; /* X's visual info (pointer to private copy) */ member
/external/mesa3d/src/mesa/drivers/x11/
Dfakeglx.c303 if (v->visinfo->visualid == vinfo->visualid) { in save_glx_visual()
379 create_glx_visual( Display *dpy, XVisualInfo *visinfo ) in create_glx_visual() argument
386 vislevel = level_of_visual( dpy, visinfo ); in create_glx_visual()
391 else if (is_usable_visual( visinfo )) { in create_glx_visual()
395 return save_glx_visual( dpy, visinfo, in create_glx_visual()
428 && VisualTable[i]->visinfo->visualid == vinfo->visualid) { in find_glx_visual()
447 XVisualInfo *vinfo = glxvis->visinfo; in transparent_pixel()
1236 XVisualInfo* visinfo = malloc(sizeof(XVisualInfo)); in Fake_glXChooseVisual() local
1237 if (visinfo) { in Fake_glXChooseVisual()
1238 memcpy(visinfo, xmvis->visinfo, sizeof(XVisualInfo)); in Fake_glXChooseVisual()
[all …]
Dxm_api.c171 XMesaVisualInfo visinfo = xmv->visinfo; in bits_per_pixel() local
175 img = XCreateImage( dpy, visinfo->visual, visinfo->depth, in bits_per_pixel()
742 XMesaVisualInfo visinfo, in XMesaCreateVisual() argument
786 v->visinfo = malloc(sizeof(*visinfo)); in XMesaCreateVisual()
787 if(!v->visinfo) { in XMesaCreateVisual()
791 memcpy(v->visinfo, visinfo, sizeof(*visinfo)); in XMesaCreateVisual()
808 v->mesa_visual.redMask = visinfo->red_mask; in XMesaCreateVisual()
809 v->mesa_visual.greenMask = visinfo->green_mask; in XMesaCreateVisual()
810 v->mesa_visual.blueMask = visinfo->blue_mask; in XMesaCreateVisual()
811 v->visualID = visinfo->visualid; in XMesaCreateVisual()
[all …]
Dglxapi.h65 …GLXContext (*CreateContext)(Display *dpy, XVisualInfo *visinfo, GLXContext shareList, Bool direct);
66 GLXPixmap (*CreateGLXPixmap)(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap);
69 int (*GetConfig)(Display *dpy, XVisualInfo *visinfo, int attrib, int *value);
177 …GLXPixmap (*CreateGLXPixmapMESA)(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap, Colormap cmap);
Dxmesa_x.h77 #define GET_COLORMAP_SIZE(__v) __v->visinfo->colormap_size
81 #define GET_VISUAL_DEPTH(__v) __v->visinfo->depth
Dxm_buffer.c82 b->xm_visual->visinfo->visual, in alloc_back_shm_ximage()
83 b->xm_visual->visinfo->depth, in alloc_back_shm_ximage()
198 b->xm_visual->visinfo->visual, in alloc_back_buffer()
478 xrb->Parent->xm_visual->visinfo->visual, in xmesa_MapRenderbuffer()
479 xrb->Parent->xm_visual->visinfo->depth, in xmesa_MapRenderbuffer()
Dglxapi.c173 glXCreateContext(Display *dpy, XVisualInfo *visinfo, GLXContext shareList, Bool direct) in glXCreateContext() argument
179 return t->CreateContext(dpy, visinfo, shareList, direct); in glXCreateContext()
184 glXCreateGLXPixmap(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap) in glXCreateGLXPixmap() argument
190 return t->CreateGLXPixmap(dpy, visinfo, pixmap); in glXCreateGLXPixmap()
217 glXGetConfig(Display *dpy, XVisualInfo *visinfo, int attrib, int *value) in glXGetConfig() argument
223 return t->GetConfig(dpy, visinfo, attrib, value); in glXGetConfig()
954 glXCreateGLXPixmapMESA(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap, Colormap cmap) in glXCreateGLXPixmapMESA() argument
960 return t->CreateGLXPixmapMESA(dpy, visinfo, pixmap, cmap); in glXCreateGLXPixmapMESA()
Dxmesa.h120 XMesaVisualInfo visinfo,
DxmesaP.h80 XMesaVisualInfo visinfo; /* X's visual info (pointer to private copy) */ member
/external/mesa3d/src/glx/apple/
Dglx_empty.c225 glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo)
228 (void) visinfo;
/external/mesa3d/src/glx/
Dglx_pbuffer.c964 XVisualInfo *visinfo; in glXCreateWindow() local
970 visinfo = glXGetVisualFromFBConfig(dpy, config); in glXCreateWindow()
972 if (NULL == visinfo) { in glXCreateWindow()
977 if (visinfo->visualid != XVisualIDFromVisual(xwattr.visual)) { in glXCreateWindow()
982 free(visinfo); in glXCreateWindow()
Ddrisw_glx.c681 XVisualInfo *visinfo, template; in driswCreateDrawable() local
685 visinfo = XGetVisualInfo(dpy, VisualIDMask | VisualScreenMask, in driswCreateDrawable()
688 if (visinfo && matches) { in driswCreateDrawable()
689 pdp->xDepth = visinfo->depth; in driswCreateDrawable()
690 XFree(visinfo); in driswCreateDrawable()
Dg_glxglvnddispatchfuncs.c612 XVisualInfo *visinfo, in dispatch_CreateGLXPixmapMESA() argument
619 dd = GetDispatchFromVisual(dpy, visinfo); in dispatch_CreateGLXPixmapMESA()
627 ret = pCreateGLXPixmapMESA(dpy, visinfo, pixmap, cmap); in dispatch_CreateGLXPixmapMESA()