aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_fragprog.c
diff options
context:
space:
mode:
authorNicolai Haehnle <[email protected]>2008-06-14 03:34:09 +0200
committerNicolai Haehnle <[email protected]>2008-06-14 04:15:20 +0200
commit2882e5162525138316db9a1ab539a17498d06da1 (patch)
tree91e1eeeca3c080254f468b17804ad858e5930b01 /src/mesa/drivers/dri/r300/r300_fragprog.c
parente34dc8227c1fa8bc9ffcd311de701053a633a7ec (diff)
r300: Add radeonCompilerDump for debugging
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_fragprog.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_fragprog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_fragprog.c b/src/mesa/drivers/dri/r300/r300_fragprog.c
index 4c6289298e7..814ccd3eacc 100644
--- a/src/mesa/drivers/dri/r300/r300_fragprog.c
+++ b/src/mesa/drivers/dri/r300/r300_fragprog.c
@@ -301,6 +301,11 @@ void r300TranslateFragmentShader(r300ContextPtr r300,
&compiler.compiler.Clauses[0],
1, transformations);
+ if (RADEON_DEBUG & DEBUG_PIXEL) {
+ _mesa_printf("Compiler state after transformations:\n");
+ radeonCompilerDump(&compiler.compiler);
+ }
+
if (!r300FragmentProgramEmit(&compiler))
fp->error = GL_TRUE;