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

« back to all changes in this revision

Viewing changes to src/mesa/swrast/s_depth.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:
503
503
 * Apply depth test to span of fragments.
504
504
 */
505
505
static GLuint
506
 
depth_test_span( GLcontext *ctx, struct sw_span *span)
 
506
depth_test_span( GLcontext *ctx, SWspan *span)
507
507
{
508
508
   struct gl_framebuffer *fb = ctx->DrawBuffer;
509
509
   struct gl_renderbuffer *rb = fb->_DepthBuffer;
1051
1051
 
1052
1052
 
1053
1053
static GLuint
1054
 
depth_test_pixels( GLcontext *ctx, struct sw_span *span )
 
1054
depth_test_pixels( GLcontext *ctx, SWspan *span )
1055
1055
{
1056
1056
   struct gl_framebuffer *fb = ctx->DrawBuffer;
1057
1057
   struct gl_renderbuffer *rb = fb->_DepthBuffer;
1101
1101
 * \return approx number of pixels that passed (only zero is reliable)
1102
1102
 */
1103
1103
GLuint
1104
 
_swrast_depth_test_span( GLcontext *ctx, struct sw_span *span)
 
1104
_swrast_depth_test_span( GLcontext *ctx, SWspan *span)
1105
1105
{
1106
1106
   if (span->arrayMask & SPAN_XY)
1107
1107
      return depth_test_pixels(ctx, span);
1118
1118
 * \return GL_TRUE if any fragments pass, GL_FALSE if no fragments pass
1119
1119
 */
1120
1120
GLboolean
1121
 
_swrast_depth_bounds_test( GLcontext *ctx, struct sw_span *span )
 
1121
_swrast_depth_bounds_test( GLcontext *ctx, SWspan *span )
1122
1122
{
1123
1123
   struct gl_framebuffer *fb = ctx->DrawBuffer;
1124
1124
   struct gl_renderbuffer *rb = fb->_DepthBuffer;