llvmpipe: dump geometry shaders when using LP_DEBUG=tgsi
authorDave Airlie <airlied@redhat.com>
Tue, 21 Jan 2014 04:54:05 +0000 (14:54 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 22 Jan 2014 04:08:03 +0000 (14:08 +1000)
for consistency with vs and fs dumpers.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/llvmpipe/lp_state_gs.c

index 8f4f3894e01dc710837bce400a0446fe5b33a218..74cf9923488f7769e8507babe7febc33513e2e36 100644 (file)
@@ -28,6 +28,7 @@
 #include "lp_context.h"
 #include "lp_state.h"
 #include "lp_texture.h"
+#include "lp_debug.h"
 
 #include "pipe/p_defines.h"
 #include "util/u_memory.h"
@@ -50,8 +51,10 @@ llvmpipe_create_gs_state(struct pipe_context *pipe,
       goto fail;
 
    /* debug */
-   if (0)
+   if (LP_DEBUG & DEBUG_TGSI) {
+      debug_printf("llvmpipe: Create geometry shader %p:\n", (void *)state);
       tgsi_dump(templ->tokens, 0);
+   }
 
    /* copy stream output info */
    state->shader = *templ;