Lines Matching refs:tx

168    struct nv30_transfer *tx;  in nv30_miptree_transfer_new()  local
171 tx = CALLOC_STRUCT(nv30_transfer); in nv30_miptree_transfer_new()
172 if (!tx) in nv30_miptree_transfer_new()
174 pipe_resource_reference(&tx->base.resource, pt); in nv30_miptree_transfer_new()
175 tx->base.level = level; in nv30_miptree_transfer_new()
176 tx->base.usage = usage; in nv30_miptree_transfer_new()
177 tx->base.box = *box; in nv30_miptree_transfer_new()
178 tx->base.stride = util_format_get_nblocksx(pt->format, box->width) * in nv30_miptree_transfer_new()
180 tx->base.layer_stride = util_format_get_nblocksy(pt->format, box->height) * in nv30_miptree_transfer_new()
181 tx->base.stride; in nv30_miptree_transfer_new()
183 tx->nblocksx = util_format_get_nblocksx(pt->format, box->width); in nv30_miptree_transfer_new()
184 tx->nblocksy = util_format_get_nblocksy(pt->format, box->height); in nv30_miptree_transfer_new()
187 tx->nblocksx, tx->nblocksy, &tx->img); in nv30_miptree_transfer_new()
190 tx->base.layer_stride, NULL, &tx->tmp.bo); in nv30_miptree_transfer_new()
192 pipe_resource_reference(&tx->base.resource, NULL); in nv30_miptree_transfer_new()
193 FREE(tx); in nv30_miptree_transfer_new()
197 tx->tmp.domain = NOUVEAU_BO_GART; in nv30_miptree_transfer_new()
198 tx->tmp.offset = 0; in nv30_miptree_transfer_new()
199 tx->tmp.pitch = tx->base.stride; in nv30_miptree_transfer_new()
200 tx->tmp.cpp = tx->img.cpp; in nv30_miptree_transfer_new()
201 tx->tmp.w = tx->nblocksx; in nv30_miptree_transfer_new()
202 tx->tmp.h = tx->nblocksy; in nv30_miptree_transfer_new()
203 tx->tmp.d = 1; in nv30_miptree_transfer_new()
204 tx->tmp.x0 = 0; in nv30_miptree_transfer_new()
205 tx->tmp.y0 = 0; in nv30_miptree_transfer_new()
206 tx->tmp.x1 = tx->tmp.w; in nv30_miptree_transfer_new()
207 tx->tmp.y1 = tx->tmp.h; in nv30_miptree_transfer_new()
208 tx->tmp.z = 0; in nv30_miptree_transfer_new()
211 nv30_transfer_rect(nv30, NEAREST, &tx->img, &tx->tmp); in nv30_miptree_transfer_new()
213 return &tx->base; in nv30_miptree_transfer_new()
220 struct nv30_transfer *tx = nv30_transfer(ptx); in nv30_miptree_transfer_del() local
223 nv30_transfer_rect(nv30, NEAREST, &tx->tmp, &tx->img); in nv30_miptree_transfer_del()
225 nouveau_bo_ref(NULL, &tx->tmp.bo); in nv30_miptree_transfer_del()
227 FREE(tx); in nv30_miptree_transfer_del()
234 struct nv30_transfer *tx = nv30_transfer(ptx); in nv30_miptree_transfer_map() local
238 if (tx->tmp.bo->map) in nv30_miptree_transfer_map()
239 return tx->tmp.bo->map; in nv30_miptree_transfer_map()
246 ret = nouveau_bo_map(tx->tmp.bo, access, nv30->base.client); in nv30_miptree_transfer_map()
249 return tx->tmp.bo->map; in nv30_miptree_transfer_map()