summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-04-22 22:47:09 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-04-22 22:47:09 +0000
commit0d4af83f252d51f504b7df59a9fab7f83672b9ba (patch)
tree49c2211bfae64229ef62aaab6ac086aad4979df9 /src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c
parentbf87f864934e174b3493592d5d107f012aac0842 (diff)
Updates for pipeline_stage struct changes.
Diffstat (limited to 'src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c')
-rw-r--r--src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c41
1 files changed, 6 insertions, 35 deletions
diff --git a/src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c b/src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c
index c07370474a..3c10f96281 100644
--- a/src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c
+++ b/src/mesa/drivers/windows/gldirect/dx8/gld_vb_mesa_render_dx8.c
@@ -1,4 +1,4 @@
-/* $Id: gld_vb_mesa_render_dx8.c,v 1.4 2005/04/15 17:17:47 bencrossman Exp $ */
+/* $Id: gld_vb_mesa_render_dx8.c,v 1.5 2005/04/22 22:47:10 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -317,7 +317,6 @@ static GLboolean _gld_mesa_render_stage_run(
TNLcontext *tnl = TNL_CONTEXT(ctx);
struct vertex_buffer *VB = &tnl->vb;
- GLuint new_inputs = stage->changed_inputs;
tnl_render_func *tab;
GLint pass = 0;
GLD_pb_dx8 *gldPB;
@@ -379,7 +378,7 @@ static GLboolean _gld_mesa_render_stage_run(
ASSERT(tnl->Driver.Render.ClippedPolygon);
ASSERT(tnl->Driver.Render.Finish);
- tnl->Driver.Render.BuildVertices( ctx, 0, VB->Count, new_inputs );
+ tnl->Driver.Render.BuildVertices( ctx, 0, VB->Count, ~0 );
if (VB->ClipOrMask) {
tab = VB->Elts ? clip_render_tab_elts : clip_render_tab_verts;
@@ -436,44 +435,16 @@ static GLboolean _gld_mesa_render_stage_run(
-/* Quite a bit of work involved in finding out the inputs for the
- * render stage.
- */
-static void _gld_mesa_render_stage_check(
- GLcontext *ctx,
- struct tnl_pipeline_stage *stage)
-{
- stage->inputs = TNL_CONTEXT(ctx)->render_inputs;
-}
-
-//---------------------------------------------------------------------------
-
-// Destructor
-static void _gld_mesa_render_stage_dtr(
- struct tnl_pipeline_stage *stage)
-{
-}
//---------------------------------------------------------------------------
const struct tnl_pipeline_stage _gld_mesa_render_stage =
{
"gld_mesa_render_stage",
- (_NEW_BUFFERS |
- _DD_NEW_SEPARATE_SPECULAR |
- _DD_NEW_FLATSHADE |
- _NEW_TEXTURE|
- _NEW_LIGHT|
- _NEW_POINT|
- _NEW_FOG|
- _DD_NEW_TRI_UNFILLED |
- _NEW_RENDERMODE), // re-check (new inputs, interp function)
- 0, /* re-run (always runs) */
- GL_TRUE, /* active */
- 0, 0, /* inputs (set in check_render), outputs */
- 0, 0, /* changed_inputs, private */
- _gld_mesa_render_stage_dtr, /* destructor */
- _gld_mesa_render_stage_check, /* check */
+ NULL,
+ NULL,
+ NULL,
+ NULL,
_gld_mesa_render_stage_run /* run */
};