r300: Dump fragment program after translation if RADEON_DEBUG=pixel is set
authorNicolai Haehnle <nhaehnle@gmail.com>
Mon, 19 Mar 2007 19:01:20 +0000 (20:01 +0100)
committerNicolai Haehnle <nhaehnle@gmail.com>
Mon, 19 Mar 2007 19:02:19 +0000 (20:02 +0100)
src/mesa/drivers/dri/r300/r300_fragprog.c

index 93b9c396354d9c47ce4edeb41b1348fa6b6e871d..6262dc7a449928fccec91d381188d94052b3a326 100644 (file)
@@ -2268,7 +2268,7 @@ void r300_translate_fragment_shader(r300ContextPtr r300, struct r300_fragment_pr
                assert(rp->alu_end >= 0);
 
                rp->translated = GL_TRUE;
-               if (1) dump_program(rp);
+               if (RADEON_DEBUG & DEBUG_PIXEL) dump_program(rp);
                r300UpdateStateParameters(rp->ctx, _NEW_PROGRAM);
        }