-}
-
-
-/**
- * Apply fog to a span of RGBA pixels.
- * Input: ctx -
- * span - where span->zArray has to be filled.
- * red, green, blue, alpha - pixel colors
- * Output: red, green, blue, alpha - fogged pixel colors
- */
-void
-_mesa_depth_fog_rgba_pixels(const GLcontext *ctx, struct sw_span *span,
- GLchan rgba[][4])
-{
- GLfloat fogFact[MAX_WIDTH];
-
- ASSERT(ctx->Fog.Enabled);
- ASSERT(span->arrayMask & SPAN_Z);
- ASSERT(span->end <= MAX_WIDTH);
-
- compute_fog_factors_from_z(ctx, span->end, span->zArray, fogFact );
- _mesa_fog_rgba_pixels_with_array( ctx, span, fogFact, rgba );
-}
-
-
-/**
- * Apply fog to a span of color index pixels.
- * Input: ctx -
- * span - where span->zArray has to be filled.
- * index - pixel color indexes
- * Output: index - fogged pixel color indexes
- */
-void
-_mesa_depth_fog_ci_pixels( const GLcontext *ctx, struct sw_span *span,
- GLuint index[] )
-{
- GLfloat fogFact[MAX_WIDTH];
-
- ASSERT(ctx->Fog.Enabled);
- ASSERT(span->arrayMask & SPAN_Z);
- ASSERT(span->end <= MAX_WIDTH);
-
- compute_fog_factors_from_z(ctx, span->end, span->zArray, fogFact );
- _mesa_fog_ci_pixels_with_array( ctx, span, fogFact, index );