r5xx: Change debug info for readability.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Thu, 22 May 2008 06:33:13 +0000 (23:33 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Thu, 22 May 2008 06:33:13 +0000 (23:33 -0700)
It's weird seeing the compiled program before the assembly, that's all.

src/mesa/drivers/dri/r300/r500_fragprog.c

index e67ff98a9abc2aa9af9f9d3f7f13a22c2742a110..f0c7fed7cbfedeadd63a54f16f9780b71024e2b9 100644 (file)
@@ -1141,11 +1141,11 @@ void r500TranslateFragmentShader(r300ContextPtr r300,
 
                fp->translated = GL_TRUE;
                if (RADEON_DEBUG & DEBUG_PIXEL) {
-                       dump_program(fp);
                        fprintf(stderr, "Mesa program:\n");
                        fprintf(stderr, "-------------\n");
                        _mesa_print_program(&fp->mesa_program.Base);
                        fflush(stdout);
+                       dump_program(fp);
                }