gallium: add async debug message forwarding helper
[mesa.git] / src / gallium / auxiliary / util / u_helpers.h
index 2b382a1a54e1fce28ec0975d18972de7c14d3f76..ab970d791b1cc21e2445f10346f0e552333d9c38 100644 (file)
@@ -45,13 +45,10 @@ void util_set_vertex_buffers_count(struct pipe_vertex_buffer *dst,
                                    const struct pipe_vertex_buffer *src,
                                    unsigned start_slot, unsigned count);
 
-void util_set_index_buffer(struct pipe_index_buffer *dst,
-                           const struct pipe_index_buffer *src);
-
-bool util_save_and_upload_index_buffer(struct pipe_context *pipe,
-                                       const struct pipe_draw_info *info,
-                                       const struct pipe_index_buffer *ib,
-                                       struct pipe_index_buffer *out_saved);
+bool util_upload_index_buffer(struct pipe_context *pipe,
+                              const struct pipe_draw_info *info,
+                              struct pipe_resource **out_buffer,
+                              unsigned *out_offset);
 
 struct pipe_query *
 util_begin_pipestat_query(struct pipe_context *ctx);