~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/drivers/svga/svgamesa8.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: svgamesa8.c,v 1.9 2005-05-04 20:11:39 brianp Exp $ */
 
1
/* $Id: svgamesa8.c,v 1.10 2006/11/01 19:35:23 brianp Exp $ */
2
2
 
3
3
/*
4
4
 * Mesa 3-D graphics library
60
60
   SVGAMesa->clear_index = index;
61
61
}
62
62
 
63
 
void __clear8( GLcontext *ctx, GLbitfield mask, GLboolean all,
64
 
               GLint x, GLint y, GLint width, GLint height )
 
63
void __clear8( GLcontext *ctx, GLbitfield mask )
65
64
{
66
65
   int i,j;
 
66
   int x = ctx->DrawBuffer->_Xmin;
 
67
   int y = ctx->DrawBuffer->_Ymin;
 
68
   int width = ctx->DrawBuffer->_Xmax - x;
 
69
   int height = ctx->DrawBuffer->_Ymax - y;
 
70
   GLboolean all = (width == ctx->DrawBuffer->Width && height == ctx->DrawBuffer->height)
67
71
   
68
72
   if (mask & DD_FRONT_LEFT_BIT) {
69
73
      if (all) { 
95
99
   }
96
100
 
97
101
   if (mask)
98
 
      _swrast_Clear( ctx, mask, all, x, y, width, height );
 
102
      _swrast_Clear( ctx, mask );
99
103
}
100
104
 
101
105
void __write_ci32_span8( const GLcontext *ctx, struct gl_renderbuffer *rb,