[Mesa-dev] [PATCH 6/6] r600g: dump vertex elements state along with the fetch shader

Marek Olšák maraeo at gmail.com
Fri Mar 1 08:55:35 PST 2013


---
 src/gallium/drivers/r600/r600_asm.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 805467e..4e0cd01 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"
 
@@ -2336,6 +2337,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");
 	}
-- 
1.7.10.4



More information about the mesa-dev mailing list