Lines Matching refs:xmesa
56 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in finish_or_flush() local
57 if (xmesa) { in finish_or_flush()
59 XSync( xmesa->display, False ); in finish_or_flush()
70 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in color_mask() local
72 const int xclass = xmesa->xm_visual->visualType; in color_mask()
87 if (rmask) m |= GET_REDMASK(xmesa->xm_visual); in color_mask()
88 if (gmask) m |= GET_GREENMASK(xmesa->xm_visual); in color_mask()
89 if (bmask) m |= GET_BLUEMASK(xmesa->xm_visual); in color_mask()
91 XMesaSetPlaneMask( xmesa->display, xmbuf->cleargc, m ); in color_mask()
109 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in clear_pixmap() local
114 assert(xmesa); in clear_pixmap()
115 assert(xmesa->display); in clear_pixmap()
119 XMesaFillRectangle( xmesa->display, xrb->pixmap, xmbuf->cleargc, in clear_pixmap()
129 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in clear_16bit_ximage() local
130 GLuint pixel = (GLuint) xmesa->clearpixel; in clear_16bit_ximage()
133 if (xmesa->swapbytes) { in clear_16bit_ximage()
151 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in clear_24bit_ximage() local
152 const GLubyte r = xmesa->clearcolor[0]; in clear_24bit_ximage()
153 const GLubyte g = xmesa->clearcolor[1]; in clear_24bit_ximage()
154 const GLubyte b = xmesa->clearcolor[2]; in clear_24bit_ximage()
184 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in clear_32bit_ximage() local
185 register GLuint pixel = (GLuint) xmesa->clearpixel; in clear_32bit_ximage()
190 if (xmesa->swapbytes) { in clear_32bit_ximage()
228 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in clear_nbit_ximage() local
236 XMesaPutPixel(img, x+i, y-j, xmesa->clearpixel); in clear_nbit_ximage()
248 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in clear_buffers() local
255 _mesa_unclamped_float_rgba_to_ubyte(xmesa->clearcolor, in clear_buffers()
257 xmesa->clearpixel = xmesa_color_to_pixel(ctx, in clear_buffers()
258 xmesa->clearcolor[0], in clear_buffers()
259 xmesa->clearcolor[1], in clear_buffers()
260 xmesa->clearcolor[2], in clear_buffers()
261 xmesa->clearcolor[3], in clear_buffers()
262 xmesa->xm_visual->undithered_pf); in clear_buffers()
263 XMesaSetForeground(xmesa->display, b->cleargc, xmesa->clearpixel); in clear_buffers()
379 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in xmesa_DrawPixels_8R8G8B() local
380 XMesaDisplay *dpy = xmesa->xm_visual->display; in xmesa_DrawPixels_8R8G8B()
390 assert(xmesa->xm_visual->dithered_pf == PF_8R8G8B); in xmesa_DrawPixels_8R8G8B()
391 assert(xmesa->xm_visual->undithered_pf == PF_8R8G8B); in xmesa_DrawPixels_8R8G8B()
511 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in xmesa_DrawPixels_5R6G5B() local
512 XMesaDisplay *dpy = xmesa->xm_visual->display; in xmesa_DrawPixels_5R6G5B()
522 assert(xmesa->xm_visual->undithered_pf == PF_5R6G5B); in xmesa_DrawPixels_5R6G5B()
609 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in xmesa_CopyPixels() local
610 XMesaDisplay *dpy = xmesa->xm_visual->display; in xmesa_CopyPixels()
663 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in enable() local
668 xmesa->pixelformat = xmesa->xm_visual->dithered_pf; in enable()
670 xmesa->pixelformat = xmesa->xm_visual->undithered_pf; in enable()
686 const XMesaContext xmesa = XMESA_CONTEXT(ctx); in xmesa_update_state() local
721 switch (xmesa->xm_visual->BitsPerPixel) { in xmesa_update_state()