diff options
author | Keith Whitwell <[email protected]> | 2005-04-22 12:51:19 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-04-22 12:51:19 +0000 |
commit | 6f973f33679e034b7cb63806f1ddfabdbdd70123 (patch) | |
tree | 31580bc32d1b87a3dddd8f7c8bc5f404b407c637 /src/mesa/tnl/t_vb_lighttmp.h | |
parent | 6a13c7da4c79f7e811fbddc68f59441070ff0cc8 (diff) |
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.
Diffstat (limited to 'src/mesa/tnl/t_vb_lighttmp.h')
-rw-r--r-- | src/mesa/tnl/t_vb_lighttmp.h | 16 |
1 files changed, 0 insertions, 16 deletions
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; |