summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_link.c
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2016-06-03 14:24:19 -0700
committerBrian Paul <[email protected]>2016-06-06 10:20:45 -0600
commit304b5a14461ffd2d09cd3ba719da1c7b76966a9c (patch)
tree87541ff6a7657ace52739ea27a69789167b44a6b /src/gallium/drivers/svga/svga_link.c
parent4f1cccf570112f93265a4cace504eb763fa8f73e (diff)
svga: print shader linkage info when tgsi debug bit is on
When TGSI debug flag is enabled, print the shader linkage info as well. Tested with mesa demos with SVGA_DEBUG=tgsi Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_link.c')
-rw-r--r--src/gallium/drivers/svga/svga_link.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_link.c b/src/gallium/drivers/svga/svga_link.c
index 0aaaada4c60..5bc7f6164d6 100644
--- a/src/gallium/drivers/svga/svga_link.c
+++ b/src/gallium/drivers/svga/svga_link.c
@@ -25,6 +25,7 @@
#include "svga_context.h"
#include "svga_link.h"
+#include "svga_debug.h"
#include "tgsi/tgsi_strings.h"
@@ -97,13 +98,15 @@ svga_link_shaders(const struct tgsi_shader_info *outshader_info,
}
/* Debug */
- if (0) {
+ if (SVGA_DEBUG & DEBUG_TGSI) {
unsigned reg = 0;
+ debug_printf("### linkage info:\n");
+
for (i = 0; i < linkage->num_inputs; i++) {
assert(linkage->input_map[i] != INVALID_INDEX);
- debug_printf("input shader input[%d] slot %u %s %u %s\n",
+ debug_printf(" input[%d] slot %u %s %u %s\n",
i,
linkage->input_map[i],
tgsi_semantic_names[inshader_info->input_semantic_name[i]],