Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/targets/graw-xlib/
Dgraw_xlib.c56 XVisualInfo templat, *visinfo = NULL; in graw_create_window_and_screen() local
82 visinfo = XGetVisualInfo(graw.display, mask, &templat, &n); in graw_create_window_and_screen()
83 if (!visinfo) { in graw_create_window_and_screen()
89 if (visinfo->red_mask == 0xff0000 && in graw_create_window_and_screen()
90 visinfo->green_mask == 0xff00 && in graw_create_window_and_screen()
91 visinfo->blue_mask == 0xff) { in graw_create_window_and_screen()
95 else if (visinfo->red_mask == 0xff && in graw_create_window_and_screen()
96 visinfo->green_mask == 0xff00 && in graw_create_window_and_screen()
97 visinfo->blue_mask == 0xff0000) { in graw_create_window_and_screen()
108 attr.colormap = XCreateColormap( graw.display, root, visinfo->visual, AllocNone); in graw_create_window_and_screen()
[all …]
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dxm_api.c217 XVisualInfo * visinfo = xmv->visinfo; in bits_per_pixel() local
221 img = XCreateImage( dpy, visinfo->visual, visinfo->depth, in bits_per_pixel()
455 b->ws.visual = vis->visinfo->visual; in create_xmesa_buffer()
456 b->ws.depth = vis->visinfo->depth; in create_xmesa_buffer()
599 printf("X/Mesa depth = %d\n", v->visinfo->depth); in initialize_visual_and_buffer()
666 XVisualInfo * visinfo, in XMesaCreateVisual() argument
709 v->visinfo = (XVisualInfo *) MALLOC(sizeof(*visinfo)); in XMesaCreateVisual()
710 if (!v->visinfo) { in XMesaCreateVisual()
714 memcpy(v->visinfo, visinfo, sizeof(*visinfo)); in XMesaCreateVisual()
718 v->mesa_visual.redMask = visinfo->red_mask; in XMesaCreateVisual()
[all …]
Dglx_api.c230 if ((!comparePointers && v->visinfo->visualid == vinfo->visualid) in save_glx_visual()
313 create_glx_visual( Display *dpy, XVisualInfo *visinfo ) in create_glx_visual() argument
319 if (is_usable_visual( visinfo )) { in create_glx_visual()
323 return save_glx_visual( dpy, visinfo, in create_glx_visual()
357 && VisualTable[i]->visinfo->visualid == vinfo->visualid) { in find_glx_visual()
1033 memcpy(xmvis->vishandle, xmvis->visinfo, sizeof(XVisualInfo)); in glXChooseVisual()
1081 glXCreateContext( Display *dpy, XVisualInfo *visinfo, in glXCreateContext() argument
1086 xmvis = find_glx_visual( dpy, visinfo ); in glXCreateContext()
1089 xmvis = create_glx_visual( dpy, visinfo ); in glXCreateContext()
1262 glXCreateGLXPixmap( Display *dpy, XVisualInfo *visinfo, Pixmap pixmap ) in glXCreateGLXPixmap() argument
[all …]
Dxm_api.h111 XVisualInfo * visinfo,
289 XVisualInfo * visinfo; /* X's visual info (pointer to private copy) */ member
/external/mesa3d/src/mesa/drivers/x11/
Dfakeglx.c327 if ((!comparePointers && v->visinfo->visualid == vinfo->visualid) in save_glx_visual()
410 create_glx_visual( Display *dpy, XVisualInfo *visinfo ) in create_glx_visual() argument
417 vislevel = level_of_visual( dpy, visinfo ); in create_glx_visual()
422 else if (is_usable_visual( visinfo )) { in create_glx_visual()
426 return save_glx_visual( dpy, visinfo, in create_glx_visual()
459 && VisualTable[i]->visinfo->visualid == vinfo->visualid) { in find_glx_visual()
485 XVisualInfo *vinfo = glxvis->visinfo; in transparent_pixel()
1268 memcpy(xmvis->vishandle, xmvis->visinfo, sizeof(XVisualInfo)); in Fake_glXChooseVisual()
1298 Fake_glXCreateContext( Display *dpy, XVisualInfo *visinfo, in Fake_glXCreateContext() argument
1305 if (!dpy || !visinfo) in Fake_glXCreateContext()
[all …]
Dxm_api.c168 XMesaVisualInfo visinfo = xmv->visinfo; in bits_per_pixel() local
172 img = XCreateImage( dpy, visinfo->visual, visinfo->depth, in bits_per_pixel()
740 XMesaVisualInfo visinfo, in XMesaCreateVisual() argument
784 v->visinfo = (XVisualInfo *) MALLOC(sizeof(*visinfo)); in XMesaCreateVisual()
785 if(!v->visinfo) { in XMesaCreateVisual()
789 memcpy(v->visinfo, visinfo, sizeof(*visinfo)); in XMesaCreateVisual()
806 v->mesa_visual.redMask = visinfo->red_mask; in XMesaCreateVisual()
807 v->mesa_visual.greenMask = visinfo->green_mask; in XMesaCreateVisual()
808 v->mesa_visual.blueMask = visinfo->blue_mask; in XMesaCreateVisual()
809 v->visualID = visinfo->visualid; in XMesaCreateVisual()
[all …]
Dglxapi.h66 …GLXContext (*CreateContext)(Display *dpy, XVisualInfo *visinfo, GLXContext shareList, Bool direct);
67 GLXPixmap (*CreateGLXPixmap)(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap);
70 int (*GetConfig)(Display *dpy, XVisualInfo *visinfo, int attrib, int *value);
185 …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
Drealglx.h44 _real_glXCreateContext( Display *dpy, XVisualInfo *visinfo,
48 _real_glXCreateGLXPixmap( Display *dpy, XVisualInfo *visinfo, Pixmap pixmap );
51 _real_glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visinfo,
83 _real_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
Dxm_buffer.c81 b->xm_visual->visinfo->visual, in alloc_back_shm_ximage()
82 b->xm_visual->visinfo->depth, in alloc_back_shm_ximage()
196 b->xm_visual->visinfo->visual, in alloc_back_buffer()
475 xrb->Parent->xm_visual->visinfo->visual, in xmesa_MapRenderbuffer()
476 xrb->Parent->xm_visual->visinfo->depth, in xmesa_MapRenderbuffer()
Dglxapi.c213 glXCreateContext(Display *dpy, XVisualInfo *visinfo, GLXContext shareList, Bool direct) in glXCreateContext() argument
219 return (t->CreateContext)(dpy, visinfo, shareList, direct); in glXCreateContext()
224 glXCreateGLXPixmap(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap) in glXCreateGLXPixmap() argument
230 return (t->CreateGLXPixmap)(dpy, visinfo, pixmap); in glXCreateGLXPixmap()
259 glXGetConfig(Display *dpy, XVisualInfo *visinfo, int attrib, int *value) in glXGetConfig() argument
265 return (t->GetConfig)(dpy, visinfo, attrib, value); in glXGetConfig()
1042 glXCreateGLXPixmapMESA(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap, Colormap cmap) in glXCreateGLXPixmapMESA() argument
1048 return (t->CreateGLXPixmapMESA)(dpy, visinfo, pixmap, cmap); in glXCreateGLXPixmapMESA()
Dxmesa.h132 XMesaVisualInfo visinfo,
DxmesaP.h79 XMesaVisualInfo visinfo; /* X's visual info (pointer to private copy) */ member
/external/mesa3d/src/glx/
Ddrisw_glx.c66 XVisualInfo *visinfo; member
92 pdp->visinfo = XGetVisualInfo(dpy, visMask, &visTemp, &num_visuals); in XCreateDrawable()
94 if (!pdp->visinfo || num_visuals == 0) in XCreateDrawable()
99 pdp->visinfo->visual, in XCreateDrawable()
100 pdp->visinfo->depth, in XCreateDrawable()
121 XFree(pdp->visinfo); in XDestroyDrawable()
Dglx_pbuffer.c892 XVisualInfo *visinfo; in glXCreateWindow() local
898 visinfo = glXGetVisualFromFBConfig(dpy, config); in glXCreateWindow()
900 if (NULL == visinfo) { in glXCreateWindow()
905 if (visinfo->visualid != XVisualIDFromVisual(xwattr.visual)) { in glXCreateWindow()
910 XFree(visinfo); in glXCreateWindow()
/external/mesa3d/src/glx/apple/
Dglx_empty.c259 glXGetFBConfigFromVisualSGIX(Display * dpy, XVisualInfo * visinfo)
262 (void) visinfo;