diff options
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/debug.c | 11 | ||||
-rw-r--r-- | src/mesa/main/enable.c | 3 | ||||
-rw-r--r-- | src/mesa/main/feedback.c | 5 | ||||
-rw-r--r-- | src/mesa/main/mtypes.h | 39 | ||||
-rw-r--r-- | src/mesa/main/state.c | 7 |
5 files changed, 23 insertions, 42 deletions
diff --git a/src/mesa/main/debug.c b/src/mesa/main/debug.c index f0e1e6ce2b..ee52963d34 100644 --- a/src/mesa/main/debug.c +++ b/src/mesa/main/debug.c @@ -1,4 +1,4 @@ -/* $Id: debug.c,v 1.10 2001/03/29 16:50:31 brianp Exp $ */ +/* $Id: debug.c,v 1.11 2001/03/29 17:08:26 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -30,7 +30,7 @@ void _mesa_print_state( const char *msg, GLuint state ) { fprintf(stderr, - "%s: (0x%x) %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", + "%s: (0x%x) %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", msg, state, (state & _NEW_MODELVIEW) ? "ctx->ModelView, " : "", @@ -92,11 +92,9 @@ void _mesa_print_enable_flags( const char *msg, GLuint flags ) void _mesa_print_tri_caps( const char *name, GLuint flags ) { fprintf(stderr, - "%s: (0x%x) %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", + "%s: (0x%x) %s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", name, flags, - (flags & DD_FEEDBACK) ? "feedback, " : "", - (flags & DD_SELECT) ? "select, " : "", (flags & DD_FLATSHADE) ? "flat-shade, " : "", (flags & DD_SEPARATE_SPECULAR) ? "separate-specular, " : "", (flags & DD_TRI_LIGHT_TWOSIDE) ? "tri-light-twoside, " : "", @@ -110,7 +108,6 @@ void _mesa_print_tri_caps( const char *name, GLuint flags ) (flags & DD_POINT_SMOOTH) ? "point-smooth, " : "", (flags & DD_POINT_SIZE) ? "point-size, " : "", (flags & DD_POINT_ATTEN) ? "point-atten, " : "", - (flags & DD_TRI_CULL_FRONT_BACK) ? "cull-all, " : "", - (flags & DD_STENCIL) ? "stencil, " : "" + (flags & DD_TRI_CULL_FRONT_BACK) ? "cull-all, " : "" ); } diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index fcae15ea3b..4eff8043bc 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -1,4 +1,4 @@ -/* $Id: enable.c,v 1.46 2001/03/29 16:50:32 brianp Exp $ */ +/* $Id: enable.c,v 1.47 2001/03/29 17:08:26 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -497,7 +497,6 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) return; FLUSH_VERTICES(ctx, _NEW_STENCIL); ctx->Stencil.Enabled = state; - ctx->_TriangleCaps ^= DD_STENCIL; break; case GL_TEXTURE_1D: { const GLuint curr = ctx->Texture.CurrentUnit; diff --git a/src/mesa/main/feedback.c b/src/mesa/main/feedback.c index 85363b11d6..fcd8714652 100644 --- a/src/mesa/main/feedback.c +++ b/src/mesa/main/feedback.c @@ -1,4 +1,4 @@ -/* $Id: feedback.c,v 1.23 2001/03/12 00:48:37 gareth Exp $ */ +/* $Id: feedback.c,v 1.24 2001/03/29 17:08:26 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -343,7 +343,6 @@ _mesa_RenderMode( GLenum mode ) fprintf(stderr, "glRenderMode %s\n", _mesa_lookup_enum_by_nr(mode)); FLUSH_VERTICES(ctx, _NEW_RENDERMODE); - ctx->_TriangleCaps &= ~(DD_FEEDBACK|DD_SELECT); switch (ctx->RenderMode) { case GL_RENDER: @@ -386,14 +385,12 @@ _mesa_RenderMode( GLenum mode ) case GL_RENDER: break; case GL_SELECT: - ctx->_TriangleCaps |= DD_SELECT; if (ctx->Select.BufferSize==0) { /* haven't called glSelectBuffer yet */ _mesa_error( ctx, GL_INVALID_OPERATION, "glRenderMode" ); } break; case GL_FEEDBACK: - ctx->_TriangleCaps |= DD_FEEDBACK; if (ctx->Feedback.BufferSize==0) { /* haven't called glFeedbackBuffer yet */ _mesa_error( ctx, GL_INVALID_OPERATION, "glRenderMode" ); diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index ea5049f08a..66290fd7fa 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1,4 +1,4 @@ -/* $Id: mtypes.h,v 1.36 2001/03/29 16:50:32 brianp Exp $ */ +/* $Id: mtypes.h,v 1.37 2001/03/29 17:08:26 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -1327,31 +1327,26 @@ struct gl_extensions { /* A bunch of flags that we think might be useful to drivers. */ -#define DD_FEEDBACK 0x1 -#define DD_SELECT 0x2 -#define DD_FLATSHADE 0x4 -#define DD_SEPARATE_SPECULAR 0x10 -#define DD_TRI_LIGHT_TWOSIDE 0x20 -#define DD_TRI_UNFILLED 0x40 -#define DD_TRI_SMOOTH 0x80 -#define DD_TRI_STIPPLE 0x100 -#define DD_TRI_OFFSET 0x200 -#define DD_LINE_SMOOTH 0x800 -#define DD_LINE_STIPPLE 0x1000 -#define DD_LINE_WIDTH 0x2000 -#define DD_POINT_SMOOTH 0x4000 -#define DD_POINT_SIZE 0x8000 -#define DD_POINT_ATTEN 0x10000 -#define DD_TRI_CULL_FRONT_BACK 0x400000 /* special case on some hw */ -#define DD_STENCIL 0x800000 +#define DD_FLATSHADE 0x1 +#define DD_SEPARATE_SPECULAR 0x2 +#define DD_TRI_CULL_FRONT_BACK 0x4 /* special case on some hw */ +#define DD_TRI_LIGHT_TWOSIDE 0x8 +#define DD_TRI_UNFILLED 0x10 +#define DD_TRI_SMOOTH 0x20 +#define DD_TRI_STIPPLE 0x40 +#define DD_TRI_OFFSET 0x80 +#define DD_LINE_SMOOTH 0x100 +#define DD_LINE_STIPPLE 0x200 +#define DD_LINE_WIDTH 0x400 +#define DD_POINT_SMOOTH 0x800 +#define DD_POINT_SIZE 0x1000 +#define DD_POINT_ATTEN 0x2000 /* Define the state changes under which each of these bits might change */ -#define _DD_NEW_FEEDBACK _NEW_RENDERMODE -#define _DD_NEW_SELECT _NEW_RENDERMODE #define _DD_NEW_FLATSHADE _NEW_LIGHT -#define _DD_NEW_MULTIDRAW _NEW_COLOR #define _DD_NEW_SEPARATE_SPECULAR (_NEW_LIGHT | _NEW_FOG) +#define _DD_NEW_TRI_CULL_FRONT_BACK _NEW_POLYGON #define _DD_NEW_TRI_LIGHT_TWOSIDE _NEW_LIGHT #define _DD_NEW_TRI_UNFILLED _NEW_POLYGON #define _DD_NEW_TRI_SMOOTH _NEW_POLYGON @@ -1363,8 +1358,6 @@ struct gl_extensions { #define _DD_NEW_POINT_SMOOTH _NEW_POINT #define _DD_NEW_POINT_SIZE _NEW_POINT #define _DD_NEW_POINT_ATTEN _NEW_POINT -#define _DD_NEW_TRI_CULL_FRONT_BACK _NEW_POLYGON -#define _DD_NEW_STENCIL _NEW_STENCIL #define _MESA_NEW_NEED_EYE_COORDS (_NEW_LIGHT | \ _NEW_TEXTURE | \ diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 11de54ac35..4ba7776f4a 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -1,4 +1,4 @@ -/* $Id: state.c,v 1.62 2001/03/19 02:25:35 keithw Exp $ */ +/* $Id: state.c,v 1.63 2001/03/29 17:08:26 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -949,11 +949,6 @@ void _mesa_update_state( GLcontext *ctx ) /* At this point we can do some assertions to be sure the required * device driver function pointers are all initialized. - * - * KW: Moved the some of these asserts to t_vb_render.c, as they - * are strictly only required for that stage. The Driver struct - * should probably be split; the read/write span/pixels functions - * should be referenced only from swrast, for instance. */ ASSERT(ctx->Driver.GetString); ASSERT(ctx->Driver.UpdateState); |