misc driver updates (Daniel Borca)

This commit is contained in:
Brian Paul 2002-11-04 20:29:04 +00:00
parent df45a985ed
commit 8115e29ddc
5 changed files with 16 additions and 14 deletions

View file

@ -1,4 +1,4 @@
/* $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
@ -45,6 +45,7 @@
#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"
@ -698,7 +699,7 @@ fxDDInitFxMesaContext(fxMesaContext fxMesa)
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;

View file

@ -1,4 +1,4 @@
/* $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
@ -542,7 +542,7 @@ fxDDSetBuffer(GLcontext * ctx, GLframebuffer * buffer, GLuint bufferBit)
(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) {

View file

@ -1,4 +1,4 @@
/* $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
@ -503,7 +503,7 @@ extern void fxDDTexPalette(GLcontext *, struct gl_texture_object *);
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);

View file

@ -1,4 +1,4 @@
/* $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
@ -1173,7 +1173,7 @@ fxSetupBlend(GLcontext * ctx)
/************************************************************************/
void
fxDDAlphaFunc(GLcontext * ctx, GLenum func, GLchan ref)
fxDDAlphaFunc(GLcontext * ctx, GLenum func, GLfloat ref)
{
fxMesaContext fxMesa = (fxMesaContext) ctx->DriverCtx;
tfxUnitsState *us = &fxMesa->unitsState;
@ -1229,8 +1229,9 @@ fxSetupAlphaTest(GLcontext * ctx)
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);

View file

@ -1,4 +1,4 @@
/* $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
@ -304,18 +304,18 @@ void fxBuildVertices( GLcontext *ctx, GLuint start, GLuint count,
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)