void r600_set_index_buffer(struct pipe_context *ctx, const struct pipe_index_buffer *ib) { struct r600_pipe_context *rctx = (struct r600_pipe_context *)ctx; u_vbuf_set_index_buffer(rctx->vbuf_mgr, ib); }
void cso_set_index_buffer(struct cso_context *cso, const struct pipe_index_buffer *ib) { struct u_vbuf *vbuf = cso->vbuf; if (vbuf) { u_vbuf_set_index_buffer(vbuf, ib); } else { struct pipe_context *pipe = cso->pipe; pipe->set_index_buffer(pipe, ib); } }