gallium/ddebug: dump missing members of pipe_draw_info
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 7 Apr 2017 14:14:52 +0000 (16:14 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 14 Apr 2017 20:50:54 +0000 (22:50 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_dump_state.c
src/gallium/drivers/ddebug/dd_draw.c

index 06d5e788fae26d26372a7621bf032c9bd362571d..105e5c4bc388a5c175bbf0e98a93ebd76dd3a3a0 100644 (file)
@@ -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);
 }
index 5cbc2b9e48cee3d3651b18a897d5710ddf3932d4..6e96c7247a3ad5c1e4795ab9648f8ff8880ebc65 100644 (file)
@@ -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 */