Lines Matching refs:transfer
34 struct pipe_transfer transfer; member
45 r300_transfer(struct pipe_transfer* transfer) in r300_transfer() argument
47 return (struct r300_transfer*)transfer; in r300_transfer()
54 struct pipe_transfer *transfer = (struct pipe_transfer*)r300transfer; in r300_copy_from_tiled_texture() local
55 struct pipe_resource *tex = transfer->resource; in r300_copy_from_tiled_texture()
59 tex, transfer->level, &transfer->box); in r300_copy_from_tiled_texture()
66 struct pipe_transfer *transfer = (struct pipe_transfer*)r300transfer; in r300_copy_into_tiled_texture() local
67 struct pipe_resource *tex = transfer->resource; in r300_copy_into_tiled_texture()
69 u_box_origin_2d(transfer->box.width, transfer->box.height, &src_box); in r300_copy_into_tiled_texture()
71 ctx->resource_copy_region(ctx, tex, transfer->level, in r300_copy_into_tiled_texture()
72 transfer->box.x, transfer->box.y, transfer->box.z, in r300_copy_into_tiled_texture()
104 pipe_resource_reference(&trans->transfer.resource, texture); in r300_texture_get_transfer()
105 trans->transfer.level = level; in r300_texture_get_transfer()
106 trans->transfer.usage = usage; in r300_texture_get_transfer()
107 trans->transfer.box = *box; in r300_texture_get_transfer()
182 trans->transfer.stride = in r300_texture_get_transfer()
193 return &trans->transfer; in r300_texture_get_transfer()
198 trans->transfer.stride = tex->tex.stride_in_bytes[level]; in r300_texture_get_transfer()
204 return &trans->transfer; in r300_texture_get_transfer()
227 struct pipe_transfer *transfer) in r300_texture_transfer_map() argument
230 struct r300_transfer *r300transfer = r300_transfer(transfer); in r300_texture_transfer_map()
231 struct r300_resource *tex = r300_resource(transfer->resource); in r300_texture_transfer_map()
239 r300->cs, transfer->usage); in r300_texture_transfer_map()
242 map = r300->rws->buffer_map(tex->cs_buf, r300->cs, transfer->usage); in r300_texture_transfer_map()
248 return map + r300_transfer(transfer)->offset + in r300_texture_transfer_map()
249 transfer->box.y / util_format_get_blockheight(format) * transfer->stride + in r300_texture_transfer_map()
250 … transfer->box.x / util_format_get_blockwidth(format) * util_format_get_blocksize(format); in r300_texture_transfer_map()
255 struct pipe_transfer *transfer) in r300_texture_transfer_unmap() argument
258 struct r300_transfer *r300transfer = r300_transfer(transfer); in r300_texture_transfer_unmap()
259 struct r300_resource *tex = r300_resource(transfer->resource); in r300_texture_transfer_unmap()