diff options
Diffstat (limited to 'src/gallium/drivers/trace')
-rw-r--r-- | src/gallium/drivers/trace/tr_context.c | 19 | ||||
-rw-r--r-- | src/gallium/drivers/trace/tr_dump_state.c | 25 | ||||
-rw-r--r-- | src/gallium/drivers/trace/tr_dump_state.h | 2 |
3 files changed, 3 insertions, 43 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index eafee7f4fc1..c5563a4844f 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -1034,24 +1034,6 @@ trace_context_set_vertex_buffers(struct pipe_context *_pipe, } -static void -trace_context_set_index_buffer(struct pipe_context *_pipe, - const struct pipe_index_buffer *ib) -{ - struct trace_context *tr_ctx = trace_context(_pipe); - struct pipe_context *pipe = tr_ctx->pipe; - - trace_dump_call_begin("pipe_context", "set_index_buffer"); - - trace_dump_arg(ptr, pipe); - trace_dump_arg(index_buffer, ib); - - pipe->set_index_buffer(pipe, ib); - - trace_dump_call_end(); -} - - static struct pipe_stream_output_target * trace_context_create_stream_output_target(struct pipe_context *_pipe, struct pipe_resource *res, @@ -1804,7 +1786,6 @@ trace_context_create(struct trace_screen *tr_scr, TR_CTX_INIT(create_surface); TR_CTX_INIT(surface_destroy); TR_CTX_INIT(set_vertex_buffers); - TR_CTX_INIT(set_index_buffer); TR_CTX_INIT(create_stream_output_target); TR_CTX_INIT(stream_output_target_destroy); TR_CTX_INIT(set_stream_output_targets); diff --git a/src/gallium/drivers/trace/tr_dump_state.c b/src/gallium/drivers/trace/tr_dump_state.c index e4a5e3b693c..41f7faf513b 100644 --- a/src/gallium/drivers/trace/tr_dump_state.c +++ b/src/gallium/drivers/trace/tr_dump_state.c @@ -661,27 +661,6 @@ void trace_dump_vertex_buffer(const struct pipe_vertex_buffer *state) } -void trace_dump_index_buffer(const struct pipe_index_buffer *state) -{ - if (!trace_dumping_enabled_locked()) - return; - - if (!state) { - trace_dump_null(); - return; - } - - trace_dump_struct_begin("pipe_index_buffer"); - - trace_dump_member(uint, state, index_size); - trace_dump_member(uint, state, offset); - trace_dump_member(ptr, state, buffer); - trace_dump_member(ptr, state, user_buffer); - - trace_dump_struct_end(); -} - - void trace_dump_vertex_element(const struct pipe_vertex_element *state) { if (!trace_dumping_enabled_locked()) @@ -792,7 +771,8 @@ void trace_dump_draw_info(const struct pipe_draw_info *state) trace_dump_struct_begin("pipe_draw_info"); - trace_dump_member(bool, state, indexed); + trace_dump_member(uint, state, index_size); + trace_dump_member(uint, state, has_user_indices); trace_dump_member(uint, state, mode); trace_dump_member(uint, state, start); @@ -810,6 +790,7 @@ void trace_dump_draw_info(const struct pipe_draw_info *state) trace_dump_member(bool, state, primitive_restart); trace_dump_member(uint, state, restart_index); + trace_dump_member(ptr, state, index.resource); trace_dump_member(ptr, state, count_from_stream_output); if (!state->indirect) { diff --git a/src/gallium/drivers/trace/tr_dump_state.h b/src/gallium/drivers/trace/tr_dump_state.h index fd2bc503052..baff0252f9b 100644 --- a/src/gallium/drivers/trace/tr_dump_state.h +++ b/src/gallium/drivers/trace/tr_dump_state.h @@ -74,8 +74,6 @@ void trace_dump_transfer(const struct pipe_transfer *state); void trace_dump_vertex_buffer(const struct pipe_vertex_buffer *state); -void trace_dump_index_buffer(const struct pipe_index_buffer *state); - void trace_dump_vertex_element(const struct pipe_vertex_element *state); void trace_dump_constant_buffer(const struct pipe_constant_buffer *state); |