r600g: dump vertex elements state along with the fetch shader
authorMarek Olšák <maraeo@gmail.com>
Fri, 1 Mar 2013 15:58:03 +0000 (16:58 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 11 Mar 2013 12:43:36 +0000 (13:43 +0100)
src/gallium/drivers/r600/r600_asm.c

index fb6ec879434b53480bdf88f8b2b0ecc6b873691e..0d570ca250521a58db2e64b6779928a81d76d9bf 100644 (file)
@@ -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");
        }