Home | History | Annotate | Download | only in nv30

Lines Matching refs:tx

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