Home
last modified time | relevance | path

Searched refs:bctx (Results 1 – 7 of 7) sorted by relevance

/external/libdrm/nouveau/
Dbufctx.c48 nouveau_bufref(struct nouveau_bufref *bctx) in nouveau_bufref() argument
50 return (struct nouveau_bufref_priv *)bctx; in nouveau_bufref()
66 nouveau_bufctx(struct nouveau_bufctx *bctx) in nouveau_bufctx() argument
68 return (struct nouveau_bufctx_priv *)bctx; in nouveau_bufctx()
109 nouveau_bufctx_reset(struct nouveau_bufctx *bctx, int bin) in nouveau_bufctx_reset() argument
111 struct nouveau_bufctx_priv *pctx = nouveau_bufctx(bctx); in nouveau_bufctx_reset()
122 bctx->relocs -= pbin->relocs; in nouveau_bufctx_reset()
127 nouveau_bufctx_refn(struct nouveau_bufctx *bctx, int bin, in nouveau_bufctx_refn() argument
130 struct nouveau_bufctx_priv *pctx = nouveau_bufctx(bctx); in nouveau_bufctx_refn()
144 DRMLISTADDTAIL(&pref->base.thead, &bctx->pending); in nouveau_bufctx_refn()
[all …]
Dpushbuf.c397 struct nouveau_bufctx *bctx, *btmp; in pushbuf_flush() local
424 DRMLISTFOREACHENTRYSAFE(bctx, btmp, &nvpb->bctx_list, head) { in pushbuf_flush()
425 DRMLISTJOIN(&bctx->current, &bctx->pending); in pushbuf_flush()
426 DRMINITLISTHEAD(&bctx->current); in pushbuf_flush()
427 DRMLISTDELINIT(&bctx->head); in pushbuf_flush()
487 struct nouveau_bufctx *bctx = push->bufctx; in pushbuf_validate() local
489 int relocs = bctx ? bctx->relocs * 2: 0; in pushbuf_validate()
493 if (ret || bctx == NULL) in pushbuf_validate()
499 DRMLISTDEL(&bctx->head); in pushbuf_validate()
500 DRMLISTADD(&bctx->head, &nvpb->bctx_list); in pushbuf_validate()
[all …]
/external/mesa3d/src/gallium/drivers/nvc0/
Dnvc0_transfer.c23 struct nouveau_bufctx *bctx = nvc0->bufctx; in nvc0_m2mf_transfer_rect() local
34 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nvc0_m2mf_transfer_rect()
35 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nvc0_m2mf_transfer_rect()
36 nouveau_pushbuf_bufctx(push, bctx); in nvc0_m2mf_transfer_rect()
108 nouveau_bufctx_reset(bctx, 0); in nvc0_m2mf_transfer_rect()
118 struct nouveau_bufctx *bctx = nvc0->bufctx; in nve4_m2mf_transfer_rect() local
126 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nve4_m2mf_transfer_rect()
127 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nve4_m2mf_transfer_rect()
128 nouveau_pushbuf_bufctx(push, bctx); in nve4_m2mf_transfer_rect()
173 nouveau_bufctx_reset(bctx, 0); in nve4_m2mf_transfer_rect()
[all …]
Dnvc0_winsys.h38 #define BCTX_REFN(bctx, bin, res, acc) \ argument
39 nvc0_add_resident(bctx, NVC0_BIND_##bin, res, NOUVEAU_BO_##acc)
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_transfer.c59 struct nouveau_bufctx *bctx = nv50->bufctx; in nv50_m2mf_transfer_rect() local
69 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nv50_m2mf_transfer_rect()
70 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nv50_m2mf_transfer_rect()
71 nouveau_pushbuf_bufctx(push, bctx); in nv50_m2mf_transfer_rect()
143 nouveau_bufctx_reset(bctx, 0); in nv50_m2mf_transfer_rect()
214 struct nouveau_bufctx *bctx = nv50_context(&nv->pipe)->bufctx; in nv50_m2mf_copy_linear() local
216 nouveau_bufctx_refn(bctx, 0, src, srcdom | NOUVEAU_BO_RD); in nv50_m2mf_copy_linear()
217 nouveau_bufctx_refn(bctx, 0, dst, dstdom | NOUVEAU_BO_WR); in nv50_m2mf_copy_linear()
218 nouveau_pushbuf_bufctx(push, bctx); in nv50_m2mf_copy_linear()
246 nouveau_bufctx_reset(bctx, 0); in nv50_m2mf_copy_linear()
[all …]
Dnv50_winsys.h39 #define BCTX_REFN(bctx, bin, res, acc) \ argument
40 nv50_add_bufctx_resident(bctx, NV50_BIND_##bin, res, NOUVEAU_BO_##acc)
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_state_validate.c463 struct nouveau_bufctx *bctx = nv30->bufctx; in nv30_state_validate() local
494 nouveau_pushbuf_bufctx(push, bctx); in nv30_state_validate()
516 LIST_FOR_EACH_ENTRY(bref, &bctx->current, thead) { in nv30_state_validate()