summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2014-01-21 14:54:05 +1000
committerDave Airlie <[email protected]>2014-01-22 14:08:03 +1000
commit2212a97fe36f0d20c4c8dc1db1a3c7da08126f95 (patch)
treeabaef47595830e2bfca0e22ee7a18c95536819de
parent178c1bf1adef9e3871b1ec35da839fc04fe481cf (diff)
llvmpipe: dump geometry shaders when using LP_DEBUG=tgsi
for consistency with vs and fs dumpers. Reviewed-by: Brian Paul <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_gs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_gs.c b/src/gallium/drivers/llvmpipe/lp_state_gs.c
index 8f4f3894e01..74cf9923488 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_gs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_gs.c
@@ -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;