remove some testing code
authorAapo Tahkola <aet@rasterburn.org>
Thu, 26 Jan 2006 16:28:54 +0000 (16:28 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Thu, 26 Jan 2006 16:28:54 +0000 (16:28 +0000)
src/mesa/drivers/dri/r300/r300_state.c

index d889a3564855c0feb9536ef5513402946f7d8ec4..84d92f93424711e8bf0b346779dd5d035b89047f 100644 (file)
@@ -1700,36 +1700,6 @@ void r300UpdateShaderStates(r300ContextPtr rmesa)
        r300UpdateTextureState(ctx);
 #endif
 
-#if 0
-#define B_FLAG(x) ((x)?1:0)
-
-       if(hw_tcl_on){
-               int i;
-               GLuint InputsRead;
-               GLuint OutputsWritten;
-               
-               InputsRead = ctx->FragmentProgram._Current->Base.InputsRead;
-               OutputsWritten = CURRENT_VERTEX_SHADER(ctx)->Base.OutputsWritten;
-               
-               for (i=0;i<ctx->Const.MaxTextureUnits;i++) {
-                       /*if(B_FLAG(OutputsWritten & (1 << (VERT_RESULT_TEX0+i))) != B_FLAG(InputsRead & (FRAG_BIT_TEX0<<i))){
-                               fprintf(stderr, "vp_out != fp_in fails for unit %d\n", i);
-                               exit(1);
-                       }*/
-                       /*
-                       if(B_FLAG(ctx->Texture.Unit[i]._ReallyEnabled) != B_FLAG(InputsRead & (FRAG_BIT_TEX0<<i))){
-                               fprintf(stderr, "re != fp_in fails for unit %d\n", i);
-                               exit(1);
-                       }
-                       
-                       if(B_FLAG(ctx->Texture.Unit[i]._ReallyEnabled) != B_FLAG(OutputsWritten & (1 << (VERT_RESULT_TEX0+i)))){
-                               fprintf(stderr, "re != vp_out fails for unit %d\n", i);
-                               exit(1);
-                       }*/
-               }
-       }
-#endif
-       
        r300SetupPixelShader(rmesa);
        r300_setup_textures(ctx);