aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_dump_state.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-05-08 17:29:03 +0200
committerNicolai Hähnle <[email protected]>2017-05-10 08:58:32 +0200
commitfa1519d0c96616e9cb3f7869864dcccb805ec89d (patch)
tree0dd4627e51b2b07ea8219a176c71b29bb6d20dfb /src/gallium/auxiliary/util/u_dump_state.c
parentbcc37711cd9990eed4464fa80490d862b4202c94 (diff)
gallium/util: dump tokens in util_dump_shader_state only if type is TGSI
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_dump_state.c')
-rw-r--r--src/gallium/auxiliary/util/u_dump_state.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/util/u_dump_state.c b/src/gallium/auxiliary/util/u_dump_state.c
index 9bb9095938b..bf27a4e0eea 100644
--- a/src/gallium/auxiliary/util/u_dump_state.c
+++ b/src/gallium/auxiliary/util/u_dump_state.c
@@ -463,11 +463,13 @@ util_dump_shader_state(FILE *stream, const struct pipe_shader_state *state)
util_dump_struct_begin(stream, "pipe_shader_state");
- util_dump_member_begin(stream, "tokens");
- fprintf(stream, "\"\n");
- tgsi_dump_to_file(state->tokens, 0, stream);
- fprintf(stream, "\"");
- util_dump_member_end(stream);
+ if (state->type == PIPE_SHADER_IR_TGSI) {
+ util_dump_member_begin(stream, "tokens");
+ fprintf(stream, "\"\n");
+ tgsi_dump_to_file(state->tokens, 0, stream);
+ fprintf(stream, "\"");
+ util_dump_member_end(stream);
+ }
if (state->stream_output.num_outputs) {
util_dump_member_begin(stream, "stream_output");