Lines Matching refs:transfer
47 struct r600_transfer *transfer = util_slab_alloc(&rctx->pool_transfers); in r600_get_transfer() local
51 transfer->transfer.resource = resource; in r600_get_transfer()
52 transfer->transfer.level = level; in r600_get_transfer()
53 transfer->transfer.usage = usage; in r600_get_transfer()
54 transfer->transfer.box = *box; in r600_get_transfer()
55 transfer->transfer.stride = 0; in r600_get_transfer()
56 transfer->transfer.layer_stride = 0; in r600_get_transfer()
57 transfer->transfer.data = NULL; in r600_get_transfer()
58 transfer->staging = NULL; in r600_get_transfer()
59 transfer->offset = 0; in r600_get_transfer()
64 return &transfer->transfer; in r600_get_transfer()
87 struct pipe_transfer *transfer) in r600_buffer_transfer_map() argument
89 struct r600_resource *rbuffer = r600_resource(transfer->resource); in r600_buffer_transfer_map()
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()
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()
138 transfer->box.x % 4 == 0 && transfer->box.width % 4 == 0) { in r600_buffer_transfer_map()
139 assert(transfer->usage & PIPE_TRANSFER_WRITE); in r600_buffer_transfer_map()
145 struct r600_transfer *rtransfer = (struct r600_transfer*)transfer; in r600_buffer_transfer_map()
149 PIPE_USAGE_STAGING, transfer->box.width); in r600_buffer_transfer_map()
155 data = rctx->ws->buffer_map(rbuffer->cs_buf, rctx->cs, transfer->usage); in r600_buffer_transfer_map()
159 return (uint8_t*)data + transfer->box.x; in r600_buffer_transfer_map()
163 struct pipe_transfer *transfer) in r600_buffer_transfer_unmap() argument
165 struct r600_transfer *rtransfer = (struct r600_transfer*)transfer; in r600_buffer_transfer_unmap()
169 u_box_1d(0, transfer->box.width, &box); in r600_buffer_transfer_unmap()
172 r600_copy_buffer(pipe, transfer->resource, transfer->box.x, in r600_buffer_transfer_unmap()
179 struct pipe_transfer *transfer) in r600_transfer_destroy() argument
182 util_slab_free(&rctx->pool_transfers, transfer); in r600_transfer_destroy()