-/* $Id: s_aalinetemp.h,v 1.23 2003/03/04 16:34:02 brianp Exp $ */
+/* $Id: s_aalinetemp.h,v 1.24 2003/03/25 02:23:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
if (line->span.end == MAX_WIDTH) {
#if defined(DO_TEX) || defined(DO_MULTITEX)
- _mesa_write_texture_span(ctx, &(line->span));
+ _swrast_write_texture_span(ctx, &(line->span));
#elif defined(DO_RGBA)
- _mesa_write_rgba_span(ctx, &(line->span));
+ _swrast_write_rgba_span(ctx, &(line->span));
#else
- _mesa_write_index_span(ctx, &(line->span));
+ _swrast_write_index_span(ctx, &(line->span));
#endif
line->span.end = 0; /* reset counter */
}
}
#if defined(DO_TEX) || defined(DO_MULTITEX)
- _mesa_write_texture_span(ctx, &(line.span));
+ _swrast_write_texture_span(ctx, &(line.span));
#elif defined(DO_RGBA)
- _mesa_write_rgba_span(ctx, &(line.span));
+ _swrast_write_rgba_span(ctx, &(line.span));
#else
- _mesa_write_index_span(ctx, &(line.span));
+ _swrast_write_index_span(ctx, &(line.span));
#endif
}
-/* $Id: s_aatriangle.c,v 1.30 2003/03/01 01:50:25 brianp Exp $ */
+/* $Id: s_aatriangle.c,v 1.31 2003/03/25 02:23:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
* appropriate antialiased triangle rasterizer function.
*/
void
-_mesa_set_aa_triangle_function(GLcontext *ctx)
+_swrast_set_aa_triangle_function(GLcontext *ctx)
{
ASSERT(ctx->Polygon.SmoothFlag);
-/* $Id: s_aatriangle.h,v 1.3 2001/03/12 00:48:41 gareth Exp $ */
+/* $Id: s_aatriangle.h,v 1.4 2003/03/25 02:23:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern void
-_mesa_set_aa_triangle_function(GLcontext *ctx);
+_swrast_set_aa_triangle_function(GLcontext *ctx);
#endif
-/* $Id: s_aatritemp.h,v 1.35 2003/02/21 21:00:20 brianp Exp $ */
+/* $Id: s_aatritemp.h,v 1.36 2003/03/25 02:23:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
span.end = (GLuint) ix - (GLuint) startX;
ASSERT(span.interpMask == 0);
#if defined(DO_MULTITEX) || defined(DO_TEX)
- _mesa_write_texture_span(ctx, &span);
+ _swrast_write_texture_span(ctx, &span);
#elif defined(DO_RGBA)
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
#elif defined(DO_INDEX)
- _mesa_write_index_span(ctx, &span);
+ _swrast_write_index_span(ctx, &span);
#endif
}
}
span.end = n;
ASSERT(span.interpMask == 0);
#if defined(DO_MULTITEX) || defined(DO_TEX)
- _mesa_write_texture_span(ctx, &span);
+ _swrast_write_texture_span(ctx, &span);
#elif defined(DO_RGBA)
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
#elif defined(DO_INDEX)
- _mesa_write_index_span(ctx, &span);
+ _swrast_write_index_span(ctx, &span);
#endif
}
}
-/* $Id: s_accum.c,v 1.21 2003/03/01 01:50:25 brianp Exp $ */
+/* $Id: s_accum.c,v 1.22 2003/03/25 02:23:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
void
-_mesa_alloc_accum_buffer( GLframebuffer *buffer )
+_swrast_alloc_accum_buffer( GLframebuffer *buffer )
{
GET_CURRENT_CONTEXT(ctx);
GLint n;
* Clear the accumulation Buffer.
*/
void
-_mesa_clear_accum_buffer( GLcontext *ctx )
+_swarst_clear_accum_buffer( GLcontext *ctx )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
GLuint buffersize;
for (j = 0; j < height; j++) {
GLint i, i4;
- _mesa_read_rgba_span(ctx, ctx->DrawBuffer, width, xpos, ypos, rgba);
+ _swrast_read_rgba_span(ctx, ctx->DrawBuffer, width, xpos, ypos, rgba);
for (i = i4 = 0; i < width; i++, i4+=4) {
acc[i4+0] += rgba[i][RCOMP];
acc[i4+1] += rgba[i][GCOMP];
for (j=0;j<height;j++) {
GLaccum *acc = ctx->DrawBuffer->Accum + ypos * width4 + xpos * 4;
GLint i;
- _mesa_read_rgba_span(ctx, ctx->DrawBuffer, width, xpos, ypos, rgba);
+ _swrast_read_rgba_span(ctx, ctx->DrawBuffer, width, xpos, ypos, rgba);
for (i=0;i<width;i++) {
acc[0] += (GLaccum) ( (GLfloat) rgba[i][RCOMP] * rscale );
acc[1] += (GLaccum) ( (GLfloat) rgba[i][GCOMP] * gscale );
assert(swrast->_IntegerAccumScaler <= 1.0);
for (j = 0; j < height; j++) {
GLint i, i4;
- _mesa_read_rgba_span(ctx, ctx->DrawBuffer, width, xpos, ypos, rgba);
+ _swrast_read_rgba_span(ctx, ctx->DrawBuffer, width, xpos, ypos, rgba);
for (i = i4 = 0; i < width; i++, i4 += 4) {
acc[i4+0] = rgba[i][RCOMP];
acc[i4+1] = rgba[i][GCOMP];
GLint i, j;
for (j = 0; j < height; j++) {
GLaccum *acc = ctx->DrawBuffer->Accum + ypos * width4 + xpos * 4;
- _mesa_read_rgba_span(ctx, ctx->DrawBuffer, width, xpos, ypos, rgba);
+ _swrast_read_rgba_span(ctx, ctx->DrawBuffer, width, xpos, ypos, rgba);
for (i=0;i<width;i++) {
#if 0
*acc++ = (GLaccum) ((GLfloat) rgba[i][RCOMP] * rscale + d);
rgba[i][ACOMP] = multTable[acc[i4+3]];
}
if (colorMask != 0xffffffff) {
- _mesa_mask_rgba_array( ctx, width, xpos, ypos, rgba );
+ _swrast_mask_rgba_array( ctx, width, xpos, ypos, rgba );
}
(*swrast->Driver.WriteRGBASpan)( ctx, width, xpos, ypos,
(const GLchan (*)[4])rgba, NULL );
if (ctx->DrawBuffer->UseSoftwareAlphaBuffers
&& ctx->Color.ColorMask[ACOMP]) {
- _mesa_write_alpha_span(ctx, width, xpos, ypos,
+ _swrast_write_alpha_span(ctx, width, xpos, ypos,
(CONST GLchan (*)[4]) rgba, NULL);
}
ypos++;
rgba[i][ACOMP] = CLAMP( a, 0, CHAN_MAX );
}
if (colorMask != 0xffffffff) {
- _mesa_mask_rgba_array( ctx, width, xpos, ypos, rgba );
+ _swrast_mask_rgba_array( ctx, width, xpos, ypos, rgba );
}
(*swrast->Driver.WriteRGBASpan)( ctx, width, xpos, ypos,
(const GLchan (*)[4])rgba, NULL );
if (ctx->DrawBuffer->UseSoftwareAlphaBuffers
&& ctx->Color.ColorMask[ACOMP]) {
- _mesa_write_alpha_span(ctx, width, xpos, ypos,
+ _swrast_write_alpha_span(ctx, width, xpos, ypos,
(CONST GLchan (*)[4]) rgba, NULL);
}
ypos++;
-/* $Id: s_accum.h,v 1.4 2002/03/16 00:53:15 brianp Exp $ */
+/* $Id: s_accum.h,v 1.5 2003/03/25 02:23:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern void
-_mesa_alloc_accum_buffer( GLframebuffer *buffer );
+_swrast_alloc_accum_buffer( GLframebuffer *buffer );
extern void
-_mesa_clear_accum_buffer( GLcontext *ctx );
+_swarst_clear_accum_buffer( GLcontext *ctx );
#endif
-/* $Id: s_alpha.c,v 1.13 2003/03/01 01:50:25 brianp Exp $ */
+/* $Id: s_alpha.c,v 1.14 2003/03/25 02:23:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
/**
- * \fn GLint _mesa_alpha_test( const GLcontext *ctx, struct sw_span *span )
+ * \fn GLint _swrast_alpha_test( const GLcontext *ctx, struct sw_span *span )
* \brief Apply the alpha test to a span of pixels.
* \return
* - "0" = all pixels in the span failed the alpha test.
* - "1" = one or more pixels passed the alpha test.
*/
GLint
-_mesa_alpha_test( const GLcontext *ctx, struct sw_span *span )
+_swrast_alpha_test( const GLcontext *ctx, struct sw_span *span )
{
const GLchan (*rgba)[4] = (const GLchan (*)[4]) span->array->rgba;
GLchan ref;
span->writeAll = GL_FALSE;
return 0;
default:
- _mesa_problem( ctx, "Invalid alpha test in _mesa_alpha_test" );
+ _mesa_problem( ctx, "Invalid alpha test in _swrast_alpha_test" );
return 0;
}
}
-/* $Id: s_alpha.h,v 1.7 2003/02/23 04:10:54 brianp Exp $ */
+/* $Id: s_alpha.h,v 1.8 2003/03/25 02:23:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern GLint
-_mesa_alpha_test( const GLcontext *ctx, struct sw_span *span );
+_swrast_alpha_test( const GLcontext *ctx, struct sw_span *span );
#endif
-/* $Id: s_alphabuf.c,v 1.16 2002/11/26 02:58:43 brianp Exp $ */
+/* $Id: s_alphabuf.c,v 1.17 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Allocate a new front and back alpha buffer.
*/
void
-_mesa_alloc_alpha_buffers( GLframebuffer *buffer )
+_swrast_alloc_alpha_buffers( GLframebuffer *buffer )
{
const GLint bytes = buffer->Width * buffer->Height * sizeof(GLchan);
* Clear all the alpha buffers
*/
void
-_mesa_clear_alpha_buffers( GLcontext *ctx )
+_swrast_clear_alpha_buffers( GLcontext *ctx )
{
GLchan aclear;
GLuint bufferBit;
void
-_mesa_write_alpha_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
+_swrast_write_alpha_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
CONST GLchan rgba[][4], const GLubyte mask[] )
{
GLchan *buffer, *aptr;
void
-_mesa_write_mono_alpha_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
+_swrast_write_mono_alpha_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
GLchan alpha, const GLubyte mask[] )
{
GLchan *buffer, *aptr;
void
-_mesa_write_alpha_pixels( GLcontext *ctx,
+_swrast_write_alpha_pixels( GLcontext *ctx,
GLuint n, const GLint x[], const GLint y[],
CONST GLchan rgba[][4], const GLubyte mask[] )
{
void
-_mesa_write_mono_alpha_pixels( GLcontext *ctx,
+_swrast_write_mono_alpha_pixels( GLcontext *ctx,
GLuint n, const GLint x[], const GLint y[],
GLchan alpha, const GLubyte mask[] )
{
void
-_mesa_read_alpha_span( GLcontext *ctx,
+_swrast_read_alpha_span( GLcontext *ctx,
GLuint n, GLint x, GLint y, GLchan rgba[][4] )
{
const GLchan *buffer, *aptr;
void
-_mesa_read_alpha_pixels( GLcontext *ctx,
+_swrast_read_alpha_pixels( GLcontext *ctx,
GLuint n, const GLint x[], const GLint y[],
GLchan rgba[][4], const GLubyte mask[] )
{
-/* $Id: s_alphabuf.h,v 1.4 2002/03/16 00:53:15 brianp Exp $ */
+/* $Id: s_alphabuf.h,v 1.5 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern void
-_mesa_alloc_alpha_buffers( GLframebuffer *buffer );
+_swrast_alloc_alpha_buffers( GLframebuffer *buffer );
extern void
-_mesa_clear_alpha_buffers( GLcontext *ctx );
+_swrast_clear_alpha_buffers( GLcontext *ctx );
extern void
-_mesa_write_alpha_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
+_swrast_write_alpha_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
CONST GLchan rgba[][4], const GLubyte mask[] );
extern void
-_mesa_write_mono_alpha_span( GLcontext *ctx,
+_swrast_write_mono_alpha_span( GLcontext *ctx,
GLuint n, GLint x, GLint y,
GLchan alpha, const GLubyte mask[] );
extern void
-_mesa_write_alpha_pixels( GLcontext* ctx,
+_swrast_write_alpha_pixels( GLcontext* ctx,
GLuint n, const GLint x[], const GLint y[],
CONST GLchan rgba[][4],
const GLubyte mask[] );
extern void
-_mesa_write_mono_alpha_pixels( GLcontext* ctx,
+_swrast_write_mono_alpha_pixels( GLcontext* ctx,
GLuint n, const GLint x[],
const GLint y[], GLchan alpha,
const GLubyte mask[] );
extern void
-_mesa_read_alpha_span( GLcontext* ctx,
+_swrast_read_alpha_span( GLcontext* ctx,
GLuint n, GLint x, GLint y, GLchan rgba[][4] );
extern void
-_mesa_read_alpha_pixels( GLcontext* ctx,
+_swrast_read_alpha_pixels( GLcontext* ctx,
GLuint n, const GLint x[], const GLint y[],
GLchan rgba[][4], const GLubyte mask[] );
-/* $Id: s_bitmap.c,v 1.21 2003/03/01 01:50:25 brianp Exp $ */
+/* $Id: s_bitmap.c,v 1.22 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
}
if (ctx->Depth.Test)
- _mesa_span_default_z(ctx, &span);
+ _swrast_span_default_z(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
if (ctx->Texture._EnabledUnits)
- _mesa_span_default_texcoords(ctx, &span);
+ _swrast_span_default_texcoords(ctx, &span);
for (row = 0; row < height; row++, span.y++) {
const GLubyte *src = (const GLubyte *) _mesa_image_address( unpack,
/* flush the span */
span.end = count;
if (ctx->Visual.rgbMode)
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
else
- _mesa_write_index_span(ctx, &span);
+ _swrast_write_index_span(ctx, &span);
span.end = 0;
count = 0;
}
}
if (ctx->Depth.Test)
- _mesa_span_default_z(ctx, &span);
+ _swrast_span_default_z(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
if (ctx->Texture._EnabledUnits)
- _mesa_span_default_texcoords(ctx, &span);
+ _swrast_span_default_texcoords(ctx, &span);
for (row=0; row<height; row++, span.y++) {
const GLubyte *src = (const GLubyte *) _mesa_image_address( unpack,
}
if (ctx->Visual.rgbMode)
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
else
- _mesa_write_index_span(ctx, &span);
+ _swrast_write_index_span(ctx, &span);
/* get ready for next row */
if (mask != 1)
}
if (ctx->Visual.rgbMode)
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
else
- _mesa_write_index_span(ctx, &span);
+ _swrast_write_index_span(ctx, &span);
/* get ready for next row */
if (mask != 128)
-/* $Id: s_blend.c,v 1.25 2002/10/17 15:26:39 brianp Exp $ */
+/* $Id: s_blend.c,v 1.26 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
* pixel coordinates.
*/
void
-_mesa_blend_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_blend_span( GLcontext *ctx, const struct sw_span *span,
GLchan rgba[][4] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
span->array->x, span->array->y,
framebuffer, span->array->mask );
if (swrast->_RasterMask & ALPHABUF_BIT) {
- _mesa_read_alpha_pixels( ctx, span->end,
+ _swrast_read_alpha_pixels( ctx, span->end,
span->array->x, span->array->y,
framebuffer, span->array->mask );
}
}
else {
/* horizontal run of pixels */
- _mesa_read_rgba_span( ctx, ctx->DrawBuffer, span->end,
+ _swrast_read_rgba_span( ctx, ctx->DrawBuffer, span->end,
span->x, span->y, framebuffer );
}
-/* $Id: s_blend.h,v 1.7 2003/02/23 04:10:54 brianp Exp $ */
+/* $Id: s_blend.h,v 1.8 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern void
-_mesa_blend_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_blend_span( GLcontext *ctx, const struct sw_span *span,
GLchan rgba[][4] );
-/* $Id: s_buffers.c,v 1.16 2002/11/13 16:46:19 brianp Exp $ */
+/* $Id: s_buffers.c,v 1.17 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
for (j = 0; j < width; j++) {
COPY_CHAN4(rgba[j], clearColor);
}
- _mesa_mask_rgba_array( ctx, width, x, y + i, rgba );
+ _swrast_mask_rgba_array( ctx, width, x, y + i, rgba );
(*swrast->Driver.WriteRGBASpan)( ctx, width, x, y + i,
(CONST GLchan (*)[4]) rgba, NULL );
}
for (j=0;j<width;j++) {
span[j] = ctx->Color.ClearIndex;
}
- _mesa_mask_index_array( ctx, width, x, y + i, span );
+ _swrast_mask_index_array( ctx, width, x, y + i, span );
(*swrast->Driver.WriteCI32Span)( ctx, width, x, y + i, span, mask );
}
}
/* do software clearing here */
if (mask) {
if (mask & ctx->Color._DrawDestMask) clear_color_buffers(ctx);
- if (mask & GL_DEPTH_BUFFER_BIT) _mesa_clear_depth_buffer(ctx);
- if (mask & GL_ACCUM_BUFFER_BIT) _mesa_clear_accum_buffer(ctx);
- if (mask & GL_STENCIL_BUFFER_BIT) _mesa_clear_stencil_buffer(ctx);
+ if (mask & GL_DEPTH_BUFFER_BIT) _swrast_clear_depth_buffer(ctx);
+ if (mask & GL_ACCUM_BUFFER_BIT) _swarst_clear_accum_buffer(ctx);
+ if (mask & GL_STENCIL_BUFFER_BIT) _swrast_clear_stencil_buffer(ctx);
}
/* clear software-based alpha buffer(s) */
if ( (mask & GL_COLOR_BUFFER_BIT)
&& ctx->DrawBuffer->UseSoftwareAlphaBuffers
&& ctx->Color.ColorMask[ACOMP]) {
- _mesa_clear_alpha_buffers( ctx );
+ _swrast_clear_alpha_buffers( ctx );
}
RENDER_FINISH(swrast,ctx);
{
/* Reallocate other buffers if needed. */
if (buffer->UseSoftwareDepthBuffer) {
- _mesa_alloc_depth_buffer( buffer );
+ _swrast_alloc_depth_buffer( buffer );
}
if (buffer->UseSoftwareStencilBuffer) {
- _mesa_alloc_stencil_buffer( buffer );
+ _swrast_alloc_stencil_buffer( buffer );
}
if (buffer->UseSoftwareAccumBuffer) {
- _mesa_alloc_accum_buffer( buffer );
+ _swrast_alloc_accum_buffer( buffer );
}
if (buffer->UseSoftwareAlphaBuffers) {
- _mesa_alloc_alpha_buffers( buffer );
+ _swrast_alloc_alpha_buffers( buffer );
}
}
-/* $Id: s_context.c,v 1.47 2003/03/15 17:33:27 brianp Exp $ */
+/* $Id: s_context.c,v 1.48 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
if (swrast->PointSpan.end > 0) {
if (ctx->Visual.rgbMode) {
if (ctx->Texture._EnabledUnits)
- _mesa_write_texture_span(ctx, &(swrast->PointSpan));
+ _swrast_write_texture_span(ctx, &(swrast->PointSpan));
else
- _mesa_write_rgba_span(ctx, &(swrast->PointSpan));
+ _swrast_write_rgba_span(ctx, &(swrast->PointSpan));
}
else {
- _mesa_write_index_span(ctx, &(swrast->PointSpan));
+ _swrast_write_index_span(ctx, &(swrast->PointSpan));
}
swrast->PointSpan.end = 0;
}
-/* $Id: s_copypix.c,v 1.43 2002/12/05 04:46:54 brianp Exp $ */
+/* $Id: s_copypix.c,v 1.44 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Version: 5.1
*
- * Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
#include "glheader.h"
#include "context.h"
#include "convolve.h"
+#include "histogram.h"
#include "macros.h"
#include "imports.h"
#include "pixel.h"
#include "s_context.h"
#include "s_depth.h"
-#include "s_histogram.h"
#include "s_pixeltex.h"
#include "s_span.h"
#include "s_stencil.h"
INIT_SPAN(span, GL_BITMAP, 0, 0, SPAN_RGBA);
if (ctx->Depth.Test)
- _mesa_span_default_z(ctx, &span);
+ _swrast_span_default_z(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
if (SWRAST_CONTEXT(ctx)->_RasterMask == 0
for (row = 0; row < height; row++) {
GLchan rgba[MAX_WIDTH][4];
GLint i;
- _mesa_read_rgba_span(ctx, ctx->ReadBuffer, width, srcx, srcy + row, rgba);
+ _swrast_read_rgba_span(ctx, ctx->ReadBuffer, width, srcx, srcy + row, rgba);
/* convert GLchan to GLfloat */
for (i = 0; i < width; i++) {
*dest++ = (GLfloat) rgba[i][RCOMP] * (1.0F / CHAN_MAXF);
span.x = destx;
span.y = dy;
span.end = width;
- _mesa_write_zoomed_rgba_span(ctx, &span,
+ _swrast_write_zoomed_rgba_span(ctx, &span,
(CONST GLchan (*)[4])span.array->rgba,
desty, 0);
}
span.x = destx;
span.y = dy;
span.end = width;
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
}
}
ctx->Pixel.ZoomX, ctx->Pixel.ZoomY);
if (ctx->Depth.Test)
- _mesa_span_default_z(ctx, &span);
+ _swrast_span_default_z(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
if (SWRAST_CONTEXT(ctx)->_RasterMask == 0
&& !zoom
/* read the source image */
p = tmpImage;
for (j = 0; j < height; j++, ssy += stepy) {
- _mesa_read_rgba_span( ctx, ctx->ReadBuffer, width, srcx, ssy,
+ _swrast_read_rgba_span( ctx, ctx->ReadBuffer, width, srcx, ssy,
(GLchan (*)[4]) p );
p += width * 4;
}
if (changeBuffer)
_swrast_use_read_buffer(ctx);
ASSERT(width < MAX_WIDTH);
- _mesa_read_rgba_span( ctx, ctx->ReadBuffer, width, srcx, sy,
+ _swrast_read_rgba_span( ctx, ctx->ReadBuffer, width, srcx, sy,
span.array->rgba );
if (changeBuffer)
_swrast_use_draw_buffer(ctx);
span.x = destx;
span.y = dy;
span.end = width;
- _mesa_write_zoomed_rgba_span(ctx, &span,
+ _swrast_write_zoomed_rgba_span(ctx, &span,
(CONST GLchan (*)[4]) span.array->rgba,
desty, 0);
}
span.x = destx;
span.y = dy;
span.end = width;
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
}
}
ctx->Pixel.ZoomX, ctx->Pixel.ZoomY);
if (ctx->Depth.Test)
- _mesa_span_default_z(ctx, &span);
+ _swrast_span_default_z(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
/* If read and draw buffer are different we must do buffer switching */
changeBuffer = ctx->Pixel.ReadBuffer != ctx->Color.DrawBuffer
/* read the image */
p = tmpImage;
for (j = 0; j < height; j++, ssy += stepy) {
- _mesa_read_index_span( ctx, ctx->ReadBuffer, width, srcx, ssy, p );
+ _swrast_read_index_span( ctx, ctx->ReadBuffer, width, srcx, ssy, p );
p += width;
}
p = tmpImage;
else {
if (changeBuffer)
_swrast_use_read_buffer(ctx);
- _mesa_read_index_span( ctx, ctx->ReadBuffer, width, srcx, sy,
+ _swrast_read_index_span( ctx, ctx->ReadBuffer, width, srcx, sy,
span.array->index );
if (changeBuffer)
_swrast_use_draw_buffer(ctx);
span.y = dy;
span.end = width;
if (zoom)
- _mesa_write_zoomed_index_span(ctx, &span, desty, 0);
+ _swrast_write_zoomed_index_span(ctx, &span, desty, 0);
else
- _mesa_write_index_span(ctx, &span);
+ _swrast_write_index_span(ctx, &span);
}
if (overlapping)
overlapping = regions_overlap(srcx, srcy, destx, desty, width, height,
ctx->Pixel.ZoomX, ctx->Pixel.ZoomY);
- _mesa_span_default_color(ctx, &span);
+ _swrast_span_default_color(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
if (overlapping) {
GLint ssy = sy;
}
p = tmpImage;
for (j = 0; j < height; j++, ssy += stepy) {
- _mesa_read_depth_span_float(ctx, width, srcx, ssy, p);
+ _swrast_read_depth_span_float(ctx, width, srcx, ssy, p);
p += width;
}
p = tmpImage;
p += width;
}
else {
- _mesa_read_depth_span_float(ctx, width, srcx, sy, depth);
+ _swrast_read_depth_span_float(ctx, width, srcx, sy, depth);
}
/* apply scale and bias */
span.end = width;
if (ctx->Visual.rgbMode) {
if (zoom)
- _mesa_write_zoomed_rgba_span( ctx, &span,
+ _swrast_write_zoomed_rgba_span( ctx, &span,
(const GLchan (*)[4])span.array->rgba, desty, 0 );
else
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
}
else {
if (zoom)
- _mesa_write_zoomed_index_span( ctx, &span, desty, 0 );
+ _swrast_write_zoomed_index_span( ctx, &span, desty, 0 );
else
- _mesa_write_index_span(ctx, &span);
+ _swrast_write_index_span(ctx, &span);
}
}
}
p = tmpImage;
for (j = 0; j < height; j++, ssy += stepy) {
- _mesa_read_stencil_span( ctx, width, srcx, ssy, p );
+ _swrast_read_stencil_span( ctx, width, srcx, ssy, p );
p += width;
}
p = tmpImage;
p += width;
}
else {
- _mesa_read_stencil_span( ctx, width, srcx, sy, stencil );
+ _swrast_read_stencil_span( ctx, width, srcx, sy, stencil );
}
/* Apply shift, offset, look-up table */
/* Write stencil values */
if (zoom) {
- _mesa_write_zoomed_stencil_span( ctx, width, destx, dy,
+ _swrast_write_zoomed_stencil_span( ctx, width, destx, dy,
stencil, desty, 0 );
}
else {
- _mesa_write_stencil_span( ctx, width, destx, dy, stencil );
+ _swrast_write_stencil_span( ctx, width, destx, dy, stencil );
}
}
-/* $Id: s_depth.c,v 1.25 2002/10/30 19:49:30 brianp Exp $ */
+/* $Id: s_depth.c,v 1.26 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Return address of depth buffer value for given window coord.
*/
GLvoid *
-_mesa_zbuffer_address(GLcontext *ctx, GLint x, GLint y)
+_swrast_zbuffer_address(GLcontext *ctx, GLint x, GLint y)
{
if (ctx->Visual.depthBits <= 16)
return (GLushort *) ctx->DrawBuffer->DepthBuffer
* \return approx number of pixels that passed (only zero is reliable)
*/
GLuint
-_mesa_depth_test_span( GLcontext *ctx, struct sw_span *span)
+_swrast_depth_test_span( GLcontext *ctx, struct sw_span *span)
{
if (span->arrayMask & SPAN_XY)
return depth_test_pixels(ctx, span);
* This function does clipping before calling the device driver function.
*/
void
-_mesa_read_depth_span( GLcontext *ctx,
+_swrast_read_depth_span( GLcontext *ctx,
GLint n, GLint x, GLint y, GLdepth depth[] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
* Output: depth - the array of depth values
*/
void
-_mesa_read_depth_span_float( GLcontext *ctx,
+_swrast_read_depth_span_float( GLcontext *ctx,
GLint n, GLint x, GLint y, GLfloat depth[] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
* This function is only called through Driver.alloc_depth_buffer.
*/
void
-_mesa_alloc_depth_buffer( GLframebuffer *buffer )
+_swrast_alloc_depth_buffer( GLframebuffer *buffer )
{
GLint bytesPerValue;
* This function is only called through Driver.clear_depth_buffer.
*/
void
-_mesa_clear_depth_buffer( GLcontext *ctx )
+_swrast_clear_depth_buffer( GLcontext *ctx )
{
if (ctx->Visual.depthBits == 0
|| !ctx->DrawBuffer->DepthBuffer
-/* $Id: s_depth.h,v 1.7 2003/02/23 04:10:54 brianp Exp $ */
+/* $Id: s_depth.h,v 1.8 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern GLvoid *
-_mesa_zbuffer_address(GLcontext *ctx, GLint x, GLint y);
+_swrast_zbuffer_address(GLcontext *ctx, GLint x, GLint y);
extern GLuint
-_mesa_depth_test_span( GLcontext *ctx, struct sw_span *span);
+_swrast_depth_test_span( GLcontext *ctx, struct sw_span *span);
extern void
-_mesa_read_depth_span( GLcontext *ctx,
+_swrast_read_depth_span( GLcontext *ctx,
GLint n, GLint x, GLint y, GLdepth depth[] );
extern void
-_mesa_read_depth_span_float( GLcontext *ctx, GLint n, GLint x, GLint y,
+_swrast_read_depth_span_float( GLcontext *ctx, GLint n, GLint x, GLint y,
GLfloat depth[] );
extern void
-_mesa_alloc_depth_buffer( GLframebuffer *buffer );
+_swrast_alloc_depth_buffer( GLframebuffer *buffer );
extern void
-_mesa_clear_depth_buffer( GLcontext *ctx );
+_swrast_clear_depth_buffer( GLcontext *ctx );
#endif
-/* $Id: s_drawpix.c,v 1.46 2003/03/01 01:50:25 brianp Exp $ */
+/* $Id: s_drawpix.c,v 1.47 2003/03/25 02:23:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
* GL_FALSE if image was completely clipped away (draw nothing)
*/
GLboolean
-_mesa_clip_pixelrect(const GLcontext *ctx,
+_swrast_clip_pixelrect(const GLcontext *ctx,
GLint *destX, GLint *destY,
GLsizei *width, GLsizei *height,
GLint *skipPixels, GLint *skipRows)
}
if (ctx->Depth.Test)
- _mesa_span_default_z(ctx, &span);
+ _swrast_span_default_z(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
if (ctx->Texture._EnabledUnits)
- _mesa_span_default_texcoords(ctx, &span);
+ _swrast_span_default_texcoords(ctx, &span);
if ((SWRAST_CONTEXT(ctx)->_RasterMask & ~CLIP_BIT) == 0
&& ctx->Texture._EnabledUnits == 0
rowLength = width;
/* If we're not using pixel zoom then do all clipping calculations
- * now. Otherwise, we'll let the _mesa_write_zoomed_*_span() functions
+ * now. Otherwise, we'll let the _swrast_write_zoomed_*_span() functions
* handle the clipping.
*/
if (ctx->Pixel.ZoomX==1.0F && ctx->Pixel.ZoomY==1.0F) {
span.x = destX;
span.y = destY;
span.end = drawWidth;
- _mesa_write_zoomed_rgba_span(ctx, &span,
+ _swrast_write_zoomed_rgba_span(ctx, &span,
(CONST GLchan (*)[4]) src, zoomY0, 0);
src += rowLength * 4;
destY++;
span.x = destX;
span.y = destY;
span.end = drawWidth;
- _mesa_write_zoomed_rgb_span(ctx, &span,
+ _swrast_write_zoomed_rgb_span(ctx, &span,
(CONST GLchan (*)[3]) src, zoomY0, 0);
src += rowLength * 3;
destY++;
span.x = destX;
span.y = destY;
span.end = drawWidth;
- _mesa_write_zoomed_rgb_span(ctx, &span,
+ _swrast_write_zoomed_rgb_span(ctx, &span,
(CONST GLchan (*)[3]) span.array->rgb, zoomY0, 0);
src += rowLength;
destY++;
span.x = destX;
span.y = destY;
span.end = drawWidth;
- _mesa_write_zoomed_rgba_span(ctx, &span,
+ _swrast_write_zoomed_rgba_span(ctx, &span,
(CONST GLchan (*)[4]) span.array->rgba, zoomY0, 0);
src += rowLength*2;
destY++;
span.x = destX;
span.y = destY;
span.end = drawWidth;
- _mesa_write_zoomed_rgba_span(ctx, &span,
+ _swrast_write_zoomed_rgba_span(ctx, &span,
(CONST GLchan (*)[4]) span.array->rgba, zoomY0, 0);
src += rowLength;
destY++;
INIT_SPAN(span, GL_BITMAP, 0, 0, SPAN_INDEX);
if (ctx->Depth.Test)
- _mesa_span_default_z(ctx, &span);
+ _swrast_span_default_z(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
/*
* General solution
span.end = spanEnd;
if (zoom)
- _mesa_write_zoomed_index_span(ctx, &span, y, skipPixels);
+ _swrast_write_zoomed_index_span(ctx, &span, y, skipPixels);
else
- _mesa_write_index_span(ctx, &span);
+ _swrast_write_index_span(ctx, &span);
}
skipPixels += spanEnd;
}
}
if (zoom) {
- _mesa_write_zoomed_stencil_span(ctx, (GLuint) spanWidth,
+ _swrast_write_zoomed_stencil_span(ctx, (GLuint) spanWidth,
spanX, spanY, values, desty, 0);
}
else {
- _mesa_write_stencil_span(ctx, (GLuint) spanWidth,
+ _swrast_write_stencil_span(ctx, (GLuint) spanWidth,
spanX, spanY, values);
}
}
return;
}
- _mesa_span_default_color(ctx, &span);
+ _swrast_span_default_color(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
if (ctx->Texture._EnabledUnits)
- _mesa_span_default_texcoords(ctx, &span);
+ _swrast_span_default_texcoords(ctx, &span);
if (type == GL_UNSIGNED_SHORT && ctx->Visual.depthBits == 16
&& !bias_or_scale && !zoom && ctx->Visual.rgbMode
GLint i;
for (i = 0; i < width; i++)
span.array->z[i] = zptr[i];
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
}
}
else if (type == GL_UNSIGNED_INT && ctx->Visual.depthBits == 32
_mesa_image_address(&ctx->Unpack, pixels, width, height,
GL_DEPTH_COMPONENT, type, 0, row, 0);
MEMCPY(span.array->z, zptr, width * sizeof(GLdepth));
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
}
}
else {
GL_DEPTH_COMPONENT, type,
0, row, skipPixels);
- /* Set these for each row since the _mesa_write_* function may
+ /* Set these for each row since the _swrast_write_* function may
* change them while clipping.
*/
span.x = spanX;
}
if (ctx->Visual.rgbMode) {
if (zoom) {
- _mesa_write_zoomed_rgba_span(ctx, &span,
+ _swrast_write_zoomed_rgba_span(ctx, &span,
(const GLchan (*)[4]) span.array->rgba,
desty, skipPixels);
}
else
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
}
else {
if (zoom)
- _mesa_write_zoomed_index_span(ctx, &span, desty, 0);
+ _swrast_write_zoomed_index_span(ctx, &span, desty, 0);
else
- _mesa_write_index_span(ctx, &span);
+ _swrast_write_index_span(ctx, &span);
}
}
skipPixels += spanEnd;
return;
if (ctx->Depth.Test)
- _mesa_span_default_z(ctx, &span);
+ _swrast_span_default_z(ctx, &span);
if (ctx->Fog.Enabled)
- _mesa_span_default_fog(ctx, &span);
+ _swrast_span_default_fog(ctx, &span);
if (ctx->Texture._EnabledUnits)
- _mesa_span_default_texcoords(ctx, &span);
+ _swrast_span_default_texcoords(ctx, &span);
if (SWRAST_CONTEXT(ctx)->_RasterMask == 0 && !zoom && x >= 0 && y >= 0
&& x + width <= (GLint) ctx->DrawBuffer->Width
const GLvoid *source = _mesa_image_address(unpack,
pixels, width, height, format, type, 0, row, skipPixels);
- /* Set these for each row since the _mesa_write_* function may
+ /* Set these for each row since the _swrast_write_* function may
* change them while clipping.
*/
span.x = spanX;
(CONST GLchan (*)[4]) span.array->rgba, NULL);
}
else if (zoom) {
- _mesa_write_zoomed_rgba_span(ctx, &span,
+ _swrast_write_zoomed_rgba_span(ctx, &span,
(CONST GLchan (*)[4]) span.array->rgba, desty, skipPixels);
}
else {
- _mesa_write_rgba_span(ctx, &span);
+ _swrast_write_rgba_span(ctx, &span);
}
}
-/* $Id: s_drawpix.h,v 1.3 2001/03/12 00:48:42 gareth Exp $ */
+/* $Id: s_drawpix.h,v 1.4 2003/03/25 02:23:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern GLboolean
-_mesa_clip_pixelrect(const GLcontext *ctx,
+_swrast_clip_pixelrect(const GLcontext *ctx,
GLint *destX, GLint *destY,
GLsizei *width, GLsizei *height,
GLint *skipPixels, GLint *skipRows);
-/* $Id: s_feedback.c,v 1.10 2003/03/01 01:50:25 brianp Exp $ */
+/* $Id: s_feedback.c,v 1.11 2003/03/25 02:23:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
/*
* Put triangle in feedback buffer.
*/
-void _mesa_feedback_triangle( GLcontext *ctx,
+void _swrast_feedback_triangle( GLcontext *ctx,
const SWvertex *v0,
const SWvertex *v1,
const SWvertex *v2)
{
- if (_mesa_cull_triangle( ctx, v0, v1, v2 )) {
+ if (_swrast_culltriangle( ctx, v0, v1, v2 )) {
FEEDBACK_TOKEN( ctx, (GLfloat) (GLint) GL_POLYGON_TOKEN );
FEEDBACK_TOKEN( ctx, (GLfloat) 3 ); /* three vertices */
}
-void _mesa_feedback_line( GLcontext *ctx, const SWvertex *v0, const SWvertex *v1 )
+void _swrast_feedback_line( GLcontext *ctx, const SWvertex *v0, const SWvertex *v1 )
{
GLenum token = GL_LINE_TOKEN;
SWcontext *swrast = SWRAST_CONTEXT(ctx);
}
-void _mesa_feedback_point( GLcontext *ctx, const SWvertex *v )
+void _swrast_feedback_point( GLcontext *ctx, const SWvertex *v )
{
FEEDBACK_TOKEN( ctx, (GLfloat) (GLint) GL_POINT_TOKEN );
feedback_vertex( ctx, v, v );
}
-void _mesa_select_triangle( GLcontext *ctx,
+void _swrast_select_triangle( GLcontext *ctx,
const SWvertex *v0,
const SWvertex *v1,
const SWvertex *v2)
{
- if (_mesa_cull_triangle( ctx, v0, v1, v2 )) {
+ if (_swrast_culltriangle( ctx, v0, v1, v2 )) {
const GLfloat zs = 1.0F / ctx->DepthMaxF;
_mesa_update_hitflag( ctx, v0->win[2] * zs );
}
-void _mesa_select_line( GLcontext *ctx, const SWvertex *v0, const SWvertex *v1 )
+void _swrast_select_line( GLcontext *ctx, const SWvertex *v0, const SWvertex *v1 )
{
const GLfloat zs = 1.0F / ctx->DepthMaxF;
_mesa_update_hitflag( ctx, v0->win[2] * zs );
}
-void _mesa_select_point( GLcontext *ctx, const SWvertex *v )
+void _swrast_select_point( GLcontext *ctx, const SWvertex *v )
{
const GLfloat zs = 1.0F / ctx->DepthMaxF;
_mesa_update_hitflag( ctx, v->win[2] * zs );
-/* $Id: s_feedback.h,v 1.5 2001/03/12 00:48:42 gareth Exp $ */
+/* $Id: s_feedback.h,v 1.6 2003/03/25 02:23:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
#include "swrast.h"
-extern void _mesa_feedback_point( GLcontext *ctx, const SWvertex *v );
+extern void _swrast_feedback_point( GLcontext *ctx, const SWvertex *v );
-extern void _mesa_feedback_line( GLcontext *ctx,
+extern void _swrast_feedback_line( GLcontext *ctx,
const SWvertex *v1, const SWvertex *v2 );
-extern void _mesa_feedback_triangle( GLcontext *ctx, const SWvertex *v0,
+extern void _swrast_feedback_triangle( GLcontext *ctx, const SWvertex *v0,
const SWvertex *v1, const SWvertex *v2 );
-extern void _mesa_select_point( GLcontext *ctx, const SWvertex *v );
+extern void _swrast_select_point( GLcontext *ctx, const SWvertex *v );
-extern void _mesa_select_line( GLcontext *ctx,
+extern void _swrast_select_line( GLcontext *ctx,
const SWvertex *v1, const SWvertex *v2 );
-extern void _mesa_select_triangle( GLcontext *ctx, const SWvertex *v0,
+extern void _swrast_select_triangle( GLcontext *ctx, const SWvertex *v0,
const SWvertex *v1, const SWvertex *v2 );
#endif
-/* $Id: s_fog.c,v 1.24 2003/03/01 01:50:25 brianp Exp $ */
+/* $Id: s_fog.c,v 1.25 2003/03/25 02:23:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Used to convert current raster distance to a fog factor in [0,1].
*/
GLfloat
-_mesa_z_to_fogfactor(GLcontext *ctx, GLfloat z)
+_swrast_z_to_fogfactor(GLcontext *ctx, GLfloat z)
{
GLfloat d, f;
f = (GLfloat) exp(-(d * d * z * z));
return f;
default:
- _mesa_problem(ctx, "Bad fog mode in _mesa_z_to_fogfactor");
+ _mesa_problem(ctx, "Bad fog mode in _swrast_z_to_fogfactor");
return 0.0;
}
}
* fog factors per vertex.
*/
void
-_mesa_fog_rgba_span( const GLcontext *ctx, struct sw_span *span )
+_swrast_fog_rgba_span( const GLcontext *ctx, struct sw_span *span )
{
const SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLuint n = span->end;
if (swrast->_PreferPixelFog) {
/* compute fog factor from each fragment's Z value */
if ((span->interpMask & SPAN_Z) && (span->arrayMask & SPAN_Z) == 0)
- _mesa_span_interpolate_z(ctx, span);
+ _swrast_span_interpolate_z(ctx, span);
compute_fog_factors_from_z(ctx, n, span->array->z, span->array->fog);
span->arrayMask |= SPAN_FOG;
}
* As above, but color index mode.
*/
void
-_mesa_fog_ci_span( const GLcontext *ctx, struct sw_span *span )
+_swrast_fog_ci_span( const GLcontext *ctx, struct sw_span *span )
{
const SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLuint n = span->end;
if (swrast->_PreferPixelFog) {
/* compute fog factor from each fragment's Z value */
if ((span->interpMask & SPAN_Z) && (span->arrayMask & SPAN_Z) == 0)
- _mesa_span_interpolate_z(ctx, span);
+ _swrast_span_interpolate_z(ctx, span);
compute_fog_factors_from_z(ctx, n, span->array->z, span->array->fog);
span->arrayMask |= SPAN_FOG;
}
-/* $Id: s_fog.h,v 1.9 2002/02/17 17:30:58 brianp Exp $ */
+/* $Id: s_fog.h,v 1.10 2003/03/25 02:23:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern GLfloat
-_mesa_z_to_fogfactor(GLcontext *ctx, GLfloat z);
+_swrast_z_to_fogfactor(GLcontext *ctx, GLfloat z);
extern void
-_mesa_fog_rgba_span( const GLcontext *ctx, struct sw_span *span );
+_swrast_fog_rgba_span( const GLcontext *ctx, struct sw_span *span );
extern void
-_mesa_fog_ci_span( const GLcontext *ctx, struct sw_span *span );
+_swrast_fog_ci_span( const GLcontext *ctx, struct sw_span *span );
#endif
-/* $Id: s_imaging.c,v 1.6 2002/07/09 01:22:52 brianp Exp $ */
+/* $Id: s_imaging.c,v 1.7 2003/03/25 02:23:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
width = MAX_WIDTH;
/* read the data from framebuffer */
- _mesa_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y, data );
+ _swrast_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y, data );
/* Restore reading from draw buffer (the default) */
_swrast_use_draw_buffer(ctx);
width = MAX_WIDTH;
/* read the data from framebuffer */
- _mesa_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y, data );
+ _swrast_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y, data );
/* Restore reading from draw buffer (the default) */
_swrast_use_draw_buffer(ctx);
RENDER_START( swrast, ctx );
/* read the data from framebuffer */
- _mesa_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y,
+ _swrast_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y,
(GLchan (*)[4]) rgba );
RENDER_FINISH( swrast, ctx );
/* read pixels from framebuffer */
for (i = 0; i < height; i++) {
- _mesa_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y + i,
+ _swrast_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y + i,
(GLchan (*)[4]) rgba[i] );
}
-/* $Id: s_lines.c,v 1.35 2003/03/01 01:50:25 brianp Exp $ */
+/* $Id: s_lines.c,v 1.36 2003/03/25 02:23:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
y[i]++;
}
if ((span->interpMask | span->arrayMask) & SPAN_TEXTURE)
- _mesa_write_texture_span(ctx, span);
+ _swrast_write_texture_span(ctx, span);
else if ((span->interpMask | span->arrayMask) & SPAN_RGBA)
- _mesa_write_rgba_span(ctx, span);
+ _swrast_write_rgba_span(ctx, span);
else
- _mesa_write_index_span(ctx, span);
+ _swrast_write_index_span(ctx, span);
}
}
else {
x[i]++;
}
if ((span->interpMask | span->arrayMask) & SPAN_TEXTURE)
- _mesa_write_texture_span(ctx, span);
+ _swrast_write_texture_span(ctx, span);
else if ((span->interpMask | span->arrayMask) & SPAN_RGBA)
- _mesa_write_rgba_span(ctx, span);
+ _swrast_write_rgba_span(ctx, span);
else
- _mesa_write_index_span(ctx, span);
+ _swrast_write_index_span(ctx, span);
}
}
}
/* Simple color index line (no stipple, width=1, no Z, no fog, no tex)*/
#define NAME simple_ci_line
#define INTERP_INDEX
-#define RENDER_SPAN(span) _mesa_write_index_span(ctx, &span)
+#define RENDER_SPAN(span) _swrast_write_index_span(ctx, &span)
#include "s_linetemp.h"
/* Simple RGBA index line (no stipple, width=1, no Z, no fog, no tex)*/
#define NAME simple_rgba_line
#define INTERP_RGBA
-#define RENDER_SPAN(span) _mesa_write_rgba_span(ctx, &span);
+#define RENDER_SPAN(span) _swrast_write_rgba_span(ctx, &span);
#include "s_linetemp.h"
draw_wide_line(ctx, &span, dx > dy); \
} \
else { \
- _mesa_write_index_span(ctx, &span); \
+ _swrast_write_index_span(ctx, &span); \
}
#include "s_linetemp.h"
draw_wide_line(ctx, &span, dx > dy); \
} \
else { \
- _mesa_write_rgba_span(ctx, &span); \
+ _swrast_write_rgba_span(ctx, &span); \
}
#include "s_linetemp.h"
draw_wide_line(ctx, &span, dx > dy); \
} \
else { \
- _mesa_write_texture_span(ctx, &span); \
+ _swrast_write_texture_span(ctx, &span); \
}
#include "s_linetemp.h"
draw_wide_line(ctx, &span, dx > dy); \
} \
else { \
- _mesa_write_texture_span(ctx, &span); \
+ _swrast_write_texture_span(ctx, &span); \
}
#include "s_linetemp.h"
}
}
else if (ctx->RenderMode == GL_FEEDBACK) {
- USE(_mesa_feedback_line);
+ USE(_swrast_feedback_line);
}
else {
ASSERT(ctx->RenderMode == GL_SELECT);
- USE(_mesa_select_line);
+ USE(_swrast_select_line);
}
/*_mesa_print_line_function(ctx);*/
-/* $Id: s_linetemp.h,v 1.17 2003/02/25 19:26:01 brianp Exp $ */
+/* $Id: s_linetemp.h,v 1.18 2003/03/25 02:23:46 brianp Exp $ */
/*
* Mesa 3-D graphics library
return;
#ifdef DEPTH_TYPE
- zPtr = (DEPTH_TYPE *) _mesa_zbuffer_address(ctx, x0, y0);
+ zPtr = (DEPTH_TYPE *) _swrast_zbuffer_address(ctx, x0, y0);
#endif
#ifdef PIXEL_ADDRESS
pixelPtr = (PIXEL_TYPE *) PIXEL_ADDRESS(x0,y0);
-/* $Id: s_logic.c,v 1.12 2002/10/24 23:57:24 brianp Exp $ */
+/* $Id: s_logic.c,v 1.13 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
* used if the device driver can't do logic ops.
*/
void
-_mesa_logicop_ci_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_logicop_ci_span( GLcontext *ctx, const struct sw_span *span,
GLuint index[] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
* pixel coordinates.
*/
void
-_mesa_logicop_rgba_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_logicop_rgba_span( GLcontext *ctx, const struct sw_span *span,
GLchan rgba[][4] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
span->array->x, span->array->y,
dest, span->array->mask);
if (SWRAST_CONTEXT(ctx)->_RasterMask & ALPHABUF_BIT) {
- _mesa_read_alpha_pixels(ctx, span->end,
+ _swrast_read_alpha_pixels(ctx, span->end,
span->array->x, span->array->y,
dest, span->array->mask);
}
}
else {
- _mesa_read_rgba_span(ctx, ctx->DrawBuffer, span->end,
+ _swrast_read_rgba_span(ctx, ctx->DrawBuffer, span->end,
span->x, span->y, dest);
}
-/* $Id: s_logic.h,v 1.5 2002/02/02 21:40:33 brianp Exp $ */
+/* $Id: s_logic.h,v 1.6 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern void
-_mesa_logicop_ci_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_logicop_ci_span( GLcontext *ctx, const struct sw_span *span,
GLuint index[] );
extern void
-_mesa_logicop_rgba_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_logicop_rgba_span( GLcontext *ctx, const struct sw_span *span,
GLchan rgba[][4] );
-/* $Id: s_masking.c,v 1.8 2002/08/07 00:45:07 brianp Exp $ */
+/* $Id: s_masking.c,v 1.9 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
void
-_mesa_mask_rgba_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_mask_rgba_span( GLcontext *ctx, const struct sw_span *span,
GLchan rgba[][4] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
(*swrast->Driver.ReadRGBAPixels)(ctx, n, span->array->x, span->array->y,
dest, span->array->mask);
if (SWRAST_CONTEXT(ctx)->_RasterMask & ALPHABUF_BIT) {
- _mesa_read_alpha_pixels(ctx, n, span->array->x, span->array->y,
+ _swrast_read_alpha_pixels(ctx, n, span->array->x, span->array->y,
dest, span->array->mask);
}
}
else {
- _mesa_read_rgba_span(ctx, ctx->DrawBuffer, n, span->x, span->y, dest);
+ _swrast_read_rgba_span(ctx, ctx->DrawBuffer, n, span->x, span->y, dest);
}
#if CHAN_BITS == 8
* Apply glColorMask to a span of RGBA pixels.
*/
void
-_mesa_mask_rgba_array( GLcontext *ctx,
+_swrast_mask_rgba_array( GLcontext *ctx,
GLuint n, GLint x, GLint y, GLchan rgba[][4] )
{
GLchan dest[MAX_WIDTH][4];
GLuint *rgba32 = (GLuint *) rgba;
GLuint *dest32 = (GLuint *) dest;
- _mesa_read_rgba_span( ctx, ctx->DrawBuffer, n, x, y, dest );
+ _swrast_read_rgba_span( ctx, ctx->DrawBuffer, n, x, y, dest );
for (i = 0; i < n; i++) {
rgba32[i] = (rgba32[i] & srcMask) | (dest32[i] & dstMask);
}
const GLint bMask = ctx->Color.ColorMask[BCOMP];
const GLint aMask = ctx->Color.ColorMask[ACOMP];
- _mesa_read_rgba_span( ctx, ctx->DrawBuffer, n, x, y, dest );
+ _swrast_read_rgba_span( ctx, ctx->DrawBuffer, n, x, y, dest );
for (i = 0; i < n; i++) {
if (!rMask) rgba[i][RCOMP] = dest[i][RCOMP];
if (!gMask) rgba[i][GCOMP] = dest[i][GCOMP];
void
-_mesa_mask_index_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_mask_index_span( GLcontext *ctx, const struct sw_span *span,
GLuint index[] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
}
}
else {
- _mesa_read_index_span(ctx, ctx->DrawBuffer, span->end, span->x, span->y,
+ _swrast_read_index_span(ctx, ctx->DrawBuffer, span->end, span->x, span->y,
fbindexes );
for (i = 0; i < span->end; i++) {
* Apply glIndexMask to a span of CI pixels.
*/
void
-_mesa_mask_index_array( GLcontext *ctx,
+_swrast_mask_index_array( GLcontext *ctx,
GLuint n, GLint x, GLint y, GLuint index[] )
{
GLuint i;
GLuint fbindexes[MAX_WIDTH];
GLuint msrc, mdest;
- _mesa_read_index_span( ctx, ctx->DrawBuffer, n, x, y, fbindexes );
+ _swrast_read_index_span( ctx, ctx->DrawBuffer, n, x, y, fbindexes );
msrc = ctx->Color.IndexMask;
mdest = ~msrc;
-/* $Id: s_masking.h,v 1.5 2002/02/02 21:40:33 brianp Exp $ */
+/* $Id: s_masking.h,v 1.6 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Implement glColorMask for a span of RGBA pixels.
*/
extern void
-_mesa_mask_rgba_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_mask_rgba_span( GLcontext *ctx, const struct sw_span *span,
GLchan rgba[][4] );
extern void
-_mesa_mask_rgba_array( GLcontext *ctx, GLuint n, GLint x, GLint y,
+_swrast_mask_rgba_array( GLcontext *ctx, GLuint n, GLint x, GLint y,
GLchan rgba[][4] );
* Implement glIndexMask for a span of CI pixels.
*/
extern void
-_mesa_mask_index_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_mask_index_span( GLcontext *ctx, const struct sw_span *span,
GLuint index[] );
extern void
-_mesa_mask_index_array( GLcontext *ctx,
+_swrast_mask_index_array( GLcontext *ctx,
GLuint n, GLint x, GLint y, GLuint index[] );
-/* $Id: s_nvfragprog.c,v 1.11 2003/03/19 07:15:35 joukj Exp $ */
+/* $Id: s_nvfragprog.c,v 1.12 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
const GLfloat texH = (GLfloat) texImg->HeightScale;
GLchan rgba[4];
- GLfloat lambda = _mesa_compute_lambda(texdx[0], texdy[0], /* ds/dx, ds/dy */
+ GLfloat lambda = _swrast_compute_lambda(texdx[0], texdy[0], /* ds/dx, ds/dy */
texdx[1], texdy[1], /* dt/dx, dt/dy */
texdx[3], texdy[2], /* dq/dx, dq/dy */
texW, texH,
-/* $Id: s_points.c,v 1.20 2003/03/01 01:50:26 brianp Exp $ */
+/* $Id: s_points.c,v 1.21 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
}
}
else if (ctx->RenderMode==GL_FEEDBACK) {
- USE(_mesa_feedback_point);
+ USE(_swrast_feedback_point);
}
else {
/* GL_SELECT mode */
- USE(_mesa_select_point);
+ USE(_swrast_select_point);
}
}
-/* $Id: s_pointtemp.h,v 1.22 2003/01/14 04:55:46 brianp Exp $ */
+/* $Id: s_pointtemp.h,v 1.23 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
(swrast->_RasterMask & (BLEND_BIT | LOGIC_OP_BIT | MASKING_BIT))) {
#if FLAGS & (TEXTURE | SPRITE)
if (ctx->Texture._EnabledUnits)
- _mesa_write_texture_span(ctx, span);
+ _swrast_write_texture_span(ctx, span);
else
- _mesa_write_rgba_span(ctx, span);
+ _swrast_write_rgba_span(ctx, span);
#elif FLAGS & RGBA
- _mesa_write_rgba_span(ctx, span);
+ _swrast_write_rgba_span(ctx, span);
#else
- _mesa_write_index_span(ctx, span);
+ _swrast_write_index_span(ctx, span);
#endif
span->end = 0;
}
(swrast->_RasterMask & (BLEND_BIT | LOGIC_OP_BIT | MASKING_BIT))) {
#if FLAGS & (TEXTURE | SPRITE)
if (ctx->Texture._EnabledUnits)
- _mesa_write_texture_span(ctx, span);
+ _swrast_write_texture_span(ctx, span);
else
- _mesa_write_rgba_span(ctx, span);
+ _swrast_write_rgba_span(ctx, span);
#elif FLAGS & RGBA
- _mesa_write_rgba_span(ctx, span);
+ _swrast_write_rgba_span(ctx, span);
#else
- _mesa_write_index_span(ctx, span);
+ _swrast_write_index_span(ctx, span);
#endif
span->end = 0;
}
-/* $Id: s_readpix.c,v 1.17 2002/10/24 23:57:24 brianp Exp $ */
+/* $Id: s_readpix.c,v 1.18 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
GLushort *dst = (GLushort*) _mesa_image_address( packing, pixels,
width, height, GL_DEPTH_COMPONENT, type, 0, j, 0 );
GLint i;
- _mesa_read_depth_span(ctx, width, x, y, depth);
+ _swrast_read_depth_span(ctx, width, x, y, depth);
for (i = 0; i < width; i++)
dst[i] = depth[i];
}
for (j=0;j<height;j++,y++) {
GLdepth *dst = (GLdepth *) _mesa_image_address( packing, pixels,
width, height, GL_DEPTH_COMPONENT, type, 0, j, 0 );
- _mesa_read_depth_span(ctx, width, x, y, dst);
+ _swrast_read_depth_span(ctx, width, x, y, dst);
}
}
else {
GLfloat depth[MAX_WIDTH];
GLvoid *dest;
- _mesa_read_depth_span_float(ctx, readWidth, x, y, depth);
+ _swrast_read_depth_span_float(ctx, readWidth, x, y, depth);
dest = _mesa_image_address(packing, pixels, width, height,
GL_DEPTH_COMPONENT, type, 0, j, 0);
GLvoid *dest;
GLstencil stencil[MAX_WIDTH];
- _mesa_read_stencil_span(ctx, readWidth, x, y, stencil);
+ _swrast_read_stencil_span(ctx, readWidth, x, y, stencil);
dest = _mesa_image_address(packing, pixels, width, height,
GL_STENCIL_INDEX, type, 0, j, 0);
(*swrast->Driver.ReadRGBASpan)(ctx, readWidth, srcX, srcY,
(GLchan (*)[4]) dest);
if (ctx->DrawBuffer->UseSoftwareAlphaBuffers) {
- _mesa_read_alpha_span(ctx, readWidth, srcX, srcY,
+ _swrast_read_alpha_span(ctx, readWidth, srcX, srcY,
(GLchan (*)[4]) dest);
}
dest += rowLength * 4;
for (row = 0; row < height; row++, y++) {
GLchan rgba[MAX_WIDTH][4];
if (ctx->Visual.rgbMode) {
- _mesa_read_rgba_span(ctx, ctx->ReadBuffer, readWidth, x, y, rgba);
+ _swrast_read_rgba_span(ctx, ctx->ReadBuffer, readWidth, x, y, rgba);
}
else {
GLuint index[MAX_WIDTH];
GLchan rgba[MAX_WIDTH][4];
GLvoid *dst;
if (ctx->Visual.rgbMode) {
- _mesa_read_rgba_span(ctx, ctx->ReadBuffer, readWidth, x, y, rgba);
+ _swrast_read_rgba_span(ctx, ctx->ReadBuffer, readWidth, x, y, rgba);
}
else {
GLuint index[MAX_WIDTH];
-/* $Id: s_span.c,v 1.59 2003/03/16 22:02:37 brianp Exp $ */
+/* $Id: s_span.c,v 1.60 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Used during setup for glDraw/CopyPixels.
*/
void
-_mesa_span_default_z( GLcontext *ctx, struct sw_span *span )
+_swrast_span_default_z( GLcontext *ctx, struct sw_span *span )
{
if (ctx->Visual.depthBits <= 16)
span->z = FloatToFixed(ctx->Current.RasterPos[2] * ctx->DepthMax + 0.5F);
* Used during setup for glDraw/CopyPixels.
*/
void
-_mesa_span_default_fog( GLcontext *ctx, struct sw_span *span )
+_swrast_span_default_fog( GLcontext *ctx, struct sw_span *span )
{
- span->fog = _mesa_z_to_fogfactor(ctx, ctx->Current.RasterDistance);
+ span->fog = _swrast_z_to_fogfactor(ctx, ctx->Current.RasterDistance);
span->fogStep = span->dfogdx = span->dfogdy = 0.0F;
span->interpMask |= SPAN_FOG;
}
* Used during setup for glDraw/CopyPixels.
*/
void
-_mesa_span_default_color( GLcontext *ctx, struct sw_span *span )
+_swrast_span_default_color( GLcontext *ctx, struct sw_span *span )
{
if (ctx->Visual.rgbMode) {
GLchan r, g, b, a;
* Used during setup for glDraw/CopyPixels.
*/
void
-_mesa_span_default_texcoords( GLcontext *ctx, struct sw_span *span )
+_swrast_span_default_texcoords( GLcontext *ctx, struct sw_span *span )
{
GLuint i;
for (i = 0; i < ctx->Const.MaxTextureUnits; i++) {
/* Fill in the span.zArray array from the interpolation values */
void
-_mesa_span_interpolate_z( const GLcontext *ctx, struct sw_span *span )
+_swrast_span_interpolate_z( const GLcontext *ctx, struct sw_span *span )
{
const GLuint n = span->end;
GLuint i;
* This is a faster approximation
*/
GLfloat
-_mesa_compute_lambda(GLfloat dsdx, GLfloat dsdy, GLfloat dtdx, GLfloat dtdy,
+_swrast_compute_lambda(GLfloat dsdx, GLfloat dsdy, GLfloat dtdx, GLfloat dtdy,
GLfloat dqdx, GLfloat dqdy, GLfloat texW, GLfloat texH,
GLfloat s, GLfloat t, GLfloat q, GLfloat invQ)
{
texcoord[i][1] = t * invQ;
texcoord[i][2] = r * invQ;
texcoord[i][3] = q;
- lambda[i] = _mesa_compute_lambda(dsdx, dsdy, dtdx, dtdy,
+ lambda[i] = _swrast_compute_lambda(dsdx, dsdy, dtdx, dtdy,
dqdx, dqdy, texW, texH,
s, t, q, invQ);
s += dsdx;
GLuint i;
for (i = 0; i < span->end; i++) {
const GLfloat invQ = (q == 0.0F) ? 1.0F : (1.0F / q);
- lambda[i] = _mesa_compute_lambda(dsdx, dsdy, dtdx, dtdy,
+ lambda[i] = _swrast_compute_lambda(dsdx, dsdy, dtdx, dtdy,
dqdx, dqdy, texW, texH,
s, t, q, invQ);
texcoord[i][0] = s * invQ;
MEMCPY( indexTmp, span->array->index, span->end * sizeof(GLuint) );
if (ctx->Color.IndexLogicOpEnabled) {
- _mesa_logicop_ci_span(ctx, span, indexTmp);
+ _swrast_logicop_ci_span(ctx, span, indexTmp);
}
if (ctx->Color.IndexMask != 0xffffffff) {
- _mesa_mask_index_span(ctx, span, indexTmp);
+ _swrast_mask_index_span(ctx, span, indexTmp);
}
if (span->arrayMask & SPAN_XY) {
MEMCPY( rgbaTmp, span->array->rgba, 4 * span->end * sizeof(GLchan) );
if (ctx->Color.ColorLogicOpEnabled) {
- _mesa_logicop_rgba_span(ctx, span, rgbaTmp);
+ _swrast_logicop_rgba_span(ctx, span, rgbaTmp);
}
else if (ctx->Color.BlendEnabled) {
- _mesa_blend_span(ctx, span, rgbaTmp);
+ _swrast_blend_span(ctx, span, rgbaTmp);
}
if (colorMask != 0xffffffff) {
- _mesa_mask_rgba_span(ctx, span, rgbaTmp);
+ _swrast_mask_rgba_span(ctx, span, rgbaTmp);
}
if (span->arrayMask & SPAN_XY) {
(const GLchan (*)[4]) rgbaTmp,
span->array->mask);
if (SWRAST_CONTEXT(ctx)->_RasterMask & ALPHABUF_BIT) {
- _mesa_write_alpha_pixels(ctx, span->end,
+ _swrast_write_alpha_pixels(ctx, span->end,
span->array->x, span->array->y,
(const GLchan (*)[4]) rgbaTmp,
span->array->mask);
(const GLchan (*)[4]) rgbaTmp,
span->array->mask);
if (swrast->_RasterMask & ALPHABUF_BIT) {
- _mesa_write_alpha_span(ctx, span->end, span->x, span->y,
+ _swrast_write_alpha_span(ctx, span->end, span->x, span->y,
(const GLchan (*)[4]) rgbaTmp,
span->array->mask);
}
* to their original values before returning.
*/
void
-_mesa_write_index_span( GLcontext *ctx, struct sw_span *span)
+_swrast_write_index_span( GLcontext *ctx, struct sw_span *span)
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLuint origInterpMask = span->interpMask;
/* Depth test and stencil */
if (ctx->Depth.Test || ctx->Stencil.Enabled) {
if (span->interpMask & SPAN_Z)
- _mesa_span_interpolate_z(ctx, span);
+ _swrast_span_interpolate_z(ctx, span);
if (ctx->Stencil.Enabled) {
- if (!_mesa_stencil_and_ztest_span(ctx, span)) {
+ if (!_swrast_stencil_and_ztest_span(ctx, span)) {
span->arrayMask = origArrayMask;
return;
}
}
else {
ASSERT(ctx->Depth.Test);
- if (!_mesa_depth_test_span(ctx, span)) {
+ if (!_swrast_depth_test_span(ctx, span)) {
span->arrayMask = origArrayMask;
return;
}
/* Fog */
if (ctx->Fog.Enabled) {
- _mesa_fog_ci_span(ctx, span);
+ _swrast_fog_ci_span(ctx, span);
}
/* Antialias coverage application */
else {
/* normal situation: draw to exactly one buffer */
if (ctx->Color.IndexLogicOpEnabled) {
- _mesa_logicop_ci_span(ctx, span, span->array->index);
+ _swrast_logicop_ci_span(ctx, span, span->array->index);
}
if (ctx->Color.IndexMask != 0xffffffff) {
- _mesa_mask_index_span(ctx, span, span->array->index);
+ _swrast_mask_index_span(ctx, span, span->array->index);
}
/* write pixels */
* to their original values before returning.
*/
void
-_mesa_write_rgba_span( GLcontext *ctx, struct sw_span *span)
+_swrast_write_rgba_span( GLcontext *ctx, struct sw_span *span)
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
const GLuint colorMask = *((GLuint *) ctx->Color.ColorMask);
/* Do the alpha test */
if (ctx->Color.AlphaEnabled) {
- if (!_mesa_alpha_test(ctx, span)) {
+ if (!_swrast_alpha_test(ctx, span)) {
span->interpMask = origInterpMask;
span->arrayMask = origArrayMask;
return;
/* Stencil and Z testing */
if (ctx->Stencil.Enabled || ctx->Depth.Test) {
if (span->interpMask & SPAN_Z)
- _mesa_span_interpolate_z(ctx, span);
+ _swrast_span_interpolate_z(ctx, span);
if (ctx->Stencil.Enabled) {
- if (!_mesa_stencil_and_ztest_span(ctx, span)) {
+ if (!_swrast_stencil_and_ztest_span(ctx, span)) {
span->interpMask = origInterpMask;
span->arrayMask = origArrayMask;
return;
ASSERT(ctx->Depth.Test);
ASSERT(span->arrayMask & SPAN_Z);
/* regular depth testing */
- if (!_mesa_depth_test_span(ctx, span)) {
+ if (!_swrast_depth_test_span(ctx, span)) {
span->interpMask = origInterpMask;
span->arrayMask = origArrayMask;
return;
/* Fog */
if (ctx->Fog.Enabled) {
- _mesa_fog_rgba_span(ctx, span);
+ _swrast_fog_rgba_span(ctx, span);
monoColor = GL_FALSE;
}
else {
/* normal: write to exactly one buffer */
if (ctx->Color.ColorLogicOpEnabled) {
- _mesa_logicop_rgba_span(ctx, span, span->array->rgba);
+ _swrast_logicop_rgba_span(ctx, span, span->array->rgba);
monoColor = GL_FALSE;
}
else if (ctx->Color.BlendEnabled) {
- _mesa_blend_span(ctx, span, span->array->rgba);
+ _swrast_blend_span(ctx, span, span->array->rgba);
monoColor = GL_FALSE;
}
/* Color component masking */
if (colorMask != 0xffffffff) {
- _mesa_mask_rgba_span(ctx, span, span->array->rgba);
+ _swrast_mask_rgba_span(ctx, span, span->array->rgba);
monoColor = GL_FALSE;
}
(*swrast->Driver.WriteRGBAPixels)(ctx, span->end, span->array->x,
span->array->y, (const GLchan (*)[4]) span->array->rgba, span->array->mask);
if (SWRAST_CONTEXT(ctx)->_RasterMask & ALPHABUF_BIT) {
- _mesa_write_alpha_pixels(ctx, span->end,
+ _swrast_write_alpha_pixels(ctx, span->end,
span->array->x, span->array->y,
(const GLchan (*)[4]) span->array->rgba,
span->array->mask);
(*swrast->Driver.WriteMonoRGBASpan)(ctx, span->end, span->x,
span->y, color, span->array->mask);
if (swrast->_RasterMask & ALPHABUF_BIT) {
- _mesa_write_mono_alpha_span(ctx, span->end, span->x, span->y,
+ _swrast_write_mono_alpha_span(ctx, span->end, span->x, span->y,
color[ACOMP],
span->writeAll ? ((const GLubyte *) NULL) : span->array->mask);
}
(const GLchan (*)[4]) span->array->rgba,
span->writeAll ? ((const GLubyte *) NULL) : span->array->mask);
if (swrast->_RasterMask & ALPHABUF_BIT) {
- _mesa_write_alpha_span(ctx, span->end, span->x, span->y,
+ _swrast_write_alpha_span(ctx, span->end, span->x, span->y,
(const GLchan (*)[4]) span->array->rgba,
span->writeAll ? ((const GLubyte *) NULL) : span->array->mask);
}
* to their original values before returning.
*/
void
-_mesa_write_texture_span( GLcontext *ctx, struct sw_span *span)
+_swrast_write_texture_span( GLcontext *ctx, struct sw_span *span)
{
const GLuint colorMask = *((GLuint *) ctx->Color.ColorMask);
SWcontext *swrast = SWRAST_CONTEXT(ctx);
_swrast_texture_span( ctx, span );
/* Do the alpha test */
- if (!_mesa_alpha_test(ctx, span)) {
+ if (!_swrast_alpha_test(ctx, span)) {
span->arrayMask = origArrayMask;
return;
}
/* Stencil and Z testing */
if (ctx->Stencil.Enabled || ctx->Depth.Test) {
if (span->interpMask & SPAN_Z)
- _mesa_span_interpolate_z(ctx, span);
+ _swrast_span_interpolate_z(ctx, span);
if (ctx->Stencil.Enabled) {
- if (!_mesa_stencil_and_ztest_span(ctx, span)) {
+ if (!_swrast_stencil_and_ztest_span(ctx, span)) {
span->arrayMask = origArrayMask;
return;
}
ASSERT(ctx->Depth.Test);
ASSERT(span->arrayMask & SPAN_Z);
/* regular depth testing */
- if (!_mesa_depth_test_span(ctx, span)) {
+ if (!_swrast_depth_test_span(ctx, span)) {
span->arrayMask = origArrayMask;
return;
}
/* Fog */
if (ctx->Fog.Enabled) {
- _mesa_fog_rgba_span(ctx, span);
+ _swrast_fog_rgba_span(ctx, span);
}
/* Antialias coverage application */
else {
/* normal: write to exactly one buffer */
if (ctx->Color.ColorLogicOpEnabled) {
- _mesa_logicop_rgba_span(ctx, span, span->array->rgba);
+ _swrast_logicop_rgba_span(ctx, span, span->array->rgba);
}
else if (ctx->Color.BlendEnabled) {
- _mesa_blend_span(ctx, span, span->array->rgba);
+ _swrast_blend_span(ctx, span, span->array->rgba);
}
if (colorMask != 0xffffffff) {
- _mesa_mask_rgba_span(ctx, span, span->array->rgba);
+ _swrast_mask_rgba_span(ctx, span, span->array->rgba);
}
(*swrast->Driver.WriteRGBAPixels)(ctx, span->end, span->array->x,
span->array->y, (const GLchan (*)[4]) span->array->rgba, span->array->mask);
if (SWRAST_CONTEXT(ctx)->_RasterMask & ALPHABUF_BIT) {
- _mesa_write_alpha_pixels(ctx, span->end,
+ _swrast_write_alpha_pixels(ctx, span->end,
span->array->x, span->array->y,
(const GLchan (*)[4]) span->array->rgba,
span->array->mask);
(const GLchan (*)[4]) span->array->rgba,
span->writeAll ? NULL : span->array->mask);
if (swrast->_RasterMask & ALPHABUF_BIT) {
- _mesa_write_alpha_span(ctx, span->end, span->x, span->y,
+ _swrast_write_alpha_span(ctx, span->end, span->x, span->y,
(const GLchan (*)[4]) span->array->rgba,
span->writeAll ? NULL : span->array->mask);
}
* reading ouside the buffer's boundaries.
*/
void
-_mesa_read_rgba_span( GLcontext *ctx, GLframebuffer *buffer,
+_swrast_read_rgba_span( GLcontext *ctx, GLframebuffer *buffer,
GLuint n, GLint x, GLint y, GLchan rgba[][4] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
(*swrast->Driver.ReadRGBASpan)( ctx, length, x + skip, y, rgba + skip );
if (buffer->UseSoftwareAlphaBuffers) {
- _mesa_read_alpha_span(ctx, length, x + skip, y, rgba + skip);
+ _swrast_read_alpha_span(ctx, length, x + skip, y, rgba + skip);
}
}
}
* reading ouside the buffer's boundaries.
*/
void
-_mesa_read_index_span( GLcontext *ctx, GLframebuffer *buffer,
+_swrast_read_index_span( GLcontext *ctx, GLframebuffer *buffer,
GLuint n, GLint x, GLint y, GLuint indx[] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
-/* $Id: s_span.h,v 1.18 2003/03/15 17:33:28 brianp Exp $ */
+/* $Id: s_span.h,v 1.19 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern void
-_mesa_span_default_z( GLcontext *ctx, struct sw_span *span );
+_swrast_span_default_z( GLcontext *ctx, struct sw_span *span );
extern void
-_mesa_span_interpolate_z( const GLcontext *ctx, struct sw_span *span );
+_swrast_span_interpolate_z( const GLcontext *ctx, struct sw_span *span );
extern void
-_mesa_span_default_fog( GLcontext *ctx, struct sw_span *span );
+_swrast_span_default_fog( GLcontext *ctx, struct sw_span *span );
extern void
-_mesa_span_default_color( GLcontext *ctx, struct sw_span *span );
+_swrast_span_default_color( GLcontext *ctx, struct sw_span *span );
extern void
-_mesa_span_default_texcoords( GLcontext *ctx, struct sw_span *span );
+_swrast_span_default_texcoords( GLcontext *ctx, struct sw_span *span );
extern GLfloat
-_mesa_compute_lambda(GLfloat dsdx, GLfloat dsdy, GLfloat dtdx, GLfloat dtdy,
+_swrast_compute_lambda(GLfloat dsdx, GLfloat dsdy, GLfloat dtdx, GLfloat dtdy,
GLfloat dqdx, GLfloat dqdy, GLfloat texW, GLfloat texH,
GLfloat s, GLfloat t, GLfloat q, GLfloat invQ);
extern void
-_mesa_write_index_span( GLcontext *ctx, struct sw_span *span);
+_swrast_write_index_span( GLcontext *ctx, struct sw_span *span);
extern void
-_mesa_write_rgba_span( GLcontext *ctx, struct sw_span *span);
+_swrast_write_rgba_span( GLcontext *ctx, struct sw_span *span);
extern void
-_mesa_write_texture_span( GLcontext *ctx, struct sw_span *span);
+_swrast_write_texture_span( GLcontext *ctx, struct sw_span *span);
extern void
-_mesa_read_rgba_span( GLcontext *ctx, GLframebuffer *buffer,
+_swrast_read_rgba_span( GLcontext *ctx, GLframebuffer *buffer,
GLuint n, GLint x, GLint y, GLchan rgba[][4] );
extern void
-_mesa_read_index_span( GLcontext *ctx, GLframebuffer *buffer,
+_swrast_read_index_span( GLcontext *ctx, GLframebuffer *buffer,
GLuint n, GLint x, GLint y, GLuint indx[] );
#endif
-/* $Id: s_stencil.c,v 1.28 2002/10/24 23:57:24 brianp Exp $ */
+/* $Id: s_stencil.c,v 1.29 2003/03/25 02:23:47 brianp Exp $ */
/*
* Mesa 3-D graphics library
MEMCPY(oldmask, mask, n * sizeof(GLubyte));
/* apply the depth test */
- _mesa_depth_test_span(ctx, span);
+ _swrast_depth_test_span(ctx, span);
/* Set the stencil pass/fail flags according to result of depth testing.
* if oldmask[i] == 0 then
n, stencil, mask);
}
else {
- _mesa_depth_test_span(ctx, span);
+ _swrast_depth_test_span(ctx, span);
if (ctx->Stencil.ZFailFunc[face] != GL_KEEP) {
GLubyte failmask[MAX_WIDTH];
MEMCPY(oldmask, mask, n * sizeof(GLubyte));
- _mesa_depth_test_span(ctx, span);
+ _swrast_depth_test_span(ctx, span);
for (i=0;i<n;i++) {
ASSERT(mask[i] == 0 || mask[i] == 1);
* GL_FALSE = all fragments failed.
*/
GLboolean
-_mesa_stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span)
+_swrast_stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span)
{
/* span->facing can only be non-zero if using two-sided stencil */
ASSERT(ctx->Stencil.TestTwoSide || span->facing == 0);
* Output: stencil - the array of stencil values
*/
void
-_mesa_read_stencil_span( GLcontext *ctx,
+_swrast_read_stencil_span( GLcontext *ctx,
GLint n, GLint x, GLint y, GLstencil stencil[] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
* stencil - the array of stencil values
*/
void
-_mesa_write_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y,
+_swrast_write_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y,
const GLstencil stencil[] )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
* deallocated first. The new stencil buffer will be uninitialized.
*/
void
-_mesa_alloc_stencil_buffer( GLframebuffer *buffer )
+_swrast_alloc_stencil_buffer( GLframebuffer *buffer )
{
/* deallocate current stencil buffer if present */
if (buffer->Stencil) {
MESA_PBUFFER_ALLOC(buffer->Width * buffer->Height * sizeof(GLstencil));
if (!buffer->Stencil) {
/* out of memory */
- _mesa_error( NULL, GL_OUT_OF_MEMORY, "_mesa_alloc_stencil_buffer" );
+ _mesa_error( NULL, GL_OUT_OF_MEMORY, "_swrast_alloc_stencil_buffer" );
}
}
* Clear the stencil buffer (hardware or software).
*/
void
-_mesa_clear_stencil_buffer( GLcontext *ctx )
+_swrast_clear_stencil_buffer( GLcontext *ctx )
{
SWcontext *swrast = SWRAST_CONTEXT(ctx);
if (swrast->Driver.WriteStencilSpan) {
-/* $Id: s_stencil.h,v 1.9 2002/10/02 23:24:04 brianp Exp $ */
+/* $Id: s_stencil.h,v 1.10 2003/03/25 02:23:48 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern GLboolean
-_mesa_stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span);
+_swrast_stencil_and_ztest_span(GLcontext *ctx, struct sw_span *span);
extern void
-_mesa_read_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y,
+_swrast_read_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y,
GLstencil stencil[] );
extern void
-_mesa_write_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y,
+_swrast_write_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y,
const GLstencil stencil[] );
extern void
-_mesa_alloc_stencil_buffer( GLframebuffer *buffer );
+_swrast_alloc_stencil_buffer( GLframebuffer *buffer );
extern void
-_mesa_clear_stencil_buffer( GLcontext *ctx );
+_swrast_clear_stencil_buffer( GLcontext *ctx );
#endif
-/* $Id: s_texstore.c,v 1.10 2003/03/01 01:50:26 brianp Exp $ */
+/* $Id: s_texstore.c,v 1.11 2003/03/25 02:23:48 brianp Exp $ */
/*
* Mesa 3-D graphics library
dst = image;
stride = width * 4;
for (i = 0; i < height; i++) {
- _mesa_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y + i,
+ _swrast_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y + i,
(GLchan (*)[4]) dst );
dst += stride;
}
dst = image;
for (i = 0; i < height; i++) {
- _mesa_read_depth_span_float(ctx, width, x, y + i, dst);
+ _swrast_read_depth_span_float(ctx, width, x, y + i, dst);
dst += width;
}
-/* $Id: s_triangle.c,v 1.69 2003/03/16 22:02:38 brianp Exp $ */
+/* $Id: s_triangle.c,v 1.70 2003/03/25 02:23:48 brianp Exp $ */
/*
* Mesa 3-D graphics library
/*
* Just used for feedback mode.
*/
-GLboolean _mesa_cull_triangle( GLcontext *ctx,
+GLboolean _swrast_culltriangle( GLcontext *ctx,
const SWvertex *v0,
const SWvertex *v1,
const SWvertex *v2 )
span.interpMask |= SPAN_INDEX; \
span.index = IntToFixed(v2->index); \
span.indexStep = 0;
-#define RENDER_SPAN( span ) _mesa_write_index_span(ctx, &span);
+#define RENDER_SPAN( span ) _swrast_write_index_span(ctx, &span);
#include "s_tritemp.h"
#define INTERP_Z 1
#define INTERP_FOG 1
#define INTERP_INDEX 1
-#define RENDER_SPAN( span ) _mesa_write_index_span(ctx, &span);
+#define RENDER_SPAN( span ) _swrast_write_index_span(ctx, &span);
#include "s_tritemp.h"
span.greenStep = 0; \
span.blueStep = 0; \
span.alphaStep = 0;
-#define RENDER_SPAN( span ) _mesa_write_rgba_span(ctx, &span);
+#define RENDER_SPAN( span ) _swrast_write_rgba_span(ctx, &span);
#include "s_tritemp.h"
ASSERT(ctx->Texture._EnabledUnits == 0); \
ASSERT(ctx->Light.ShadeModel==GL_SMOOTH); \
}
-#define RENDER_SPAN( span ) _mesa_write_rgba_span(ctx, &span);
+#define RENDER_SPAN( span ) _swrast_write_rgba_span(ctx, &span);
#include "s_tritemp.h"
}
span->interpMask &= ~SPAN_RGBA;
ASSERT(span->arrayMask & SPAN_RGBA);
- _mesa_write_rgba_span(ctx, span);
+ _swrast_write_rgba_span(ctx, span);
#undef SPAN_NEAREST
#undef SPAN_LINEAR
}
ASSERT(span->arrayMask & SPAN_RGBA);
- _mesa_write_rgba_span(ctx, span);
+ _swrast_write_rgba_span(ctx, span);
#undef SPAN_NEAREST
#undef SPAN_LINEAR
#define INTERP_SPEC 1
#define INTERP_ALPHA 1
#define INTERP_TEX 1
-#define RENDER_SPAN( span ) _mesa_write_texture_span(ctx, &span);
+#define RENDER_SPAN( span ) _swrast_write_texture_span(ctx, &span);
#include "s_tritemp.h"
#define INTERP_ALPHA 1
#define INTERP_SPEC 1
#define INTERP_MULTITEX 1
-#define RENDER_SPAN( span ) _mesa_write_texture_span(ctx, &span);
+#define RENDER_SPAN( span ) _swrast_write_texture_span(ctx, &span);
#include "s_tritemp.h"
if (ctx->RenderMode==GL_RENDER) {
if (ctx->Polygon.SmoothFlag) {
- _mesa_set_aa_triangle_function(ctx);
+ _swrast_set_aa_triangle_function(ctx);
ASSERT(swrast->Triangle);
return;
}
}
}
else if (ctx->RenderMode==GL_FEEDBACK) {
- USE(_mesa_feedback_triangle);
+ USE(_swrast_feedback_triangle);
}
else {
/* GL_SELECT mode */
- USE(_mesa_select_triangle);
+ USE(_swrast_select_triangle);
}
}
-/* $Id: s_triangle.h,v 1.7 2001/03/12 00:48:42 gareth Exp $ */
+/* $Id: s_triangle.h,v 1.8 2003/03/25 02:23:48 brianp Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 3.5
+ * Version: 5.1
*
- * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
*/
-
-
-
#ifndef S_TRIANGLES_H
#define S_TRIANGLES_H
#include "swrast.h"
-GLboolean _mesa_cull_triangle( GLcontext *ctx,
- const SWvertex *v0,
- const SWvertex *v1,
- const SWvertex *v2);
-
+extern GLboolean
+_swrast_culltriangle( GLcontext *ctx,
+ const SWvertex *v0,
+ const SWvertex *v1,
+ const SWvertex *v2);
-void
+extern void
_swrast_choose_triangle( GLcontext *ctx );
-void
+extern void
_swrast_add_spec_terms_triangle( GLcontext *ctx,
const SWvertex *v0,
const SWvertex *v1,
-/* $Id: s_tritemp.h,v 1.47 2003/03/16 22:02:40 brianp Exp $ */
+/* $Id: s_tritemp.h,v 1.48 2003/03/25 02:23:48 brianp Exp $ */
/*
* Mesa 3-D graphics library
}
# ifdef DEPTH_TYPE
zRow = (DEPTH_TYPE *)
- _mesa_zbuffer_address(ctx, FixedToInt(fxLeftEdge), span.y);
+ _swrast_zbuffer_address(ctx, FixedToInt(fxLeftEdge), span.y);
dZRowOuter = (ctx->DrawBuffer->Width + idxOuter) * sizeof(DEPTH_TYPE);
# endif
}
-/* $Id: s_zoom.c,v 1.23 2003/03/01 01:50:26 brianp Exp $ */
+/* $Id: s_zoom.c,v 1.24 2003/03/25 02:23:48 brianp Exp $ */
/*
* Mesa 3-D graphics library
/*
- * Helper function called from _mesa_write_zoomed_rgba/rgb/index_span().
+ * Helper function called from _swrast_write_zoomed_rgba/rgb/index_span().
*/
static void
zoom_span( GLcontext *ctx, const struct sw_span *span,
/* write the span in rows [r0, r1) */
if (format == GL_RGBA || format == GL_RGB) {
/* Writing the span may modify the colors, so make a backup now if we're
- * going to call _mesa_write_zoomed_span() more than once.
+ * going to call _swrast_write_zoomed_span() more than once.
* Also, clipping may change the span end value, so store it as well.
*/
const GLint end = zoomed.end; /* save */
MEMCPY(rgbaSave, zoomed.array->rgba, zoomed.end * 4 * sizeof(GLchan));
}
for (zoomed.y = r0; zoomed.y < r1; zoomed.y++) {
- _mesa_write_rgba_span(ctx, &zoomed);
+ _swrast_write_rgba_span(ctx, &zoomed);
zoomed.end = end; /* restore */
if (r1 - r0 > 1) {
/* restore the colors */
MEMCPY(indexSave, zoomed.array->index, zoomed.end * sizeof(GLuint));
}
for (zoomed.y = r0; zoomed.y < r1; zoomed.y++) {
- _mesa_write_index_span(ctx, &zoomed);
+ _swrast_write_index_span(ctx, &zoomed);
zoomed.end = end; /* restore */
if (r1 - r0 > 1) {
/* restore the colors */
void
-_mesa_write_zoomed_rgba_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_write_zoomed_rgba_span( GLcontext *ctx, const struct sw_span *span,
CONST GLchan rgba[][4], GLint y0,
GLint skipPixels )
{
void
-_mesa_write_zoomed_rgb_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_write_zoomed_rgb_span( GLcontext *ctx, const struct sw_span *span,
CONST GLchan rgb[][3], GLint y0,
GLint skipPixels )
{
void
-_mesa_write_zoomed_index_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_write_zoomed_index_span( GLcontext *ctx, const struct sw_span *span,
GLint y0, GLint skipPixels )
{
zoom_span(ctx, span, (const GLvoid *) span->array->index, y0,
* As above, but write stencil values.
*/
void
-_mesa_write_zoomed_stencil_span( GLcontext *ctx,
+_swrast_write_zoomed_stencil_span( GLcontext *ctx,
GLuint n, GLint x, GLint y,
const GLstencil stencil[], GLint y0,
GLint skipPixels )
/* write the span */
for (r=r0; r<r1; r++) {
- _mesa_write_stencil_span( ctx, m, x+skipcol, r, zstencil );
+ _swrast_write_stencil_span( ctx, m, x+skipcol, r, zstencil );
}
}
-/* $Id: s_zoom.h,v 1.8 2002/12/05 04:48:53 brianp Exp $ */
+/* $Id: s_zoom.h,v 1.9 2003/03/25 02:23:48 brianp Exp $ */
/*
* Mesa 3-D graphics library
#include "swrast.h"
extern void
-_mesa_write_zoomed_rgba_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_write_zoomed_rgba_span( GLcontext *ctx, const struct sw_span *span,
CONST GLchan rgb[][4], GLint y0,
GLint skipPixels );
extern void
-_mesa_write_zoomed_rgb_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_write_zoomed_rgb_span( GLcontext *ctx, const struct sw_span *span,
CONST GLchan rgb[][3], GLint y0,
GLint skipPixels );
extern void
-_mesa_write_zoomed_index_span( GLcontext *ctx, const struct sw_span *span,
+_swrast_write_zoomed_index_span( GLcontext *ctx, const struct sw_span *span,
GLint y0, GLint skipPixels );
extern void
-_mesa_write_zoomed_stencil_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
+_swrast_write_zoomed_stencil_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
const GLstencil stencil[], GLint y0,
GLint skipPixels );