/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nouveau_context.c | 63 struct nouveau_context *nctx; in nouveau_context_create() local 84 nctx = to_nouveau_context(ctx); in nouveau_context_create() 85 nctx->dri_context = dri_ctx; in nouveau_context_create() 100 NULL, &nctx->fence)) { in nouveau_context_create() 115 struct nouveau_context *nctx = to_nouveau_context(ctx); in nouveau_context_init() local 119 nctx->screen = screen; in nouveau_context_init() 120 nctx->fallback = HWTNL; in nouveau_context_init() 148 }, sizeof(struct nv04_fifo), &nctx->hw.chan); in nouveau_context_init() 155 ret = nouveau_client_new(context_dev(ctx), &nctx->hw.client); in nouveau_context_init() 162 ret = nouveau_pushbuf_new(nctx->hw.client, nctx->hw.chan, 4, in nouveau_context_init() [all …]
|
D | nv10_context.c | 41 struct nouveau_context *nctx = to_nouveau_context(ctx); in use_fast_zclear() local 49 nctx->hierz.clear_blocked = GL_TRUE; in use_fast_zclear() 54 return !nctx->hierz.clear_blocked && in use_fast_zclear() 62 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_use_viewport_zclear() local 67 !nctx->hierz.clear_blocked && depthRb && in nv10_use_viewport_zclear() 75 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_transform_depth() local 78 return 2097152.0 * (z + (nctx->hierz.clear_seq & 7)); in nv10_transform_depth() 97 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_zclear() local 118 nctx->hierz.clear_seq++; in nv10_zclear() 121 if ((nctx->hierz.clear_seq & 7) != 0 && in nv10_zclear() [all …]
|
D | nv04_context.c | 51 struct nv04_context *nctx = to_nv04_context(ctx); in nv04_context_engine() local 68 if (fahrenheit != nctx->eng3d) { in nv04_context_engine() 71 nctx->eng3d = fahrenheit; in nv04_context_engine() 126 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv04_context_destroy() local 132 nouveau_object_del(&nctx->hw.eng3d); in nv04_context_destroy() 133 nouveau_object_del(&nctx->hw.eng3dm); in nv04_context_destroy() 134 nouveau_object_del(&nctx->hw.surf3d); in nv04_context_destroy() 145 struct nv04_context *nctx; in nv04_context_create() local 150 nctx = CALLOC_STRUCT(nv04_context); in nv04_context_create() 151 if (!nctx) in nv04_context_create() [all …]
|
D | nouveau_driver.c | 69 struct nouveau_context *nctx = to_nouveau_context(ctx); in nouveau_flush() local 76 __DRIscreen *screen = nctx->screen->dri_screen; in nouveau_flush() 78 __DRIdrawable *drawable = nctx->dri_context->driDrawablePriv; in nouveau_flush() 88 struct nouveau_context *nctx = to_nouveau_context(ctx); in nouveau_finish() local 91 { nctx->fence, NOUVEAU_BO_VRAM | NOUVEAU_BO_RDWR }; in nouveau_finish() 101 nouveau_bo_wait(nctx->fence, NOUVEAU_BO_RDWR, context_client(ctx)); in nouveau_finish()
|
D | nv10_state_tnl.c | 135 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_emit_fog() local 138 unsigned source = nctx->fallback == HWTNL ? in nv10_emit_fog() 174 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_emit_light_enable() local 179 if (nctx->fallback != HWTNL) { in nv10_emit_light_enable() 446 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_emit_modelview() local 450 if (nctx->fallback != HWTNL) in nv10_emit_modelview() 478 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_emit_projection() local 488 if (nctx->fallback == HWTNL) in nv10_emit_projection()
|
D | nouveau_vbo_t.c | 235 struct nouveau_context *nctx = to_nouveau_context(ctx); in vbo_maybe_split() local 237 struct nouveau_bufctx *bufctx = nctx->hw.bufctx; in vbo_maybe_split() 363 struct nouveau_context *nctx = to_nouveau_context(ctx); in vbo_draw_vbo() local 380 nouveau_pushbuf_bufctx(push, nctx->hw.bufctx); in vbo_draw_vbo() 414 struct nouveau_context *nctx = to_nouveau_context(ctx); in vbo_draw_imm() local 420 nouveau_pushbuf_bufctx(push, nctx->hw.bufctx); in vbo_draw_imm() 500 struct nouveau_context *nctx = to_nouveau_context(ctx); in TAG() local 504 if (nctx->fallback == HWTNL) in TAG() 509 if (nctx->fallback == SWTNL) in TAG()
|
D | nv20_context.c | 41 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv20_clear() local 48 nouveau_pushbuf_bufctx(push, nctx->hw.bufctx); in nv20_clear() 428 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv20_context_destroy() local 434 nouveau_object_del(&nctx->hw.eng3d); in nv20_context_destroy() 445 struct nouveau_context *nctx; in nv20_context_create() local 450 nctx = CALLOC_STRUCT(nouveau_context); in nv20_context_create() 451 if (!nctx) in nv20_context_create() 454 ctx = &nctx->base; in nv20_context_create() 490 NULL, 0, &nctx->hw.eng3d); in nv20_context_create()
|
D | nv20_state_tnl.c | 154 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv20_emit_fog() local 157 unsigned source = nctx->fallback == HWTNL ? in nv20_emit_fog() 342 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv20_emit_modelview() local 346 if (nctx->fallback != HWTNL) in nv20_emit_modelview() 369 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv20_emit_projection() local 376 if (nctx->fallback == HWTNL) in nv20_emit_projection()
|
D | nv10_state_tex.c | 40 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_emit_tex_gen() local 46 if (nctx->fallback == HWTNL && (unit->TexGenEnabled & 1 << j)) { in nv10_emit_tex_gen() 71 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_emit_tex_mat() local 74 if (nctx->fallback == HWTNL && in nv10_emit_tex_mat()
|
D | nouveau_state.c | 429 struct nouveau_context *nctx = to_nouveau_context(ctx); in nouveau_next_dirty_state() local 430 int i = BITSET_FFS(nctx->dirty) - 1; in nouveau_next_dirty_state() 441 struct nouveau_context *nctx = to_nouveau_context(ctx); in nouveau_state_emit() local 446 BITSET_CLEAR(nctx->dirty, i); in nouveau_state_emit() 450 BITSET_ZERO(nctx->dirty); in nouveau_state_emit() 504 struct nouveau_context *nctx = to_nouveau_context(ctx); in nouveau_state_init() local 542 BITSET_ONES(nctx->dirty); in nouveau_state_init()
|
D | nv20_state_tex.c | 40 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv20_emit_tex_gen() local 46 if (nctx->fallback == HWTNL && (unit->TexGenEnabled & 1 << j)) { in nv20_emit_tex_gen() 69 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv20_emit_tex_mat() local 72 if (nctx->fallback == HWTNL && in nv20_emit_tex_mat()
|
D | nv10_state_fb.c | 204 struct nouveau_context *nctx = to_nouveau_context(ctx); in nv10_emit_zclear() local 211 PUSH_DATAb(push, !nctx->hierz.clear_blocked); in nv10_emit_zclear() 213 (nctx->hierz.clear_seq & 0xff)); in nv10_emit_zclear()
|
D | nv04_render.c | 75 struct nv04_context *nctx = to_nv04_context(ctx); in swtnl_choose_attrs() local 91 _tnl_install_attrs(ctx, map, n, nctx->viewport, 0); in swtnl_choose_attrs()
|
D | nouveau_texture.c | 645 struct nouveau_context *nctx = dri_ctx->driverPrivate; in nouveau_set_texbuffer() local 646 struct gl_context *ctx = &nctx->base; in nouveau_set_texbuffer()
|