-/* $Id: fxdd.c,v 1.93 2002/10/29 15:03:16 brianp Exp $ */
+/* $Id: fxdd.c,v 1.94 2002/11/04 20:29:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
#include "fxdrv.h"
#include "enums.h"
#include "extensions.h"
+#include "mmath.h"
#include "texstore.h"
#include "swrast/swrast.h"
#include "swrast_setup/swrast_setup.h"
fxMesa->unitsState.alphaTestEnabled = GL_FALSE;
fxMesa->unitsState.alphaTestFunc = GR_CMP_ALWAYS;
- fxMesa->unitsState.alphaTestRefValue = 0;
+ fxMesa->unitsState.alphaTestRefValue = 0.0;
fxMesa->unitsState.blendEnabled = GL_FALSE;
fxMesa->unitsState.blendSrcFuncRGB = GR_BLEND_ONE;
-/* $Id: fxddspan.c,v 1.21 2002/10/11 17:41:05 brianp Exp $ */
+/* $Id: fxddspan.c,v 1.22 2002/11/04 20:29:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
(void) buffer;
if (MESA_VERBOSE & VERBOSE_DRIVER) {
- fprintf(stderr, "fxmesa: fxDDSetBuffer(%x)\n", (int) mode);
+ fprintf(stderr, "fxmesa: fxDDSetBuffer(%x)\n", (int) bufferBit);
}
if (bufferBit == FRONT_LEFT_BIT) {
-/* $Id: fxdrv.h,v 1.54 2002/10/24 23:57:23 brianp Exp $ */
+/* $Id: fxdrv.h,v 1.55 2002/11/04 20:29:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
extern void fxDDTexUseGlbPalette(GLcontext *, GLboolean);
extern void fxDDEnable(GLcontext *, GLenum, GLboolean);
-extern void fxDDAlphaFunc(GLcontext *, GLenum, GLchan);
+extern void fxDDAlphaFunc(GLcontext *, GLenum, GLfloat);
extern void fxDDBlendFunc(GLcontext *, GLenum, GLenum);
extern void fxDDDepthMask(GLcontext *, GLboolean);
extern void fxDDDepthFunc(GLcontext *, GLenum);
-/* $Id: fxsetup.c,v 1.37 2002/06/15 03:03:10 brianp Exp $ */
+/* $Id: fxsetup.c,v 1.38 2002/11/04 20:29:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
/************************************************************************/
void
-fxDDAlphaFunc(GLcontext * ctx, GLenum func, GLchan ref)
+fxDDAlphaFunc(GLcontext * ctx, GLenum func, GLfloat ref)
{
fxMesaContext fxMesa = (fxMesaContext) ctx->DriverCtx;
tfxUnitsState *us = &fxMesa->unitsState;
tfxUnitsState *us = &fxMesa->unitsState;
if (us->alphaTestEnabled) {
+ GrAlpha_t ref = (GLint) (us->alphaTestRefValue * 255.0);
FX_grAlphaTestFunction(us->alphaTestFunc);
- FX_grAlphaTestReferenceValue(us->alphaTestRefValue);
+ FX_grAlphaTestReferenceValue(ref);
}
else
FX_grAlphaTestFunction(GR_CMP_ALWAYS);
-/* $Id: fxvb.c,v 1.15 2002/10/24 23:57:23 brianp Exp $ */
+/* $Id: fxvb.c,v 1.16 2002/11/04 20:29:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
if (!newinputs)
return;
- if (newinputs & VERT_CLIP) {
+ if (newinputs & VERT_BIT_CLIP) {
setup_tab[fxMesa->SetupIndex].emit( ctx, start, count, v );
} else {
GLuint ind = 0;
- if (newinputs & VERT_RGBA)
+ if (newinputs & VERT_BIT_COLOR0)
ind |= SETUP_RGBA;
- if (newinputs & VERT_TEX0)
+ if (newinputs & VERT_BIT_TEX0)
ind |= SETUP_TMU0;
- if (newinputs & VERT_TEX1)
+ if (newinputs & VERT_BIT_TEX1)
ind |= SETUP_TMU0|SETUP_TMU1;
if (fxMesa->SetupIndex & SETUP_PTEX)