Lines Matching refs:rbuffer
43 struct si_resource *rbuffer = si_resource(buf); in r600_buffer_destroy() local
45 pb_reference(&rbuffer->buf, NULL); in r600_buffer_destroy()
46 FREE(rbuffer); in r600_buffer_destroy()
75 struct si_resource *rbuffer = si_resource(transfer->resource); in r600_buffer_transfer_map() local
79 data = rctx->ws->buffer_map(rbuffer->cs_buf, rctx->cs, transfer->usage); in r600_buffer_transfer_map()
163 struct si_resource *rbuffer; in si_buffer_create() local
167 rbuffer = MALLOC_STRUCT(si_resource); in si_buffer_create()
169 rbuffer->b.b = *templ; in si_buffer_create()
170 pipe_reference_init(&rbuffer->b.b.reference, 1); in si_buffer_create()
171 rbuffer->b.b.screen = screen; in si_buffer_create()
172 rbuffer->b.vtbl = &r600_buffer_vtbl; in si_buffer_create()
174 if (!si_init_resource(rscreen, rbuffer, templ->width0, alignment, templ->bind, templ->usage)) { in si_buffer_create()
175 FREE(rbuffer); in si_buffer_create()
178 return &rbuffer->b.b; in si_buffer_create()
188 void r600_upload_const_buffer(struct r600_context *rctx, struct si_resource **rbuffer, in r600_upload_const_buffer() argument
192 *rbuffer = NULL; in r600_upload_const_buffer()
208 (struct pipe_resource**)rbuffer); in r600_upload_const_buffer()
213 (struct pipe_resource**)rbuffer); in r600_upload_const_buffer()