Home | History | Annotate | Download | only in nv50

Lines Matching defs:nv50

27 #include "nv50/nv50_context.h"
28 #include "nv50/nv50_compute.xml.h"
159 nv50_compute_validate_globals(struct nv50_context *nv50)
163 for (i = 0; i < nv50->global_residents.size / sizeof(struct pipe_resource *);
166 &nv50->global_residents, struct pipe_resource *, i);
168 nv50_add_bufctx_resident(nv50->bufctx_cp, NV50_BIND_CP_GLOBAL,
180 nv50_state_validate_cp(struct nv50_context *nv50, uint32_t mask)
185 ret = nv50_state_validate(nv50, mask, validate_list_cp,
186 ARRAY_SIZE(validate_list_cp), &nv50->dirty_cp,
187 nv50->bufctx_cp);
189 if (unlikely(nv50->state.flushed))
190 nv50_bufctx_fence(nv50->bufctx_cp, true);
195 nv50_compute_upload_input(struct nv50_context *nv50, const uint32_t *input)
197 struct nv50_screen *screen = nv50->screen;
199 unsigned size = align(nv50->compprog->parm_size, 0x4);
215 nouveau_bufctx_refn(nv50->bufctx, 0, bo, NOUVEAU_BO_GART | NOUVEAU_BO_RD);
216 nouveau_pushbuf_bufctx(push, nv50->bufctx);
224 nouveau_bufctx_reset(nv50->bufctx, 0);
229 nv50_compute_find_symbol(struct nv50_context *nv50, uint32_t label)
231 struct nv50_program *prog = nv50->compprog;
246 struct nv50_context *nv50 = nv50_context(pipe);
247 struct nouveau_pushbuf *push = nv50->base.pushbuf;
249 struct nv50_program *cp = nv50->compprog;
252 ret = !nv50_state_validate_cp(nv50, ~0);
258 nv50_compute_upload_input(nv50, info->input);
261 PUSH_DATA (push, nv50_compute_find_symbol(nv50, info->pc));
288 nv50->dirty_3d |= NV50_NEW_3D_FRAGPROG;