From 6f973f33679e034b7cb63806f1ddfabdbdd70123 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 22 Apr 2005 12:51:19 +0000 Subject: Simplify the pipeline_stage structure - remove input/output fields, input tracking removed. - remove state fields, the validate function now called on every statechange. - add an explicit 'create' function. Add in code to build vertex program to implement current t&l state. Still disabled, but turn on with a #define in t_vp_build.h. --- src/mesa/tnl/t_vb_lighttmp.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/mesa/tnl/t_vb_lighttmp.h') diff --git a/src/mesa/tnl/t_vb_lighttmp.h b/src/mesa/tnl/t_vb_lighttmp.h index 2d33f71a8c0..a27f708421e 100644 --- a/src/mesa/tnl/t_vb_lighttmp.h +++ b/src/mesa/tnl/t_vb_lighttmp.h @@ -82,10 +82,6 @@ static void TAG(light_rgba_spec)( GLcontext *ctx, sumA[1] = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_DIFFUSE][3]; #endif - /* Side-effects done, can we finish now? - */ - if (stage->changed_inputs == 0) - return; store->LitColor[0].stride = 16; store->LitColor[1].stride = 16; @@ -271,9 +267,6 @@ static void TAG(light_rgba)( GLcontext *ctx, sumA[1] = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_DIFFUSE][3]; #endif - if (stage->changed_inputs == 0) - return; - store->LitColor[0].stride = 16; store->LitColor[1].stride = 16; @@ -461,9 +454,6 @@ static void TAG(light_fast_rgba_single)( GLcontext *ctx, VB->ColorPtr[1] = &store->LitColor[1]; #endif - if (stage->changed_inputs == 0) - return; - if (nr > 1) { store->LitColor[0].stride = 16; store->LitColor[1].stride = 16; @@ -574,9 +564,6 @@ static void TAG(light_fast_rgba)( GLcontext *ctx, VB->ColorPtr[1] = &store->LitColor[1]; #endif - if (stage->changed_inputs == 0) - return; - if (nr > 1) { store->LitColor[0].stride = 16; store->LitColor[1].stride = 16; @@ -683,9 +670,6 @@ static void TAG(light_ci)( GLcontext *ctx, VB->IndexPtr[1] = &store->LitIndex[1]; #endif - if (stage->changed_inputs == 0) - return; - indexResult[0] = (GLfloat *)VB->IndexPtr[0]->data; #if IDX & LIGHT_TWOSIDE indexResult[1] = (GLfloat *)VB->IndexPtr[1]->data; -- cgit v1.2.3