From: Daniel Borca Date: Fri, 17 Dec 2004 08:08:37 +0000 (+0000) Subject: fxRasterPrimitive wasn't always receiving the reduced primitive X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02978f109265f7a598a4a6a8d81d134d8308785e;p=mesa.git fxRasterPrimitive wasn't always receiving the reduced primitive --- diff --git a/src/mesa/drivers/glide/fxtris.c b/src/mesa/drivers/glide/fxtris.c index f53c2b31d0f..a83596fba56 100644 --- a/src/mesa/drivers/glide/fxtris.c +++ b/src/mesa/drivers/glide/fxtris.c @@ -63,6 +63,19 @@ GLboolean fxMultipass_ColorSum (GLcontext *ctx, GLuint pass); static void fxRasterPrimitive( GLcontext *ctx, GLenum prim ); static void fxRenderPrimitive( GLcontext *ctx, GLenum prim ); +static GLenum reduced_prim[GL_POLYGON+1] = { + GL_POINTS, + GL_LINES, + GL_LINES, + GL_LINES, + GL_TRIANGLES, + GL_TRIANGLES, + GL_TRIANGLES, + GL_TRIANGLES, + GL_TRIANGLES, + GL_TRIANGLES +}; + /*********************************************************************** * Macros for t_dd_tritmp.h to draw basic primitives * ***********************************************************************/ @@ -644,8 +657,8 @@ do { \ * Functions to draw basic unfilled primitives * ***********************************************************************/ -#define RASTERIZE(x) if (fxMesa->raster_primitive != x) \ - fxRasterPrimitive( ctx, x ) +#define RASTERIZE(x) if (fxMesa->raster_primitive != reduced_prim[x]) \ + fxRasterPrimitive( ctx, reduced_prim[x] ) #define RENDER_PRIMITIVE fxMesa->render_primitive #define IND FX_FALLBACK_BIT #define TAG(x) x @@ -1408,20 +1421,6 @@ static void fxRunPipeline( GLcontext *ctx ) } -static GLenum reduced_prim[GL_POLYGON+1] = { - GL_POINTS, - GL_LINES, - GL_LINES, - GL_LINES, - GL_TRIANGLES, - GL_TRIANGLES, - GL_TRIANGLES, - GL_TRIANGLES, - GL_TRIANGLES, - GL_TRIANGLES -}; - - /* Always called between RenderStart and RenderFinish --> We already * hold the lock.