Home
last modified time | relevance | path

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

12

/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_context.c45 nv30 = container_of(push->user_priv, nv30, 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.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.c177 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VTXTMP); in nv30_release_user_vbufs()
189 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VTXBUF);
570 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.c136 nouveau_bufctx_del(&nv50->bufctx); in nv50_context_unreference_resources()
291 ret = nouveau_bufctx_new(screen->base.client, 2, &nv50->bufctx); in nv50_create()
332 nouveau_pushbuf_bufctx(screen->base.pushbuf, nv50->bufctx); in nv50_create()
374 BCTX_REFN_bo(nv50->bufctx, FENCE, flags, screen->fence.bo); in nv50_create()
400 if (nv50->bufctx) in nv50_create()
401 nouveau_bufctx_del(&nv50->bufctx); in nv50_create()
408 nv50_bufctx_fence(struct nouveau_bufctx *bufctx, bool on_flush) in nv50_bufctx_fence() argument
410 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()
677 nouveau_bufctx_reset(nv50->bufctx, 0); in nv50_clear_buffer_push()
1600 BCTX_REFN(nv50->bufctx, 2D, &dst->base, WR); in nv50_blit_eng2d()
1601 BCTX_REFN(nv50->bufctx, 2D, &src->base, RD); in nv50_blit_eng2d()
1602 nouveau_pushbuf_bufctx(nv50->base.pushbuf, nv50->bufctx); in nv50_blit_eng2d()
[all …]
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()
/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.c149 nouveau_bufctx_del(&nvc0->bufctx); in nvc0_context_unreference_resources()
384 ret = nouveau_bufctx_new(screen->base.client, 2, &nvc0->bufctx); in nvc0_create()
454 nouveau_pushbuf_bufctx(screen->base.pushbuf, nvc0->bufctx); in nvc0_create()
479 BCTX_REFN_bo(nvc0->bufctx, FENCE, flags, screen->fence.bo); in nvc0_create()
517 if (nvc0->bufctx) in nvc0_create()
518 nouveau_bufctx_del(&nvc0->bufctx); in nvc0_create()
526 nvc0_bufctx_fence(struct nvc0_context *nvc0, struct nouveau_bufctx *bufctx, in nvc0_bufctx_fence() argument
529 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 …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_context.c169 ret = nouveau_bufctx_new(nctx->hw.client, 16, &nctx->hw.bufctx); in nouveau_context_init()
175 nctx->hw.pushbuf->user_priv = nctx->hw.bufctx; in nouveau_context_init()
214 nouveau_bufctx_del(&nctx->hw.bufctx); in nouveau_context_deinit()
332 nouveau_bufctx_reset(to_nouveau_context(ctx)->hw.bufctx, BUFCTX_FB); in update_framebuffer()
Dnouveau_vbo_t.c258 struct nouveau_bufctx *bufctx = nctx->hw.bufctx; in vbo_maybe_split() local
259 unsigned pushbuf_avail = PUSHBUF_DWORDS - 2 * (bufctx->relocs + in vbo_maybe_split()
411 nouveau_pushbuf_bufctx(push, nctx->hw.bufctx); in vbo_draw_vbo()
451 nouveau_pushbuf_bufctx(push, nctx->hw.bufctx); in vbo_draw_imm()
Dnouveau_context.h51 struct nouveau_bufctx *bufctx; member
/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
/external/libdrm/nouveau/
Dbufctx.c40 struct nouveau_bufctx *bufctx; member
135 pref->bufctx = bctx; in nouveau_bufctx_refn()
DMakefile.sources4 bufctx.c \
DAndroid.sources.bp8 "bufctx.c",
Dmeson.build24 [files( 'nouveau.c', 'pushbuf.c', 'bufctx.c', 'abi16.c'), config_file],

12