Mesa (master): r600g: dump vertex elements state along with the fetch shader
Marek Olšák
mareko at kemper.freedesktop.org
Mon Mar 11 12:51:46 UTC 2013
Module: Mesa
Branch: master
Commit: 65b2a449bc75937b94a05bebeea8c2d0f2fd247a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=65b2a449bc75937b94a05bebeea8c2d0f2fd247a
Author: Marek Olšák <maraeo at gmail.com>
Date: Fri Mar 1 16:58:03 2013 +0100
r600g: dump vertex elements state along with the fetch shader
---
src/gallium/drivers/r600/r600_asm.c | 8 ++++++++
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 fb6ec87..0d570ca 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");
}
More information about the mesa-commit
mailing list