gallium: new/better debug code (disabled)

This commit is contained in:
Brian Paul
2008-08-07 13:30:49 -06:00
parent 600aa7501f
commit b1ff7dac53
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -284,9 +284,9 @@ static void print_vertex(const struct setup_context *setup,
const float (*v)[4])
{
int i;
debug_printf("Vertex: (%p)\n", v);
debug_printf(" Vertex: (%p)\n", v);
for (i = 0; i < setup->quad.nr_attrs; i++) {
debug_printf(" %d: %f %f %f %f\n", i,
debug_printf(" %d: %f %f %f %f\n", i,
v[i][0], v[i][1], v[i][2], v[i][3]);
}
}
@@ -619,6 +619,13 @@ get_texel(struct tgsi_sampler *sampler,
rgba[1][j] = tile->data.color[ty][tx][1];
rgba[2][j] = tile->data.color[ty][tx][2];
rgba[3][j] = tile->data.color[ty][tx][3];
if (0)
{
char fmt[100];
pf_sprint_name( fmt, sampler->texture->format);
printf("Get texel %f %f %f %f from %s\n",
rgba[0][j], rgba[1][j], rgba[2][j], rgba[3][j], fmt);
}
}
}