trace_dump_arg(ptr, pipe);
trace_dump_arg(uint, shader);
trace_dump_arg(uint, index);
- if (constant_buffer) {
- trace_dump_struct_begin("pipe_constant_buffer");
- trace_dump_member(ptr, constant_buffer, buffer);
- trace_dump_member(uint, constant_buffer, buffer_offset);
- trace_dump_member(uint, constant_buffer, buffer_size);
- trace_dump_struct_end();
- } else {
- trace_dump_arg(ptr, constant_buffer);
- }
+ trace_dump_arg(constant_buffer, constant_buffer);
pipe->set_constant_buffer(pipe, shader, index,
constant_buffer ? &cb : NULL);
}
+void trace_dump_constant_buffer(const struct pipe_constant_buffer *state)
+{
+ if (!trace_dumping_enabled_locked())
+ return;
+
+ if(!state) {
+ trace_dump_null();
+ return;
+ }
+
+ trace_dump_struct_begin("pipe_constant_buffer");
+ trace_dump_member(ptr, state, buffer);
+ trace_dump_member(uint, state, buffer_offset);
+ trace_dump_member(uint, state, buffer_size);
+ trace_dump_struct_end();
+}
+
+
void trace_dump_draw_info(const struct pipe_draw_info *state)
{
if (!trace_dumping_enabled_locked())
void trace_dump_vertex_element(const struct pipe_vertex_element *state);
+void trace_dump_constant_buffer(const struct pipe_constant_buffer *state);
+
void trace_dump_draw_info(const struct pipe_draw_info *state);
void trace_dump_blit_info(const struct pipe_blit_info *);