diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-08 17:29:03 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-05-10 08:58:32 +0200 |
commit | fa1519d0c96616e9cb3f7869864dcccb805ec89d (patch) | |
tree | 0dd4627e51b2b07ea8219a176c71b29bb6d20dfb /src/gallium | |
parent | bcc37711cd9990eed4464fa80490d862b4202c94 (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')
-rw-r--r-- | src/gallium/auxiliary/util/u_dump_state.c | 12 |
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"); |