Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_context.c45 nv30 = container_of(push->user_priv, struct nv30_context, bufctx); in nv30_context_kick_notify()
51 if (push->bufctx) { in nv30_context_kick_notify()
53 LIST_FOR_EACH_ENTRY(bref, &push->bufctx->current, thead) { in nv30_context_kick_notify()
100 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FB); in nv30_invalidate_resource_storage()
110 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FB); in nv30_invalidate_resource_storage()
120 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VTXBUF); in nv30_invalidate_resource_storage()
132 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FRAGTEX(i)); in nv30_invalidate_resource_storage()
141 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VERTTEX(i)); in nv30_invalidate_resource_storage()
171 if (nv30->screen->base.pushbuf->user_priv == &nv30->bufctx) in nv30_context_destroy()
174 nouveau_bufctx_del(&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.c82 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VERTTEX(i)); in nv40_verttex_set_sampler_views()
93 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VERTTEX(i)); in nv40_verttex_set_sampler_views()
Dnv30_fragtex.c183 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FRAGTEX(i)); in nv30_fragtex_set_sampler_views()
194 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);
589 push->user_priv = &nv30->bufctx;
Dnv30_context.h48 struct nouveau_bufctx *bufctx; member
Dnv30_state.c380 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FB); in nv30_set_framebuffer_state()
446 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VTXBUF); in nv30_set_vertex_buffers()
Dnv30_fragprog.c182 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FRAGPROG); in nv30_fp_state_bind()
/third_party/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.c154 nouveau_bufctx_del(&nv50->bufctx); in nv50_context_unreference_resources()
319 ret = nouveau_bufctx_new(nv50->base.client, 2, &nv50->bufctx); in nv50_create()
360 nouveau_pushbuf_bufctx(screen->base.pushbuf, nv50->bufctx); in nv50_create()
403 BCTX_REFN_bo(nv50->bufctx, FENCE, flags, screen->fence.bo); in nv50_create()
429 if (nv50->bufctx) in nv50_create()
430 nouveau_bufctx_del(&nv50->bufctx); in nv50_create()
437 nv50_bufctx_fence(struct nouveau_bufctx *bufctx, bool on_flush) in nv50_bufctx_fence() argument
439 struct nouveau_list *list = on_flush ? &bufctx->current : &bufctx->pending; in nv50_bufctx_fence()
Dnv50_transfer.c64 struct nouveau_bufctx *bctx = nv50->bufctx; in nv50_2d_transfer_rect()
170 struct nouveau_bufctx *bctx = nv50->bufctx; in nv50_m2mf_transfer_rect()
285 nouveau_bufctx_refn(nv50->bufctx, 0, dst, domain | NOUVEAU_BO_WR); in nv50_sifc_linear_u8()
286 nouveau_pushbuf_bufctx(push, nv50->bufctx); in nv50_sifc_linear_u8()
325 nouveau_bufctx_reset(nv50->bufctx, 0); in nv50_sifc_linear_u8()
335 struct nouveau_bufctx *bctx = nv50_context(&nv->pipe)->bufctx; in nv50_m2mf_copy_linear()
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()
654 nouveau_bufctx_refn(nv50->bufctx, 0, buf->bo, buf->domain | NOUVEAU_BO_WR); in nv50_clear_buffer_push()
655 nouveau_pushbuf_bufctx(push, nv50->bufctx); in nv50_clear_buffer_push()
697 nouveau_bufctx_reset(nv50->bufctx, 0); in nv50_clear_buffer_push()
1639 BCTX_REFN(nv50->bufctx, 2D, &dst->base, WR); in nv50_blit_eng2d()
1640 BCTX_REFN(nv50->bufctx, 2D, &src->base, RD); in nv50_blit_eng2d()
1641 nouveau_pushbuf_bufctx(nv50->base.pushbuf, nv50->bufctx); in nv50_blit_eng2d()
[all …]
Dnv50_compute.c546 nouveau_bufctx_refn(nv50->bufctx, 0, bo, NOUVEAU_BO_GART | NOUVEAU_BO_RD); in nv50_compute_upload_input()
547 nouveau_pushbuf_bufctx(push, nv50->bufctx); in nv50_compute_upload_input()
557 nouveau_bufctx_reset(nv50->bufctx, 0); in nv50_compute_upload_input()
Dnv50_state_validate.c533 uint32_t *dirty, struct nouveau_bufctx *bufctx) in nv50_state_validate() argument
559 nv50_bufctx_fence(bufctx, false); in nv50_state_validate()
561 nouveau_pushbuf_bufctx(nv50->base.pushbuf, bufctx); in nv50_state_validate()
/third_party/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.c196 nouveau_bufctx_del(&nvc0->bufctx); in nvc0_context_unreference_resources()
431 ret = nouveau_bufctx_new(nvc0->base.client, 2, &nvc0->bufctx); in nvc0_create()
503 nouveau_pushbuf_bufctx(screen->base.pushbuf, nvc0->bufctx); in nvc0_create()
528 BCTX_REFN_bo(nvc0->bufctx, FENCE, flags, screen->fence.bo); in nvc0_create()
566 if (nvc0->bufctx) in nvc0_create()
567 nouveau_bufctx_del(&nvc0->bufctx); in nvc0_create()
575 nvc0_bufctx_fence(struct nvc0_context *nvc0, struct nouveau_bufctx *bufctx, in nvc0_bufctx_fence() argument
578 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()
130 struct nouveau_bufctx *bctx = nvc0->bufctx; in nve4_m2mf_transfer_rect()
208 nouveau_bufctx_refn(nvc0->bufctx, 0, dst, domain | NOUVEAU_BO_WR); in nvc0_m2mf_push_linear()
209 nouveau_pushbuf_bufctx(push, nvc0->bufctx); in nvc0_m2mf_push_linear()
237 nouveau_bufctx_reset(nvc0->bufctx, 0); in nvc0_m2mf_push_linear()
250 nouveau_bufctx_refn(nvc0->bufctx, 0, dst, domain | NOUVEAU_BO_WR); in nve4_p2mf_push_linear()
251 nouveau_pushbuf_bufctx(push, nvc0->bufctx); in nve4_p2mf_push_linear()
277 nouveau_bufctx_reset(nvc0->bufctx, 0); in nve4_p2mf_push_linear()
287 struct nouveau_bufctx *bctx = nvc0_context(&nv->pipe)->bufctx; in nvc0_m2mf_copy_linear()
325 struct nouveau_bufctx *bctx = nvc0_context(&nv->pipe)->bufctx; in nve4_m2mf_copy_linear()
Dnvc0_surface.c267 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(src), RD); in nvc0_resource_copy_region()
268 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(dst), WR); in nvc0_resource_copy_region()
269 nouveau_pushbuf_bufctx(nvc0->base.pushbuf, nvc0->bufctx); in nvc0_resource_copy_region()
282 nouveau_bufctx_reset(nvc0->bufctx, 0); in nvc0_resource_copy_region()
380 nouveau_bufctx_refn(nvc0->bufctx, 0, buf->bo, buf->domain | NOUVEAU_BO_WR); in nvc0_clear_buffer_push_nvc0()
381 nouveau_pushbuf_bufctx(push, nvc0->bufctx); in nvc0_clear_buffer_push_nvc0()
415 nouveau_bufctx_reset(nvc0->bufctx, 0); in nvc0_clear_buffer_push_nvc0()
429 nouveau_bufctx_refn(nvc0->bufctx, 0, buf->bo, buf->domain | NOUVEAU_BO_WR); in nvc0_clear_buffer_push_nve4()
430 nouveau_pushbuf_bufctx(push, nvc0->bufctx); in nvc0_clear_buffer_push_nve4()
462 nouveau_bufctx_reset(nvc0->bufctx, 0); in nvc0_clear_buffer_push_nve4()
[all …]
/third_party/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
/third_party/libdrm/nouveau/
Dbufctx.c40 struct nouveau_bufctx *bufctx; member
135 pref->bufctx = bctx; in nouveau_bufctx_refn()
DMakefile.sources4 bufctx.c \
Dmeson.build24 [files( 'nouveau.c', 'pushbuf.c', 'bufctx.c', 'abi16.c'), config_file],
Dpushbuf.c493 struct nouveau_bufctx *bctx = push->bufctx; in pushbuf_validate()
638 struct nouveau_bufctx *prev = push->bufctx; in nouveau_pushbuf_bufctx()
639 push->bufctx = ctx; in nouveau_pushbuf_bufctx()
/third_party/mesa3d/docs/relnotes/
D10.6.1.rst78 - nvc0: always put all tfb bufs into bufctx

12