summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-11-10 00:48:33 -0800
committerKenneth Graunke <kenneth@whitecape.org>2015-11-13 16:08:51 -0800
commita4ba476c30ebcb99694c6167ac9b8af9414cb656 (patch)
tree9bc3d7f311b35713b32eb48d69c8711f43b5c1b9 /src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
parentf88c175a29bb287d41ef90343eb6670525475a06 (diff)
downloadexternal_mesa3d-a4ba476c30ebcb99694c6167ac9b8af9414cb656.zip
external_mesa3d-a4ba476c30ebcb99694c6167ac9b8af9414cb656.tar.gz
external_mesa3d-a4ba476c30ebcb99694c6167ac9b8af9414cb656.tar.bz2
i965: Print input/output VUE maps on INTEL_DEBUG=vs, gs.
I've been carrying around a patch to do this for the last few months, and it's been exceedingly useful for debugging GS and tessellation problems. I've caught lots of bugs by inspecting the interface expectations of two adjacent stages. It's not that much spam, so I figure we may as well just print it. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
index 49c1083..1a09f76 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
@@ -812,6 +812,12 @@ brw_compile_gs(const struct brw_compiler *compiler, void *log_data,
/* Now that prog_data setup is done, we are ready to actually compile the
* program.
*/
+ if (unlikely(INTEL_DEBUG & DEBUG_GS)) {
+ fprintf(stderr, "GS Input ");
+ brw_print_vue_map(stderr, &c.input_vue_map);
+ fprintf(stderr, "GS Output ");
+ brw_print_vue_map(stderr, &prog_data->base.vue_map);
+ }
if (compiler->scalar_gs) {
/* TODO: Support instanced GS. We have basically no tests... */