diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-08 13:29:02 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-05-10 08:58:23 +0200 |
commit | bcc37711cd9990eed4464fa80490d862b4202c94 (patch) | |
tree | 424d0e55678a1fa1a461a84a157e9ef75f8cfea5 /src/gallium | |
parent | 45ccb661d8b2aba00f1bdc0d3de4efe5b2a4a9f9 (diff) |
gallium/util: add util_dump_grid_info
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_dump.h | 3 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_dump_state.c | 27 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_dump.h b/src/gallium/auxiliary/util/u_dump.h index bce8517b4e6..3a701ac5be9 100644 --- a/src/gallium/auxiliary/util/u_dump.h +++ b/src/gallium/auxiliary/util/u_dump.h @@ -191,6 +191,9 @@ void util_dump_draw_info(FILE *stream, const struct pipe_draw_info *state); void +util_dump_grid_info(FILE *stream, const struct pipe_grid_info *state); + +void util_dump_box(FILE *stream, const struct pipe_box *box); void diff --git a/src/gallium/auxiliary/util/u_dump_state.c b/src/gallium/auxiliary/util/u_dump_state.c index 105e5c4bc38..9bb9095938b 100644 --- a/src/gallium/auxiliary/util/u_dump_state.c +++ b/src/gallium/auxiliary/util/u_dump_state.c @@ -948,6 +948,33 @@ util_dump_draw_info(FILE *stream, const struct pipe_draw_info *state) util_dump_struct_end(stream); } +void util_dump_grid_info(FILE *stream, const struct pipe_grid_info *state) +{ + if (!state) { + util_dump_null(stream); + return; + } + + util_dump_struct_begin(stream, "pipe_grid_info"); + + util_dump_member(stream, uint, state, pc); + util_dump_member(stream, ptr, state, input); + util_dump_member(stream, uint, state, work_dim); + + util_dump_member_begin(stream, "block"); + util_dump_array(stream, uint, state->block, ARRAY_SIZE(state->block)); + util_dump_member_end(stream); + + util_dump_member_begin(stream, "grid"); + util_dump_array(stream, uint, state->grid, ARRAY_SIZE(state->grid)); + util_dump_member_end(stream); + + util_dump_member(stream, ptr, state, indirect); + util_dump_member(stream, uint, state, indirect_offset); + + util_dump_struct_end(stream); +} + void util_dump_box(FILE *stream, const struct pipe_box *box) { if (!box) { |