mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
clean-up warnings
This commit is contained in:
parent
ed30dfa126
commit
b440dfeee6
3 changed files with 20 additions and 16 deletions
|
|
@ -63,17 +63,18 @@ void fxPrintTextureData(tfxTexInfo *ti)
|
|||
} else
|
||||
fprintf(stderr, "\tName: UNNAMED\n");
|
||||
fprintf(stderr, "\tLast used: %d\n", ti->lastTimeUsed);
|
||||
fprintf(stderr, "\tTMU: %d\n", ti->whichTMU);
|
||||
fprintf(stderr, "\tTMU: %ld\n", ti->whichTMU);
|
||||
fprintf(stderr, "\t%s\n", (ti->isInTM)?"In TMU":"Not in TMU");
|
||||
if (ti->tm[0])
|
||||
fprintf(stderr, "\tMem0: %x-%x\n", ti->tm[0]->startAddr,
|
||||
ti->tm[0]->endAddr);
|
||||
fprintf(stderr, "\tMem0: %x-%x\n", (unsigned) ti->tm[0]->startAddr,
|
||||
(unsigned) ti->tm[0]->endAddr);
|
||||
if (ti->tm[1])
|
||||
fprintf(stderr, "\tMem1: %x-%x\n", ti->tm[1]->startAddr,
|
||||
ti->tm[1]->endAddr);
|
||||
fprintf(stderr, "\tMem1: %x-%x\n", (unsigned) ti->tm[1]->startAddr,
|
||||
(unsigned) ti->tm[1]->endAddr);
|
||||
fprintf(stderr, "\tMipmaps: %d-%d\n", ti->minLevel, ti->maxLevel);
|
||||
fprintf(stderr, "\tFilters: min %d min %d\n", ti->minFilt, ti->maxFilt);
|
||||
fprintf(stderr, "\tClamps: s %d t %d\n", ti->sClamp, ti->tClamp);
|
||||
fprintf(stderr, "\tFilters: min %d min %d\n",
|
||||
(int) ti->minFilt, (int) ti->maxFilt);
|
||||
fprintf(stderr, "\tClamps: s %d t %d\n", (int) ti->sClamp, (int) ti->tClamp);
|
||||
fprintf(stderr, "\tScales: s %f t %f\n", ti->sScale, ti->tScale);
|
||||
fprintf(stderr, "\tInt Scales: s %d t %d\n",
|
||||
ti->int_sScale/0x800000, ti->int_tScale/0x800000);
|
||||
|
|
@ -86,7 +87,7 @@ void fxPrintTextureData(tfxTexInfo *ti)
|
|||
/*************************** Texture Mapping ****************************/
|
||||
/************************************************************************/
|
||||
|
||||
void fxTexInvalidate(GLcontext *ctx, struct gl_texture_object *tObj)
|
||||
static void fxTexInvalidate(GLcontext *ctx, struct gl_texture_object *tObj)
|
||||
{
|
||||
fxMesaContext fxMesa=(fxMesaContext)ctx->DriverCtx;
|
||||
tfxTexInfo *ti;
|
||||
|
|
|
|||
|
|
@ -87,8 +87,8 @@ typedef struct tfxMesaContext *fxMesaContext;
|
|||
|
||||
|
||||
|
||||
#if defined(MESA_DEBUG) && 0
|
||||
extern void fx_sanity_triangle( GrVertex *, GrVertex *, GrVertex * );
|
||||
#if defined(MESA_DEBUG) && 0
|
||||
#define grDrawTriangle fx_sanity_triangle
|
||||
#endif
|
||||
|
||||
|
|
@ -533,6 +533,7 @@ typedef void (*tfxSetupFunc)(struct vertex_buffer *, GLuint, GLuint);
|
|||
extern GrHwConfiguration glbHWConfig;
|
||||
extern int glbCurrentBoard;
|
||||
|
||||
extern void fxPrintSetupFlags( const char *msg, GLuint flags );
|
||||
extern void fxSetupFXUnits(GLcontext *);
|
||||
extern void fxSetupDDPointers(GLcontext *);
|
||||
extern void fxDDSetNearFar(GLcontext *, GLfloat, GLfloat);
|
||||
|
|
@ -618,6 +619,7 @@ extern void fxDDInitExtensions( GLcontext *ctx );
|
|||
#define fxTMGetTexInfo(o) ((tfxTexInfo*)((o)->DriverData))
|
||||
extern void fxTMInit(fxMesaContext ctx);
|
||||
extern void fxTMClose(fxMesaContext ctx);
|
||||
extern void fxTMRestoreTextures_NoLock(fxMesaContext ctx);
|
||||
extern void fxTMMoveInTM(fxMesaContext, struct gl_texture_object *, GLint);
|
||||
extern void fxTMMoveOutTM(fxMesaContext, struct gl_texture_object *);
|
||||
#define fxTMMoveOutTM_NoLock fxTMMoveOutTM
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ static void fxSetupDepthTest(GLcontext *ctx);
|
|||
static void fxSetupScissor(GLcontext *ctx);
|
||||
static void fxSetupCull(GLcontext *ctx);
|
||||
static void gl_print_fx_state_flags( const char *msg, GLuint flags);
|
||||
static GLboolean fxMultipassBlend(struct vertex_buffer *, GLuint);
|
||||
/*static GLboolean fxMultipassBlend(struct vertex_buffer *, GLuint);*/
|
||||
static GLboolean fxMultipassTexture( struct vertex_buffer *, GLuint );
|
||||
|
||||
static void fxTexValidate(GLcontext *ctx, struct gl_texture_object *tObj)
|
||||
|
|
@ -1624,6 +1624,7 @@ void fxDDEnable(GLcontext *ctx, GLenum cap, GLboolean state)
|
|||
ctx->Driver.RenderStart = fxSetupFXUnits;
|
||||
break;
|
||||
case GL_LINE_SMOOTH:
|
||||
case GL_LINE_STIPPLE:
|
||||
case GL_POINT_SMOOTH:
|
||||
case GL_POLYGON_SMOOTH:
|
||||
case GL_TEXTURE_2D:
|
||||
|
|
@ -1631,7 +1632,7 @@ void fxDDEnable(GLcontext *ctx, GLenum cap, GLboolean state)
|
|||
ctx->Driver.RenderStart = fxSetupFXUnits;
|
||||
break;
|
||||
default:
|
||||
; /* XXX no-op??? */
|
||||
; /* XXX no-op? */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1664,10 +1665,10 @@ static GLboolean fxMultipassBlend(struct vertex_buffer *VB, GLuint pass)
|
|||
fxDDDepthMask(ctx, FALSE);
|
||||
}
|
||||
/* Enable Cc*Ct mode */
|
||||
/* ??? Set the Constant Color ??? */
|
||||
/* XXX Set the Constant Color ? */
|
||||
fxDDEnable(ctx, GL_BLEND, GL_TRUE);
|
||||
fxDDBlendFunc(ctx, ???, ???);
|
||||
fxSetupTextureSingleTMU(ctx, ???);
|
||||
fxDDBlendFunc(ctx, XXX, XXX);
|
||||
fxSetupTextureSingleTMU(ctx, XXX);
|
||||
fxSetupBlend(ctx);
|
||||
fxSetupDepthTest(ctx);
|
||||
break;
|
||||
|
|
@ -1675,8 +1676,8 @@ static GLboolean fxMultipassBlend(struct vertex_buffer *VB, GLuint pass)
|
|||
case 2:
|
||||
/* Reset everything back to normal */
|
||||
fxMesa->unitsState = fxMesa->restoreUnitsState;
|
||||
fxMesa->setupdone &= ???;
|
||||
fxSetupTextureSingleTMU(ctx, ???);
|
||||
fxMesa->setupdone &= XXX;
|
||||
fxSetupTextureSingleTMU(ctx, XXX);
|
||||
fxSetupBlend(ctx);
|
||||
fxSetupDepthTest(ctx);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue