summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-03-01 16:58:03 +0100
committerMarek Olšák <[email protected]>2013-03-11 13:43:36 +0100
commit65b2a449bc75937b94a05bebeea8c2d0f2fd247a (patch)
treed6e0af40c85d0e86b2f2223422261d6ecf33deb3 /src/gallium/drivers/r600
parent3f0a51d677bc5210385677e626eb23345470344a (diff)
r600g: dump vertex elements state along with the fetch shader
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_asm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index fb6ec879434..0d570ca2505 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -28,6 +28,7 @@
#include <errno.h>
#include <byteswap.h>
+#include "util/u_dump.h"
#include "util/u_memory.h"
#include "pipe/p_shader_tokens.h"
@@ -2333,6 +2334,13 @@ void *r600_create_vertex_fetch_shader(struct pipe_context *ctx,
if (rctx->screen->debug_flags & DBG_FS) {
fprintf(stderr, "--------------------------------------------------------------\n");
+ fprintf(stderr, "Vertex elements state:\n");
+ for (i = 0; i < count; i++) {
+ fprintf(stderr, " ");
+ util_dump_vertex_element(stderr, elements+i);
+ fprintf(stderr, "\n");
+ }
+
r600_bytecode_disasm(&bc);
fprintf(stderr, "______________________________________________________________\n");
}