Lines Matching defs:nv50

200 nv50_validate_tic(struct nv50_context *nv50, int s)
202 struct nouveau_pushbuf *push = nv50->base.pushbuf;
203 struct nouveau_bo *txc = nv50->screen->txc;
207 for (i = 0; i < nv50->num_textures[s]; ++i) {
208 struct nv50_tic_entry *tic = nv50_tic_entry(nv50->textures[s][i]);
219 tic->id = nv50_screen_tic_alloc(nv50->screen, tic);
254 nv50->screen->tic.lock[tic->id / 32] |= 1 << (tic->id % 32);
259 BCTX_REFN(nv50->bufctx_3d, TEXTURES, res, RD);
264 for (; i < nv50->state.num_textures[s]; ++i) {
268 nv50->state.num_textures[s] = nv50->num_textures[s];
273 void nv50_validate_textures(struct nv50_context *nv50)
277 need_flush = nv50_validate_tic(nv50, 0);
278 need_flush |= nv50_validate_tic(nv50, 2);
281 BEGIN_NV04(nv50->base.pushbuf, NV50_3D(TIC_FLUSH), 1);
282 PUSH_DATA (nv50->base.pushbuf, 0);
287 nv50_validate_tsc(struct nv50_context *nv50, int s)
289 struct nouveau_pushbuf *push = nv50->base.pushbuf;
293 for (i = 0; i < nv50->num_samplers[s]; ++i) {
294 struct nv50_tsc_entry *tsc = nv50_tsc_entry(nv50->samplers[s][i]);
302 tsc->id = nv50_screen_tsc_alloc(nv50->screen, tsc);
304 nv50_sifc_linear_u8(&nv50->base, nv50->screen->txc,
309 nv50->screen->tsc.lock[tsc->id / 32] |= 1 << (tsc->id % 32);
314 for (; i < nv50->state.num_samplers[s]; ++i) {
318 nv50->state.num_samplers[s] = nv50->num_samplers[s];
323 void nv50_validate_samplers(struct nv50_context *nv50)
327 need_flush = nv50_validate_tsc(nv50, 0);
328 need_flush |= nv50_validate_tsc(nv50, 2);
331 BEGIN_NV04(nv50->base.pushbuf, NV50_3D(TSC_FLUSH), 1);
332 PUSH_DATA (nv50->base.pushbuf, 0);