diff options
author | Brian Paul <[email protected]> | 2002-09-17 15:46:34 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-09-17 15:46:34 +0000 |
commit | a9be374f82ace523c126c661399030c869201dab (patch) | |
tree | 9aea742129bab4b8dad092cdf9084962b7a57d67 /src/mesa/swrast | |
parent | e1cb2fb571ee47b59020db7627e554b7d227e454 (diff) |
pull-in changes from DRI/Mesa-4.0.4
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r-- | src/mesa/swrast/s_context.c | 20 | ||||
-rw-r--r-- | src/mesa/swrast/swrast.h | 7 |
2 files changed, 25 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index c80c92798b5..e85741953e7 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -1,4 +1,4 @@ -/* $Id: s_context.c,v 1.37 2002/08/07 00:45:07 brianp Exp $ */ +/* $Id: s_context.c,v 1.38 2002/09/17 15:46:34 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -559,6 +559,24 @@ _swrast_GetDeviceDriverReference( GLcontext *ctx ) return &swrast->Driver; } + +void +_swrast_render_start( GLcontext *ctx ) +{ + SWcontext *swrast = SWRAST_CONTEXT(ctx); + if (swrast->Driver.SpanRenderStart) + swrast->Driver.SpanRenderStart( ctx ); +} + +void +_swrast_render_finish( GLcontext *ctx ) +{ + SWcontext *swrast = SWRAST_CONTEXT(ctx); + if (swrast->Driver.SpanRenderFinish) + swrast->Driver.SpanRenderFinish( ctx ); +} + + #define SWRAST_DEBUG_VERTICES 0 void diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h index 493534c4bab..4db055b6fe1 100644 --- a/src/mesa/swrast/swrast.h +++ b/src/mesa/swrast/swrast.h @@ -1,4 +1,4 @@ -/* $Id: swrast.h,v 1.26 2002/08/07 00:45:07 brianp Exp $ */ +/* $Id: swrast.h,v 1.27 2002/09/17 15:46:36 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -302,6 +302,11 @@ _swrast_Quad( GLcontext *ctx, extern void _swrast_flush( GLcontext *ctx ); +extern void +_swrast_render_start( GLcontext *ctx ); + +extern void +_swrast_render_finish( GLcontext *ctx ); /* Tell the software rasterizer about core state changes. */ |