summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/glide/fxdd.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-09-18 22:05:36 +0000
committerKeith Whitwell <[email protected]>2001-09-18 22:05:36 +0000
commite9479f24ab12081e6ad48b70b80822ff97f5cd3d (patch)
treeef28ac20109178e11fe35d78c9a25751251b10b6 /src/mesa/drivers/glide/fxdd.c
parent573dd2206b1f3653fd10796e1de13c058d878e32 (diff)
Fix FX driver to the point where gears & morph3d work.
Textures are broken (eg. isosurf).
Diffstat (limited to 'src/mesa/drivers/glide/fxdd.c')
-rw-r--r--src/mesa/drivers/glide/fxdd.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c
index 28341a08bba..d576fd470fa 100644
--- a/src/mesa/drivers/glide/fxdd.c
+++ b/src/mesa/drivers/glide/fxdd.c
@@ -657,20 +657,11 @@ int
fxDDInitFxMesaContext(fxMesaContext fxMesa)
{
int i;
- static int firsttime = 1;
for (i = 0; i < 256; i++) {
gl_ubyte_to_float_255_color_tab[i] = (float) i;
}
- if (firsttime) {
-#if 00
- fxDDSetupInit();
- fxDDTrifuncInit();
-#endif
- firsttime = 0;
- }
-
FX_setupGrVertexLayout();
if (getenv("FX_EMULATE_SINGLE_TMU"))
@@ -767,6 +758,7 @@ fxDDInitFxMesaContext(fxMesaContext fxMesa)
fxAllocVB(fxMesa->glCtx);
fxSetupDDPointers(fxMesa->glCtx);
+ fxDDInitTriFuncs(fxMesa->glCtx);
/* Tell the software rasterizer to use pixel fog always.
*/
@@ -987,10 +979,9 @@ fxDDUpdateDDPointers(GLcontext * ctx, GLuint 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
+ fxChooseVertexState(ctx);
}
if (new_state & _NEW_TEXTURE)
@@ -1061,11 +1052,6 @@ fxSetupDDPointers(GLcontext * ctx)
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);
}