[Mesa-dev] [PATCH 1/2] gallium/ddebug: dump missing members of pipe_draw_info

Nicolai Hähnle nhaehnle at gmail.com
Thu Apr 13 18:23:32 UTC 2017


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

---
 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 06d5e78..105e5c4 100644
--- a/src/gallium/auxiliary/util/u_dump_state.c
+++ b/src/gallium/auxiliary/util/u_dump_state.c
@@ -919,33 +919,38 @@ util_dump_draw_info(FILE *stream, const struct pipe_draw_info *state)
 
    util_dump_member(stream, bool, state, indexed);
 
    util_dump_member(stream, enum_prim_mode, state, mode);
    util_dump_member(stream, uint, state, start);
    util_dump_member(stream, uint, state, count);
 
    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);
    util_dump_member(stream, uint, state, min_index);
    util_dump_member(stream, uint, state, max_index);
 
    util_dump_member(stream, bool, state, primitive_restart);
    util_dump_member(stream, uint, state, restart_index);
 
    util_dump_member(stream, ptr, state, count_from_stream_output);
 
    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);
 }
 
 void util_dump_box(FILE *stream, const struct pipe_box *box)
 {
    if (!box) {
       util_dump_null(stream);
       return;
    }
diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c
index 5cbc2b9..6e96c72 100644
--- a/src/gallium/drivers/ddebug/dd_draw.c
+++ b/src/gallium/drivers/ddebug/dd_draw.c
@@ -213,20 +213,22 @@ dd_dump_draw_vbo(struct dd_draw_state *dstate, struct pipe_draw_info *info, FILE
    if (info->indexed) {
       DUMP(index_buffer, &dstate->index_buffer);
       if (dstate->index_buffer.buffer)
          DUMP_M(resource, &dstate->index_buffer, buffer);
    }
    if (info->count_from_stream_output)
       DUMP_M(stream_output_target, info,
              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 */
 
    dd_dump_render_condition(dstate, f);
 
    for (i = 0; i < PIPE_MAX_ATTRIBS; i++)
       if (dstate->vertex_buffers[i].buffer ||
           dstate->vertex_buffers[i].user_buffer) {
          DUMP_I(vertex_buffer, &dstate->vertex_buffers[i], i);
-- 
2.9.3



More information about the mesa-dev mailing list