gallium: new debug code (disabled)
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 2 May 2008 16:37:20 +0000 (10:37 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 2 May 2008 16:37:20 +0000 (10:37 -0600)
src/gallium/drivers/softpipe/sp_tex_sample.c

index 5b63f9799777ac1997f48d0b4ecdccbaed6769a7..be0b57d9fa65df1dcc27e8a39d1ec84d6da0e8c5 100644 (file)
@@ -1051,5 +1051,19 @@ sp_get_samples(struct tgsi_sampler *sampler,
    default:
       assert(0);
    }
+
+#if 0 /* DEBUG */
+   {
+      int i;
+      printf("Sampled at %f, %f, %f:\n", s[0], t[0], p[0]);
+      for (i = 0; i < 4; i++) {
+         printf("Frag %d: %f %f %f %f\n", i,
+                rgba[0][i],
+                rgba[1][i],
+                rgba[2][i],
+                rgba[3][i]);
+      }
+   }
+#endif
 }