Lines Matching defs:trans
88 struct r300_transfer *trans;
101 trans = CALLOC_STRUCT(r300_transfer);
102 if (trans) {
104 pipe_resource_reference(&trans->transfer.resource, texture);
105 trans->transfer.level = level;
106 trans->transfer.usage = usage;
107 trans->transfer.box = *box;
150 trans->linear_texture = r300_resource(
154 if (!trans->linear_texture) {
159 trans->linear_texture = r300_resource(
163 if (!trans->linear_texture) {
173 FREE(trans);
178 assert(!trans->linear_texture->tex.microtile &&
179 !trans->linear_texture->tex.macrotile[0]);
182 trans->transfer.stride =
183 trans->linear_texture->tex.stride_in_bytes[0];
188 r300_copy_from_tiled_texture(ctx, trans);
193 return &trans->transfer;
198 trans->transfer.stride = tex->tex.stride_in_bytes[level];
199 trans->offset = r300_texture_get_offset(tex, level, box->z);
204 return &trans->transfer;
210 struct pipe_transfer *trans)
212 struct r300_transfer *r300transfer = r300_transfer(trans);
215 if (trans->usage & PIPE_TRANSFER_WRITE) {
222 pipe_resource_reference(&trans->resource, NULL);
223 FREE(trans);