diff options
author | Brian Paul <[email protected]> | 2008-05-02 10:37:20 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-02 10:37:20 -0600 |
commit | 3d53d38d5e35386de4793162b9dd32e171927059 (patch) | |
tree | 738d8f0ca9665e5c2d3822825fc4f125eaa30523 | |
parent | cc2af38f2afa0e6003c8338d51c4f5fbabde40e1 (diff) |
gallium: new debug code (disabled)
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tex_sample.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index 5b63f979977..be0b57d9fa6 100644 --- a/src/gallium/drivers/softpipe/sp_tex_sample.c +++ b/src/gallium/drivers/softpipe/sp_tex_sample.c @@ -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 } |