summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vb_render.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2004-01-05 09:43:42 +0000
committerKeith Whitwell <[email protected]>2004-01-05 09:43:42 +0000
commit790734045b69c47b1525fbf9106a7ca5a8eb7416 (patch)
tree6d071a1bfea29d14bc132414cc62a18e0b5fb51f /src/mesa/tnl/t_vb_render.c
parenteffc73931f86c7961b4eb296d2d4c5d91624a9e3 (diff)
Re-commit t_vertex.[ch] changes to fd.o server.
Diffstat (limited to 'src/mesa/tnl/t_vb_render.c')
-rw-r--r--src/mesa/tnl/t_vb_render.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/src/mesa/tnl/t_vb_render.c b/src/mesa/tnl/t_vb_render.c
index 24cf0285555..1c501689683 100644
--- a/src/mesa/tnl/t_vb_render.c
+++ b/src/mesa/tnl/t_vb_render.c
@@ -342,38 +342,7 @@ static GLboolean run_render( GLcontext *ctx,
*/
static void check_render( GLcontext *ctx, struct tnl_pipeline_stage *stage )
{
- GLuint inputs = _TNL_BIT_POS;
- GLuint i;
-
- if (ctx->Visual.rgbMode) {
- inputs |= _TNL_BIT_COLOR0;
-
- if (NEED_SECONDARY_COLOR(ctx))
- inputs |= _TNL_BIT_COLOR1;
-
- if (ctx->Texture._EnabledCoordUnits) {
- for (i = 0 ; i < ctx->Const.MaxTextureUnits ; i++) {
- if (ctx->Texture._EnabledCoordUnits & (1 << i))
- inputs |= _TNL_BIT_TEX(i);
- }
- }
- }
- else {
- inputs |= _TNL_BIT_INDEX;
- }
-
- /* How do drivers turn this off?
- */
- if (ctx->Fog.Enabled)
- inputs |= _TNL_BIT_FOG;
-
- if (ctx->Polygon.FrontMode != GL_FILL || ctx->Polygon.BackMode != GL_FILL)
- inputs |= _TNL_BIT_EDGEFLAG;
-
- if (ctx->RenderMode==GL_FEEDBACK)
- inputs |= _TNL_BITS_TEX_ANY;
-
- stage->inputs = inputs;
+ stage->inputs = TNL_CONTEXT(ctx)->render_inputs;
}