summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_debug.c
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-04-05 01:00:25 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-04-05 01:00:25 -0700
commitce7963f338ab95b06619074bc6aaf99c96ff5f11 (patch)
treef53e1e361b07345c0be4bcf160c61db7457bd44e /src/gallium/drivers/r300/r300_debug.c
parent484795ff14faa794b7a150f29554a73e0113f67d (diff)
r300-gallium: Properly interface with Draw for vert shaders.
Diffstat (limited to 'src/gallium/drivers/r300/r300_debug.c')
-rw-r--r--src/gallium/drivers/r300/r300_debug.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_debug.c b/src/gallium/drivers/r300/r300_debug.c
index 8d44756c33..dd63136c9d 100644
--- a/src/gallium/drivers/r300/r300_debug.c
+++ b/src/gallium/drivers/r300/r300_debug.c
@@ -224,3 +224,15 @@ void r500_fs_dump(struct r500_fragment_shader* fs)
}
}
}
+
+void r300_vs_dump(struct r300_vertex_shader* vs)
+{
+ int i;
+
+ for (i = 0; i < vs->instruction_count; i++) {
+ debug_printf("inst0: 0x%x\n", vs->instructions[i].inst0);
+ debug_printf("inst1: 0x%x\n", vs->instructions[i].inst1);
+ debug_printf("inst2: 0x%x\n", vs->instructions[i].inst2);
+ debug_printf("inst3: 0x%x\n", vs->instructions[i].inst3);
+ }
+}