summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/glide/fxdd.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-08-29 03:58:42 +0000
committerBrian Paul <[email protected]>2001-08-29 03:58:42 +0000
commit04ec0fd71e3ba758e0ddc950ec68c3af4c58b1ab (patch)
tree8e2bd27c2366d62704a56d06312b38235ec0d73f /src/mesa/drivers/glide/fxdd.c
parenta0037ad8b38e25bdb16e64e4da6e5c75cc66a9cd (diff)
changes to allow the driver to compile - still doesn't work though
Diffstat (limited to 'src/mesa/drivers/glide/fxdd.c')
-rw-r--r--src/mesa/drivers/glide/fxdd.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c
index e645f65be68..28341a08bba 100644
--- a/src/mesa/drivers/glide/fxdd.c
+++ b/src/mesa/drivers/glide/fxdd.c
@@ -664,8 +664,10 @@ fxDDInitFxMesaContext(fxMesaContext fxMesa)
}
if (firsttime) {
+#if 00
fxDDSetupInit();
fxDDTrifuncInit();
+#endif
firsttime = 0;
}
@@ -932,7 +934,6 @@ fx_check_IsInHardware(GLcontext * ctx)
-
static void
update_texture_scales(GLcontext * ctx)
{
@@ -958,7 +959,7 @@ 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);
@@ -986,9 +987,10 @@ 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
}
if (new_state & _NEW_TEXTURE)
@@ -1002,6 +1004,8 @@ fxDDUpdateDDPointers(GLcontext * ctx, GLuint new_state)
void
fxSetupDDPointers(GLcontext * ctx)
{
+ TNLcontext *tnl = TNL_CONTEXT(ctx);
+
if (MESA_VERBOSE & VERBOSE_DRIVER) {
fprintf(stderr, "fxmesa: fxSetupDDPointers()\n");
}
@@ -1055,6 +1059,13 @@ fxSetupDDPointers(GLcontext * ctx)
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);
}