diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2001-01-29 20:47:39 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2001-01-29 20:47:39 +0000 |
commit | 5c1e7fa6ee72f4403d9ec9d12830dd689b966e71 (patch) | |
tree | 8cb11c26af178632b05de9c5b2f53c32331475c5 /src/mesa/main/buffers.c | |
parent | 4b90e68ac6d0fe4ffca5e2cd51794bb4350cac28 (diff) |
Removed knowledge of swrast Clear/Bitmap/Accum/Draw/Read/CopyPixels
functions from core mesa -- if drivers need these fallbacks they
must now call them themselves.
Introduced hooks for clip-vertex-interpolation and the rendering
of clipped lines and polygons. Allows drivers to interpolate
their hardware-format vertices directly. Used in dri drivers to
replace fastpath code.
Slight optimizations to pipeline build/run routines.
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 0699e74b90..b08804a796 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -1,4 +1,4 @@ -/* $Id: buffers.c,v 1.24 2001/01/24 00:04:58 brianp Exp $ */ +/* $Id: buffers.c,v 1.25 2001/01/29 20:47:39 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -41,7 +41,6 @@ #include "stencil.h" #include "state.h" #include "mtypes.h" -#include "swrast/swrast.h" #endif @@ -126,25 +125,8 @@ _mesa_Clear( GLbitfield mask ) } ASSERT(ctx->Driver.Clear); - newMask = (*ctx->Driver.Clear)( ctx, ddMask, !ctx->Scissor.Enabled, - x, y, width, height ); - -#ifdef DEBUG - { - GLbitfield legalBits = DD_FRONT_LEFT_BIT | - DD_FRONT_RIGHT_BIT | - DD_BACK_LEFT_BIT | - DD_BACK_RIGHT_BIT | - DD_DEPTH_BIT | - DD_STENCIL_BIT | - DD_ACCUM_BIT; - assert((newMask & (~legalBits)) == 0); - } -#endif - - if (newMask) - _swrast_Clear( ctx, newMask, !ctx->Scissor.Enabled, - x, y, width, height ); + ctx->Driver.Clear( ctx, ddMask, !ctx->Scissor.Enabled, + x, y, width, height ); } } @@ -387,5 +369,5 @@ _mesa_ResizeBuffersMESA( void ) ctx->DrawBuffer->Width = buf_width; ctx->DrawBuffer->Height = buf_height; - _swrast_alloc_buffers( ctx ); + ctx->Driver.ResizeBuffersMESA( ctx ); } |