diff options
author | Brian Paul <[email protected]> | 2002-06-15 02:38:15 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-06-15 02:38:15 +0000 |
commit | 4753d60dd070bb08d0116076bcc08025c86ce857 (patch) | |
tree | b1516c35acfa41ae17d575b92b8c776bd530297a /src/mesa/drivers/x11 | |
parent | 5e54ddc3a69df060c3ca2acbdd45247e30c947d6 (diff) |
Added ctx parameter to _mesa_debug()
Added _mesa_printf()
Updated SetDrawBuffer() function in all drivers (ala 4.0.3)
Import 4.0.3/DRI changes.
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r-- | src/mesa/drivers/x11/xm_dd.c | 14 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xm_line.c | 3 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xm_tri.c | 4 |
3 files changed, 10 insertions, 11 deletions
diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c index 1fdb716cba6..56e63f3252e 100644 --- a/src/mesa/drivers/x11/xm_dd.c +++ b/src/mesa/drivers/x11/xm_dd.c @@ -1,8 +1,8 @@ -/* $Id: xm_dd.c,v 1.31 2002/03/19 16:48:06 brianp Exp $ */ +/* $Id: xm_dd.c,v 1.32 2002/06/15 02:38:17 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 4.0.2 + * Version: 4.0.3 * * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * @@ -115,9 +115,7 @@ flush( GLcontext *ctx ) } - - -static GLboolean +static void set_draw_buffer( GLcontext *ctx, GLenum mode ) { const XMesaContext xmesa = (XMesaContext) ctx->DriverCtx; @@ -125,7 +123,6 @@ set_draw_buffer( GLcontext *ctx, GLenum mode ) /* write to front buffer */ xmesa->xm_buffer->buffer = xmesa->xm_buffer->frontbuffer; xmesa_update_span_funcs(ctx); - return GL_TRUE; } else if (mode==GL_BACK_LEFT && xmesa->xm_buffer->db_state) { /* write to back buffer */ @@ -141,10 +138,11 @@ set_draw_buffer( GLcontext *ctx, GLenum mode ) xmesa->xm_buffer->buffer = xmesa->xm_buffer->frontbuffer; } xmesa_update_span_funcs(ctx); - return GL_TRUE; } else { - return GL_FALSE; + /* the swrast->_RasterMask MULTI_DRAW_BIT will be set and + * we'll fall back to swrast to draw points/lines/triangles. + */ } } diff --git a/src/mesa/drivers/x11/xm_line.c b/src/mesa/drivers/x11/xm_line.c index 30e45b698aa..ce70680901a 100644 --- a/src/mesa/drivers/x11/xm_line.c +++ b/src/mesa/drivers/x11/xm_line.c @@ -1,4 +1,4 @@ -/* $Id: xm_line.c,v 1.18 2001/09/12 03:32:29 brianp Exp $ */ +/* $Id: xm_line.c,v 1.19 2002/06/15 02:38:17 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -560,6 +560,7 @@ static swrast_line_func get_line_func( GLcontext *ctx ) if (ctx->Texture._ReallyEnabled) return (swrast_line_func) NULL; if (ctx->Light.ShadeModel != GL_FLAT) return (swrast_line_func) NULL; if (ctx->Line.StippleFlag) return (swrast_line_func) NULL; + if (swrast->_RasterMask & MULTI_DRAW_BIT) return (swrast_line_func) NULL; if (xmesa->xm_buffer->buffer==XIMAGE && swrast->_RasterMask==DEPTH_BIT diff --git a/src/mesa/drivers/x11/xm_tri.c b/src/mesa/drivers/x11/xm_tri.c index 6a8b678d7b5..f0aef4c0ec6 100644 --- a/src/mesa/drivers/x11/xm_tri.c +++ b/src/mesa/drivers/x11/xm_tri.c @@ -1,4 +1,4 @@ -/* $Id: xm_tri.c,v 1.22 2002/04/19 14:05:51 brianp Exp $ */ +/* $Id: xm_tri.c,v 1.23 2002/06/15 02:38:17 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1505,7 +1505,6 @@ static const char *triFuncName = NULL; #define USE(triFunc) \ do { \ triFuncName = #triFunc; \ - /*printf("%s\n", triFuncName);*/ \ return triFunc; \ } while (0) @@ -1531,6 +1530,7 @@ static swrast_tri_func get_triangle_func( GLcontext *ctx ) if (ctx->RenderMode != GL_RENDER) return (swrast_tri_func) NULL; if (ctx->Polygon.SmoothFlag) return (swrast_tri_func) NULL; if (ctx->Texture._ReallyEnabled) return (swrast_tri_func) NULL; + if (swrast->_RasterMask & MULTI_DRAW_BIT) return (swrast_tri_func) NULL; if (xmesa->xm_buffer->buffer==XIMAGE) { if ( ctx->Light.ShadeModel==GL_SMOOTH |