}
if (firsttime) {
+#if 00
fxDDSetupInit();
fxDDTrifuncInit();
+#endif
firsttime = 0;
}
-
static void
update_texture_scales(GLcontext * ctx)
{
static void
fxDDUpdateDDPointers(GLcontext * ctx, GLuint new_state)
{
- TNLcontext *tnl = TNL_CONTEXT(ctx);
+ /* TNLcontext *tnl = TNL_CONTEXT(ctx);*/
fxMesaContext fxMesa = FX_CONTEXT(ctx);
_swrast_InvalidateState(ctx, new_state);
if (fxMesa->is_in_hardware) {
if (new_state & _FX_NEW_RENDERSTATE)
fxDDChooseRenderState(ctx);
-
+#if 000
if (new_state & _FX_NEW_SETUP_FUNCTION)
fxDDChooseSetupState(ctx);
+#endif
}
if (new_state & _NEW_TEXTURE)
void
fxSetupDDPointers(GLcontext * ctx)
{
+ TNLcontext *tnl = TNL_CONTEXT(ctx);
+
if (MESA_VERBOSE & VERBOSE_DRIVER) {
fprintf(stderr, "fxmesa: fxSetupDDPointers()\n");
}
ctx->Driver.ShadeModel = fxDDShadeModel;
ctx->Driver.Enable = fxDDEnable;
+ tnl->Driver.RunPipeline = _tnl_run_pipeline;
+
+ /* XXX is this right? (BP) */
+ /* Install swsetup for tnl->Driver.Render.*:
+ */
+ _swsetup_Wakeup(ctx);
+
fxSetupDDSpanPointers(ctx);
fxDDUpdateDDPointers(ctx, ~0);
}
struct gl_texture_object *tObj, GLint where);
extern void fxInitPixelTables(fxMesaContext fxMesa, GLboolean bgrOrder);
+extern void fxCheckIsInHardware(GLcontext *ctx);
+
+extern GLboolean fx_check_IsInHardware(GLcontext *ctx);
#endif
}
}
+#if 00
static void
fxSetupTextureSingleTMU(GLcontext * ctx, GLuint textureset)
{
fxSetupTextureSingleTMU_NoLock(ctx, textureset);
END_BOARD_LOCK();
}
+#endif
+
/************************* Double Texture Set ***************************/
-static void fxChooseRenderState(GLcontext *ctx)
+void fxDDChooseRenderState(GLcontext *ctx)
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
fxMesaContext fxMesa = FX_CONTEXT(ctx);
}
}
+
/**********************************************************************/
/* Runtime render state and callbacks */
/**********************************************************************/
GLuint oldfallback = !fxMesa->is_in_hardware;
GLuint newfallback;
- fxMesa->is_in_hardware = check_IsInHardware( ctx );
+ fxMesa->is_in_hardware = fx_check_IsInHardware( ctx );
newfallback = !fxMesa->is_in_hardware;
if (newfallback) {
tnl->Driver.Render.ResetLineStipple = _swrast_ResetLineStipple;
tnl->Driver.Render.BuildVertices = fxBuildVertices;
tnl->Driver.Render.Multipass = 0;
+#if 000
fxDDChooseSetupState(ctx);
+#endif
fxDDChooseRenderState(ctx);
}
}
}
+#if 00
void fxDDInitTriFuncs( GLcontext *ctx )
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
(void) fx_print_vertex;
}
+#endif
+
#else
void fxPrintSetupFlags(char *msg, GLuint flags )
{
- fprintf(stderr, "%s(%x): %s%s%s%s\n",
+ fprintf(stderr, "%s(%x): %s%s%s%s%s\n",
msg,
(int)flags,
(flags & SETUP_XYZW) ? " xyzw," : "",