Lines Matching refs:nv30
29 #include "nv30-40_3d.xml.h"
34 nv30_fragtex_validate(struct nv30_context *nv30)
36 struct pipe_screen *pscreen = &nv30->screen->base.base;
37 struct nouveau_object *eng3d = nv30->screen->eng3d;
38 struct nouveau_pushbuf *push = nv30->base.pushbuf;
39 unsigned dirty = nv30->fragprog.dirty_samplers;
43 struct nv30_sampler_view *sv = (void *)nv30->fragprog.textures[unit];
44 struct nv30_sampler_state *ss = nv30->fragprog.samplers[unit];
98 if (fmt->nv30 == NV30_3D_TEX_FORMAT_FORMAT_Z16) {
104 if (fmt->nv30 == NV30_3D_TEX_FORMAT_FORMAT_Z24) {
111 format |= fmt->nv30;
117 format |= fmt->nv30;
140 PUSH_DATA (push, nv30->config.filter);
149 nv30->fragprog.dirty_samplers = 0;
156 struct nv30_context *nv30 = nv30_context(pipe);
160 nv30->fragprog.samplers[i] = hwcso[i];
161 nv30->fragprog.dirty_samplers |= (1 << i);
164 for (; i < nv30->fragprog.num_samplers; i++) {
165 nv30->fragprog.samplers[i] = NULL;
166 nv30->fragprog.dirty_samplers |= (1 << i);
169 nv30->fragprog.num_samplers = nr;
170 nv30->dirty |= NV30_NEW_FRAGTEX;
178 struct nv30_context *nv30 = nv30_context(pipe);
182 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FRAGTEX(i));
183 pipe_sampler_view_reference(&nv30->fragprog.textures[i], views[i]);
184 nv30->fragprog.dirty_samplers |= (1 << i);
187 for (; i < nv30->fragprog.num_textures; i++) {
188 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FRAGTEX(i));
189 pipe_sampler_view_reference(&nv30->fragprog.textures[i], NULL);
190 nv30->fragprog.dirty_samplers |= (1 << i);
193 nv30->fragprog.num_textures = nr;
194 nv30->dirty |= NV30_NEW_FRAGTEX;