From d15b1f6e2d8b250656e7023d48cdfd623511154e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Fri, 7 Apr 2017 16:14:52 +0200 Subject: [PATCH] gallium/ddebug: dump missing members of pipe_draw_info MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/gallium/auxiliary/util/u_dump_state.c | 5 +++++ src/gallium/drivers/ddebug/dd_draw.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/gallium/auxiliary/util/u_dump_state.c b/src/gallium/auxiliary/util/u_dump_state.c index 06d5e788fae..105e5c4bc38 100644 --- a/src/gallium/auxiliary/util/u_dump_state.c +++ b/src/gallium/auxiliary/util/u_dump_state.c @@ -926,6 +926,8 @@ util_dump_draw_info(FILE *stream, const struct pipe_draw_info *state) util_dump_member(stream, uint, state, start_instance); util_dump_member(stream, uint, state, instance_count); + util_dump_member(stream, uint, state, drawid); + util_dump_member(stream, uint, state, vertices_per_patch); util_dump_member(stream, int, state, index_bias); @@ -939,6 +941,9 @@ util_dump_draw_info(FILE *stream, const struct pipe_draw_info *state) util_dump_member(stream, ptr, state, indirect); util_dump_member(stream, uint, state, indirect_offset); + util_dump_member(stream, uint, state, indirect_stride); + util_dump_member(stream, uint, state, indirect_count); + util_dump_member(stream, uint, state, indirect_params_offset); util_dump_struct_end(stream); } diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c index 5cbc2b9e48c..6e96c7247a3 100644 --- a/src/gallium/drivers/ddebug/dd_draw.c +++ b/src/gallium/drivers/ddebug/dd_draw.c @@ -220,6 +220,8 @@ dd_dump_draw_vbo(struct dd_draw_state *dstate, struct pipe_draw_info *info, FILE count_from_stream_output); if (info->indirect) DUMP_M(resource, info, indirect); + if (info->indirect_params) + DUMP_M(resource, info, indirect_params); fprintf(f, "\n"); /* TODO: dump active queries */ -- 2.30.2