Lines Matching refs:usage
43 unsigned usage, in r600_get_transfer() argument
53 transfer->transfer.usage = usage; in r600_get_transfer()
93 if (transfer->usage & PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE && in r600_buffer_transfer_map()
94 !(transfer->usage & PIPE_TRANSFER_UNSYNCHRONIZED)) { in r600_buffer_transfer_map()
95 assert(transfer->usage & PIPE_TRANSFER_WRITE); in r600_buffer_transfer_map()
108 rbuffer->b.b.bind, rbuffer->b.b.usage); in r600_buffer_transfer_map()
134 else if ((transfer->usage & PIPE_TRANSFER_DISCARD_RANGE) && in r600_buffer_transfer_map()
135 !(transfer->usage & PIPE_TRANSFER_UNSYNCHRONIZED) && in r600_buffer_transfer_map()
139 assert(transfer->usage & PIPE_TRANSFER_WRITE); in r600_buffer_transfer_map()
155 data = rctx->ws->buffer_map(rbuffer->cs_buf, rctx->cs, transfer->usage); in r600_buffer_transfer_map()
200 unsigned bind, unsigned usage) in r600_init_resource() argument
208 if (usage == PIPE_USAGE_STAGING) { in r600_init_resource()
214 switch(usage) { in r600_init_resource()
253 if (!r600_init_resource(rscreen, rbuffer, templ->width0, alignment, templ->bind, templ->usage)) { in r600_buffer_create()