#include "si.h"
#include "si_pipe.h"
-void si_upload_index_buffer(struct si_context *sctx,
- struct pipe_index_buffer *ib, unsigned count)
-{
- u_upload_data(sctx->b.uploader, 0, count * ib->index_size,
- ib->user_buffer, &ib->offset, &ib->buffer);
-}
-
void si_upload_const_buffer(struct si_context *sctx, struct r600_resource **rbuffer,
const uint8_t *ptr, unsigned size,
uint32_t *const_offset)
void si_decompress_color_textures(struct si_context *sctx,
struct si_textures_info *textures);
-/* si_buffer.c */
-void si_upload_index_buffer(struct si_context *sctx,
- struct pipe_index_buffer *ib, unsigned count);
-
-
/* si_pipe.c */
void si_flush(struct pipe_context *ctx, struct pipe_fence_handle **fence,
unsigned flags);
si_translate_index_buffer(sctx, &ib, info->count);
if (ib.user_buffer && !ib.buffer) {
- si_upload_index_buffer(sctx, &ib, info->count);
+ u_upload_data(sctx->b.uploader, 0, info->count * ib.index_size,
+ ib.user_buffer, &ib.offset, &ib.buffer);
}
}