Home
last modified time | relevance | path

Searched refs:bufctx (Results 1 – 25 of 33) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_context.c44 nv30 = container_of(push->user_priv, nv30, bufctx); in nv30_context_kick_notify()
50 if (push->bufctx) { in nv30_context_kick_notify()
52 LIST_FOR_EACH_ENTRY(bref, &push->bufctx->current, thead) { in nv30_context_kick_notify()
99 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FB); in nv30_invalidate_resource_storage()
109 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FB); in nv30_invalidate_resource_storage()
119 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VTXBUF); in nv30_invalidate_resource_storage()
127 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_IDXBUF); in nv30_invalidate_resource_storage()
138 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FRAGTEX(i)); in nv30_invalidate_resource_storage()
147 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VERTTEX(i)); in nv30_invalidate_resource_storage()
174 if (nv30->screen->base.pushbuf->user_priv == &nv30->bufctx) in nv30_context_destroy()
[all …]
Dnv30_winsys.h30 bufctx(struct nouveau_pushbuf *push) in bufctx() function
39 nouveau_bufctx_reset(bufctx(push), bin); in PUSH_RESET()
46 nouveau_bufctx_refn(bufctx(push), bin, bo, access); in PUSH_REFN()
53 nouveau_bufctx_mthd(bufctx(push), bin, (1 << 18) | (subc << 13) | mthd, in PUSH_MTHDl()
62 nouveau_bufctx_mthd(bufctx(push), bin, (1 << 18) | (subc << 13) | mthd, in PUSH_MTHDo()
75 nouveau_bufctx_mthd(bufctx(push), bin, (1 << 18) | (subc << 13) | mthd, in PUSH_MTHDs()
89 nouveau_bufctx_mthd(bufctx(push), bin, (1 << 18) | (subc << 13) | mthd, in PUSH_MTHD()
Dnv40_verttex.c81 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VERTTEX(i)); in nv40_verttex_set_sampler_views()
87 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VERTTEX(i)); in nv40_verttex_set_sampler_views()
Dnv30_fragtex.c182 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FRAGTEX(i)); in nv30_fragtex_set_sampler_views()
188 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FRAGTEX(i)); in nv30_fragtex_set_sampler_views()
Dnv30_vbo.c178 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VTXTMP); in nv30_release_user_vbufs()
190 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VTXBUF);
566 push->user_priv = &nv30->bufctx;
Dnv30_context.h48 struct nouveau_bufctx *bufctx; member
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_winsys.h20 nv50_add_bufctx_resident_bo(struct nouveau_bufctx *bufctx, int bin, in nv50_add_bufctx_resident_bo() argument
23 nouveau_bufctx_refn(bufctx, bin, bo, flags)->priv = NULL; in nv50_add_bufctx_resident_bo()
27 nv50_add_bufctx_resident(struct nouveau_bufctx *bufctx, int bin, in nv50_add_bufctx_resident() argument
31 nouveau_bufctx_refn(bufctx, bin, res->bo, flags | res->domain); in nv50_add_bufctx_resident()
Dnv50_context.c139 nouveau_bufctx_del(&nv50->bufctx); in nv50_context_unreference_resources()
300 ret = nouveau_bufctx_new(screen->base.client, 2, &nv50->bufctx); in nv50_create()
337 nouveau_pushbuf_bufctx(screen->base.pushbuf, nv50->bufctx); in nv50_create()
379 BCTX_REFN_bo(nv50->bufctx, FENCE, flags, screen->fence.bo); in nv50_create()
394 if (nv50->bufctx) in nv50_create()
395 nouveau_bufctx_del(&nv50->bufctx); in nv50_create()
402 nv50_bufctx_fence(struct nouveau_bufctx *bufctx, bool on_flush) in nv50_bufctx_fence() argument
404 struct nouveau_list *list = on_flush ? &bufctx->current : &bufctx->pending; in nv50_bufctx_fence()
Dnv50_transfer.c61 struct nouveau_bufctx *bctx = nv50->bufctx; in nv50_m2mf_transfer_rect()
159 nouveau_bufctx_refn(nv50->bufctx, 0, dst, domain | NOUVEAU_BO_WR); in nv50_sifc_linear_u8()
160 nouveau_pushbuf_bufctx(push, nv50->bufctx); in nv50_sifc_linear_u8()
199 nouveau_bufctx_reset(nv50->bufctx, 0); in nv50_sifc_linear_u8()
209 struct nouveau_bufctx *bctx = nv50_context(&nv->pipe)->bufctx; in nv50_m2mf_copy_linear()
Dnv50_compute.c215 nouveau_bufctx_refn(nv50->bufctx, 0, bo, NOUVEAU_BO_GART | NOUVEAU_BO_RD); in nv50_compute_upload_input()
216 nouveau_pushbuf_bufctx(push, nv50->bufctx); in nv50_compute_upload_input()
224 nouveau_bufctx_reset(nv50->bufctx, 0); in nv50_compute_upload_input()
Dnv50_surface.c257 BCTX_REFN(nv50->bufctx, 2D, nv04_resource(src), RD); in nv50_resource_copy_region()
258 BCTX_REFN(nv50->bufctx, 2D, nv04_resource(dst), WR); in nv50_resource_copy_region()
259 nouveau_pushbuf_bufctx(nv50->base.pushbuf, nv50->bufctx); in nv50_resource_copy_region()
272 nouveau_bufctx_reset(nv50->bufctx, NV50_BIND_2D); in nv50_resource_copy_region()
634 nouveau_bufctx_refn(nv50->bufctx, 0, buf->bo, buf->domain | NOUVEAU_BO_WR); in nv50_clear_buffer_push()
635 nouveau_pushbuf_bufctx(push, nv50->bufctx); in nv50_clear_buffer_push()
680 nouveau_bufctx_reset(nv50->bufctx, 0); in nv50_clear_buffer_push()
1597 BCTX_REFN(nv50->bufctx, 2D, &dst->base, WR); in nv50_blit_eng2d()
1598 BCTX_REFN(nv50->bufctx, 2D, &src->base, RD); in nv50_blit_eng2d()
1599 nouveau_pushbuf_bufctx(nv50->base.pushbuf, nv50->bufctx); in nv50_blit_eng2d()
[all …]
Dnv50_state_validate.c532 uint32_t *dirty, struct nouveau_bufctx *bufctx) in nv50_state_validate() argument
558 nv50_bufctx_fence(bufctx, false); in nv50_state_validate()
560 nouveau_pushbuf_bufctx(nv50->base.pushbuf, bufctx); in nv50_state_validate()
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_winsys.h19 nv50_add_bufctx_resident_bo(struct nouveau_bufctx *bufctx, int bin, in nv50_add_bufctx_resident_bo() argument
22 nouveau_bufctx_refn(bufctx, bin, bo, flags)->priv = NULL; in nv50_add_bufctx_resident_bo()
26 nvc0_add_resident(struct nouveau_bufctx *bufctx, int bin, in nvc0_add_resident() argument
30 nouveau_bufctx_refn(bufctx, bin, res->bo, flags | res->domain); in nvc0_add_resident()
Dnvc0_context.c143 nouveau_bufctx_del(&nvc0->bufctx); in nvc0_context_unreference_resources()
374 ret = nouveau_bufctx_new(screen->base.client, 2, &nvc0->bufctx); in nvc0_create()
434 nouveau_pushbuf_bufctx(screen->base.pushbuf, nvc0->bufctx); in nvc0_create()
461 BCTX_REFN_bo(nvc0->bufctx, FENCE, flags, screen->fence.bo); in nvc0_create()
479 if (nvc0->bufctx) in nvc0_create()
480 nouveau_bufctx_del(&nvc0->bufctx); in nvc0_create()
488 nvc0_bufctx_fence(struct nvc0_context *nvc0, struct nouveau_bufctx *bufctx, in nvc0_bufctx_fence() argument
491 struct nouveau_list *list = on_flush ? &bufctx->current : &bufctx->pending; in nvc0_bufctx_fence()
Dnvc0_transfer.c21 struct nouveau_bufctx *bctx = nvc0->bufctx; in nvc0_m2mf_transfer_rect()
116 struct nouveau_bufctx *bctx = nvc0->bufctx; in nve4_m2mf_transfer_rect()
184 nouveau_bufctx_refn(nvc0->bufctx, 0, dst, domain | NOUVEAU_BO_WR); in nvc0_m2mf_push_linear()
185 nouveau_pushbuf_bufctx(push, nvc0->bufctx); in nvc0_m2mf_push_linear()
213 nouveau_bufctx_reset(nvc0->bufctx, 0); in nvc0_m2mf_push_linear()
226 nouveau_bufctx_refn(nvc0->bufctx, 0, dst, domain | NOUVEAU_BO_WR); in nve4_p2mf_push_linear()
227 nouveau_pushbuf_bufctx(push, nvc0->bufctx); in nve4_p2mf_push_linear()
253 nouveau_bufctx_reset(nvc0->bufctx, 0); in nve4_p2mf_push_linear()
263 struct nouveau_bufctx *bctx = nvc0_context(&nv->pipe)->bufctx; in nvc0_m2mf_copy_linear()
301 struct nouveau_bufctx *bctx = nvc0_context(&nv->pipe)->bufctx; in nve4_m2mf_copy_linear()
Dnvc0_surface.c260 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(src), RD); in nvc0_resource_copy_region()
261 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(dst), WR); in nvc0_resource_copy_region()
262 nouveau_pushbuf_bufctx(nvc0->base.pushbuf, nvc0->bufctx); in nvc0_resource_copy_region()
275 nouveau_bufctx_reset(nvc0->bufctx, 0); in nvc0_resource_copy_region()
373 nouveau_bufctx_refn(nvc0->bufctx, 0, buf->bo, buf->domain | NOUVEAU_BO_WR); in nvc0_clear_buffer_push_nvc0()
374 nouveau_pushbuf_bufctx(push, nvc0->bufctx); in nvc0_clear_buffer_push_nvc0()
411 nouveau_bufctx_reset(nvc0->bufctx, 0); in nvc0_clear_buffer_push_nvc0()
425 nouveau_bufctx_refn(nvc0->bufctx, 0, buf->bo, buf->domain | NOUVEAU_BO_WR); in nvc0_clear_buffer_push_nve4()
426 nouveau_pushbuf_bufctx(push, nvc0->bufctx); in nvc0_clear_buffer_push_nve4()
461 nouveau_bufctx_reset(nvc0->bufctx, 0); in nvc0_clear_buffer_push_nve4()
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_context.c170 ret = nouveau_bufctx_new(nctx->hw.client, 16, &nctx->hw.bufctx); in nouveau_context_init()
176 nctx->hw.pushbuf->user_priv = nctx->hw.bufctx; in nouveau_context_init()
216 nouveau_bufctx_del(&nctx->hw.bufctx); in nouveau_context_deinit()
334 nouveau_bufctx_reset(to_nouveau_context(ctx)->hw.bufctx, BUFCTX_FB); in update_framebuffer()
Dnouveau_vbo_t.c237 struct nouveau_bufctx *bufctx = nctx->hw.bufctx; in vbo_maybe_split() local
238 unsigned pushbuf_avail = PUSHBUF_DWORDS - 2 * (bufctx->relocs + in vbo_maybe_split()
380 nouveau_pushbuf_bufctx(push, nctx->hw.bufctx); in vbo_draw_vbo()
420 nouveau_pushbuf_bufctx(push, nctx->hw.bufctx); in vbo_draw_imm()
Dnouveau_context.h51 struct nouveau_bufctx *bufctx; member
/external/libdrm/nouveau/
Dbufctx.c44 struct nouveau_bufctx *bufctx; member
139 pref->bufctx = bctx; in nouveau_bufctx_refn()
DMakefile.sources4 bufctx.c \
DAndroid.sources.bp8 "bufctx.c",
Dpushbuf.c490 struct nouveau_bufctx *bctx = push->bufctx; in pushbuf_validate()
635 struct nouveau_bufctx *prev = push->bufctx; in nouveau_pushbuf_bufctx()
636 push->bufctx = ctx; in nouveau_pushbuf_bufctx()
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_video.c77 nouveau_bufctx_reset(dec->bufctx, NV31_VIDEO_BIND_CMD); in nouveau_vpe_fini()
79 #define BCTX_ARGS dec->bufctx, NV31_VIDEO_BIND_CMD, NOUVEAU_BO_RD in nouveau_vpe_fini()
392 nouveau_bufctx_reset(dec->bufctx, NV31_VIDEO_BIND_IMG(i)); in nouveau_decoder_surface_index()
394 #define BCTX_ARGS dec->bufctx, NV31_VIDEO_BIND_IMG(i), NOUVEAU_BO_RDWR in nouveau_decoder_surface_index()
486 if (dec->bufctx) in nouveau_decoder_destroy()
487 nouveau_bufctx_del(&dec->bufctx); in nouveau_decoder_destroy()
538 ret = nouveau_bufctx_new(dec->client, NV31_VIDEO_BIND_COUNT, &dec->bufctx); in nouveau_create_decoder()
590 nouveau_pushbuf_bufctx(dec->push, dec->bufctx); in nouveau_create_decoder()
Dnouveau_video.h25 struct nouveau_bufctx *bufctx; member

12