diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/colortab.c | 4 | ||||
-rw-r--r-- | src/mesa/main/texstate.c | 4 | ||||
-rw-r--r-- | src/mesa/main/texutil.c | 4 | ||||
-rw-r--r-- | src/mesa/main/texutil_tmp.h | 83 | ||||
-rw-r--r-- | src/mesa/swrast/s_accum.c | 3 | ||||
-rw-r--r-- | src/mesa/swrast/s_drawpix.c | 6 |
6 files changed, 53 insertions, 51 deletions
diff --git a/src/mesa/main/colortab.c b/src/mesa/main/colortab.c index 61f93be2aad..0b0f50c0741 100644 --- a/src/mesa/main/colortab.c +++ b/src/mesa/main/colortab.c @@ -1,4 +1,4 @@ -/* $Id: colortab.c,v 1.39 2001/04/10 15:25:45 brianp Exp $ */ +/* $Id: colortab.c,v 1.40 2001/04/20 19:21:41 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -812,7 +812,7 @@ _mesa_GetColorTable( GLenum target, GLenum format, return; } - _mesa_pack_rgba_span(ctx, table->Size, (const GLchan (*)[]) rgba, + _mesa_pack_rgba_span(ctx, table->Size, (const GLchan (*)[4]) rgba, format, type, data, &ctx->Pack, GL_FALSE); } diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 598ffb512a0..fe80a70d30a 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,4 +1,4 @@ -/* $Id: texstate.c,v 1.45 2001/04/19 22:39:50 brianp Exp $ */ +/* $Id: texstate.c,v 1.46 2001/04/20 19:21:41 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1058,7 +1058,7 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params ) void -_mesa_TexParameteri( GLenum target, GLenum pname, const GLint param ) +_mesa_TexParameteri( GLenum target, GLenum pname, GLint param ) { GLfloat fparam[4]; fparam[0] = (GLfloat) param; diff --git a/src/mesa/main/texutil.c b/src/mesa/main/texutil.c index 2431c91758d..e4ca2e154b4 100644 --- a/src/mesa/main/texutil.c +++ b/src/mesa/main/texutil.c @@ -1,4 +1,4 @@ -/* $Id: texutil.c,v 1.22 2001/03/30 14:44:43 gareth Exp $ */ +/* $Id: texutil.c,v 1.23 2001/04/20 19:21:41 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -41,7 +41,7 @@ #include "texutil.h" #endif -#define DBG 0 +#define DEBUG_TEXUTIL 0 struct gl_texture_convert { diff --git a/src/mesa/main/texutil_tmp.h b/src/mesa/main/texutil_tmp.h index 42ec82fc668..ec6274c80e8 100644 --- a/src/mesa/main/texutil_tmp.h +++ b/src/mesa/main/texutil_tmp.h @@ -1,4 +1,4 @@ -/* $Id: texutil_tmp.h,v 1.7 2001/03/30 14:44:43 gareth Exp $ */ +/* $Id: texutil_tmp.h,v 1.8 2001/04/20 19:21:41 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -28,12 +28,9 @@ */ /* - * NOTE: All 3D code is untested and most definitely broken... + * NOTE: All 3D teximage code is untested and most definitely broken... */ -#ifdef VMS -#define __FUNCTION__ -#endif #define DST_TEXEL_BYTES (4 / DST_TEXELS_PER_DWORD) #define DST_ROW_WIDTH (convert->width * DST_TEXEL_BYTES) @@ -55,8 +52,9 @@ TAG(texsubimage2d)( struct gl_texture_convert *convert ) GLint dwords, i; (void) dwords; (void) i; - if ( DBG ) - fprintf( stderr, __FUNCTION__ "\n" ); +#if DEBUG_TEXUTIL + fprintf( stderr, __FUNCTION__ "\n" ); +#endif #ifdef CONVERT_DIRECT MEMCPY( dst, src, convert->height * DST_ROW_WIDTH ); @@ -86,8 +84,9 @@ TAG(texsubimage3d)( struct gl_texture_convert *convert ) GLint dwords, i; (void) dwords; (void) i; - if ( DBG ) - fprintf( stderr, __FUNCTION__ "\n" ); +#if DEBUG_TEXUTIL + fprintf( stderr, __FUNCTION__ "\n" ); +#endif #ifdef CONVERT_DIRECT MEMCPY( dst, src, convert->depth * convert->height * DST_ROW_WIDTH ); @@ -121,13 +120,13 @@ TAG(texsubimage2d_stride)( struct gl_texture_convert *convert ) adjust = convert->dstImageWidth - convert->width; - if ( DBG ) { - fprintf( stderr, __FUNCTION__ ":\n" ); - fprintf( stderr, " x=%d y=%d w=%d h=%d s=%d\n", - convert->xoffset, convert->yoffset, convert->width, - convert->height, convert->dstImageWidth ); - fprintf( stderr, " adjust=%d\n", adjust ); - } +#if DEBUG_TEXUTIL + fprintf( stderr, __FUNCTION__ ":\n" ); + fprintf( stderr, " x=%d y=%d w=%d h=%d s=%d\n", + convert->xoffset, convert->yoffset, convert->width, + convert->height, convert->dstImageWidth ); + fprintf( stderr, " adjust=%d\n", adjust ); +#endif for ( row = 0 ; row < convert->height ; row++ ) { for ( col = 0 ; col < convert->width ; col++ ) { @@ -155,13 +154,13 @@ TAG(texsubimage3d_stride)( struct gl_texture_convert *convert ) adjust = convert->dstImageWidth - convert->width; - if ( DBG ) { - fprintf( stderr, __FUNCTION__ ":\n" ); - fprintf( stderr, " x=%d y=%d w=%d h=%d s=%d\n", - convert->xoffset, convert->yoffset, convert->width, - convert->height, convert->dstImageWidth ); - fprintf( stderr, " adjust=%d\n", adjust ); - } +#if DEBUG_TEXUTIL + fprintf( stderr, __FUNCTION__ ":\n" ); + fprintf( stderr, " x=%d y=%d w=%d h=%d s=%d\n", + convert->xoffset, convert->yoffset, convert->width, + convert->height, convert->dstImageWidth ); + fprintf( stderr, " adjust=%d\n", adjust ); +#endif for ( img = 0 ; img < convert->depth ; img++ ) { for ( row = 0 ; row < convert->height ; row++ ) { @@ -199,8 +198,9 @@ TAG(texsubimage2d_pack)( struct gl_texture_convert *convert ) GLint row, col; (void) col; - if ( DBG ) - fprintf( stderr, __FUNCTION__ "\n" ); +#if DEBUG_TEXUTIL + fprintf( stderr, __FUNCTION__ "\n" ); +#endif width = ((convert->width + DST_TEXELS_PER_DWORD - 1) & ~(DST_TEXELS_PER_DWORD - 1)); @@ -243,8 +243,9 @@ TAG(texsubimage3d_pack)( struct gl_texture_convert *convert ) GLint row, col, img; (void) col; - if ( DBG ) - fprintf( stderr, __FUNCTION__ "\n" ); +#if DEBUG_TEXUTIL + fprintf( stderr, __FUNCTION__ "\n" ); +#endif width = ((convert->width + DST_TEXELS_PER_DWORD - 1) & ~(DST_TEXELS_PER_DWORD - 1)); @@ -293,13 +294,13 @@ TAG(texsubimage2d_stride_pack)( struct gl_texture_convert *convert ) adjust = convert->dstImageWidth - convert->width; - if ( DBG ) { - fprintf( stderr, __FUNCTION__ ":\n" ); - fprintf( stderr, " x=%d y=%d w=%d h=%d s=%d\n", - convert->xoffset, convert->yoffset, convert->width, - convert->height, convert->dstImageWidth ); - fprintf( stderr, " adjust=%d\n", adjust ); - } +#if DEBUG_TEXUTIL + fprintf( stderr, __FUNCTION__ ":\n" ); + fprintf( stderr, " x=%d y=%d w=%d h=%d s=%d\n", + convert->xoffset, convert->yoffset, convert->width, + convert->height, convert->dstImageWidth ); + fprintf( stderr, " adjust=%d\n", adjust ); +#endif for ( row = 0 ; row < convert->height ; row++ ) { #ifdef CONVERT_DIRECT @@ -342,13 +343,13 @@ TAG(texsubimage3d_stride_pack)( struct gl_texture_convert *convert ) adjust = convert->dstImageWidth - convert->width; - if ( DBG ) { - fprintf( stderr, __FUNCTION__ ":\n" ); - fprintf( stderr, " x=%d y=%d w=%d h=%d s=%d\n", - convert->xoffset, convert->yoffset, convert->width, - convert->height, convert->dstImageWidth ); - fprintf( stderr, " adjust=%d\n", adjust ); - } +#if DEBUG_TEXUTIL + fprintf( stderr, __FUNCTION__ ":\n" ); + fprintf( stderr, " x=%d y=%d w=%d h=%d s=%d\n", + convert->xoffset, convert->yoffset, convert->width, + convert->height, convert->dstImageWidth ); + fprintf( stderr, " adjust=%d\n", adjust ); +#endif for ( img = 0 ; img < convert->depth ; img++ ) { for ( row = 0 ; row < convert->height ; row++ ) { diff --git a/src/mesa/swrast/s_accum.c b/src/mesa/swrast/s_accum.c index f338886c9c7..7a10b4b4b98 100644 --- a/src/mesa/swrast/s_accum.c +++ b/src/mesa/swrast/s_accum.c @@ -1,4 +1,4 @@ -/* $Id: s_accum.c,v 1.10 2001/04/10 15:25:45 brianp Exp $ */ +/* $Id: s_accum.c,v 1.11 2001/04/20 19:21:41 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -25,6 +25,7 @@ */ +#include "glheader.h" #include "context.h" #include "macros.h" #include "mmath.h" diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c index 8432fe32758..ea4fef7d53a 100644 --- a/src/mesa/swrast/s_drawpix.c +++ b/src/mesa/swrast/s_drawpix.c @@ -1,4 +1,4 @@ -/* $Id: s_drawpix.c,v 1.16 2001/04/10 15:25:45 brianp Exp $ */ +/* $Id: s_drawpix.c,v 1.17 2001/04/20 19:21:41 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -833,11 +833,11 @@ draw_rgba_pixels( GLcontext *ctx, GLint x, GLint y, if (quickDraw) { (*swrast->Driver.WriteRGBASpan)( ctx, width, x, y, - (CONST GLchan (*)[]) rgba, NULL); + (CONST GLchan (*)[4]) rgba, NULL); } else if (zoom) { _mesa_write_zoomed_rgba_span( ctx, width, x, y, zspan, 0, - (CONST GLchan (*)[]) rgba, desty ); + (CONST GLchan (*)[4]) rgba, desty ); } else { _mesa_write_rgba_span( ctx, (GLuint) width, x, y, zspan, 0, |