Home
last modified time | relevance | path

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

/external/libdrm/nouveau/
Dbufctx.c56 nouveau_bufctx(struct nouveau_bufctx *bctx) in nouveau_bufctx() argument
58 return (struct nouveau_bufctx_priv *)bctx; in nouveau_bufctx()
99 nouveau_bufctx_reset(struct nouveau_bufctx *bctx, int bin) in nouveau_bufctx_reset() argument
101 struct nouveau_bufctx_priv *pctx = nouveau_bufctx(bctx); in nouveau_bufctx_reset()
112 bctx->relocs -= pbin->relocs; in nouveau_bufctx_reset()
117 nouveau_bufctx_refn(struct nouveau_bufctx *bctx, int bin, in nouveau_bufctx_refn() argument
120 struct nouveau_bufctx_priv *pctx = nouveau_bufctx(bctx); in nouveau_bufctx_refn()
134 DRMLISTADDTAIL(&pref->base.thead, &bctx->pending); in nouveau_bufctx_refn()
135 pref->bufctx = bctx; in nouveau_bufctx_refn()
144 nouveau_bufctx_mthd(struct nouveau_bufctx *bctx, int bin, uint32_t packet, in nouveau_bufctx_mthd() argument
[all …]
Dpushbuf.c396 struct nouveau_bufctx *bctx, *btmp; in pushbuf_flush() local
423 DRMLISTFOREACHENTRYSAFE(bctx, btmp, &nvpb->bctx_list, head) { in pushbuf_flush()
424 DRMLISTJOIN(&bctx->current, &bctx->pending); in pushbuf_flush()
425 DRMINITLISTHEAD(&bctx->current); in pushbuf_flush()
426 DRMLISTDELINIT(&bctx->head); in pushbuf_flush()
486 struct nouveau_bufctx *bctx = push->bufctx; in pushbuf_validate() local
488 int relocs = bctx ? bctx->relocs * 2: 0; in pushbuf_validate()
492 if (ret || bctx == NULL) in pushbuf_validate()
498 DRMLISTDEL(&bctx->head); in pushbuf_validate()
499 DRMLISTADD(&bctx->head, &nvpb->bctx_list); in pushbuf_validate()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_transfer.c21 struct nouveau_bufctx *bctx = nvc0->bufctx; in nvc0_m2mf_transfer_rect() local
32 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nvc0_m2mf_transfer_rect()
33 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nvc0_m2mf_transfer_rect()
34 nouveau_pushbuf_bufctx(push, bctx); in nvc0_m2mf_transfer_rect()
106 nouveau_bufctx_reset(bctx, 0); in nvc0_m2mf_transfer_rect()
130 struct nouveau_bufctx *bctx = nvc0->bufctx; in nve4_m2mf_transfer_rect() local
138 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nve4_m2mf_transfer_rect()
139 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nve4_m2mf_transfer_rect()
140 nouveau_pushbuf_bufctx(push, bctx); in nve4_m2mf_transfer_rect()
195 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/nouveau/nv50/
Dnv50_transfer.c61 struct nouveau_bufctx *bctx = nv50->bufctx; in nv50_m2mf_transfer_rect() local
71 nouveau_bufctx_refn(bctx, 0, src->bo, src->domain | NOUVEAU_BO_RD); in nv50_m2mf_transfer_rect()
72 nouveau_bufctx_refn(bctx, 0, dst->bo, dst->domain | NOUVEAU_BO_WR); in nv50_m2mf_transfer_rect()
73 nouveau_pushbuf_bufctx(push, bctx); in nv50_m2mf_transfer_rect()
145 nouveau_bufctx_reset(bctx, 0); in nv50_m2mf_transfer_rect()
209 struct nouveau_bufctx *bctx = nv50_context(&nv->pipe)->bufctx; in nv50_m2mf_copy_linear() local
211 nouveau_bufctx_refn(bctx, 0, src, srcdom | NOUVEAU_BO_RD); in nv50_m2mf_copy_linear()
212 nouveau_bufctx_refn(bctx, 0, dst, dstdom | NOUVEAU_BO_WR); in nv50_m2mf_copy_linear()
213 nouveau_pushbuf_bufctx(push, bctx); in nv50_m2mf_copy_linear()
241 nouveau_bufctx_reset(bctx, 0); in nv50_m2mf_copy_linear()
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/nouveau/nv30/
Dnv30_state_validate.c468 struct nouveau_bufctx *bctx = nv30->bufctx; in nv30_state_validate() local
501 nouveau_pushbuf_bufctx(push, bctx); in nv30_state_validate()
523 LIST_FOR_EACH_ENTRY(bref, &bctx->current, thead) { in nv30_state_validate()