Lines Matching refs:nv30
40 struct nv30_context *nv30; in nv30_context_kick_notify() local
44 nv30 = container_of(push->user_priv, nv30, bufctx); in nv30_context_kick_notify()
45 screen = &nv30->screen->base; in nv30_context_kick_notify()
72 struct nv30_context *nv30 = nv30_context(pipe); in nv30_context_flush() local
73 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_context_flush()
76 nouveau_fence_ref(nv30->screen->base.fence.current, in nv30_context_flush()
85 struct nv30_context *nv30 = nv30_context(pipe); in nv30_context_destroy() local
87 if (nv30->draw) in nv30_context_destroy()
88 draw_destroy(nv30->draw); in nv30_context_destroy()
90 nouveau_bufctx_del(&nv30->bufctx); in nv30_context_destroy()
92 if (nv30->screen->cur_ctx == nv30) in nv30_context_destroy()
93 nv30->screen->cur_ctx = NULL; in nv30_context_destroy()
95 nouveau_context_destroy(&nv30->base); in nv30_context_destroy()
109 struct nv30_context *nv30 = CALLOC_STRUCT(nv30_context); in nv30_context_create() local
114 if (!nv30) in nv30_context_create()
117 nv30->screen = screen; in nv30_context_create()
118 nv30->base.screen = &screen->base; in nv30_context_create()
119 nv30->base.copy_data = nv30_transfer_copy_data; in nv30_context_create()
121 pipe = &nv30->base.pipe; in nv30_context_create()
128 nv30->base.client = screen->base.client; in nv30_context_create()
132 nv30->base.pushbuf = push; in nv30_context_create()
133 nv30->base.pushbuf->user_priv = push->user_priv; /* hack at validate time */ in nv30_context_create()
134 nv30->base.pushbuf->rsvd_kick = 16; /* hack in screen before first space */ in nv30_context_create()
135 nv30->base.pushbuf->kick_notify = nv30_context_kick_notify; in nv30_context_create()
137 ret = nouveau_bufctx_new(nv30->base.client, 64, &nv30->bufctx); in nv30_context_create()
147 nv30->config.filter = 0x00000004; in nv30_context_create()
149 nv30->config.filter = 0x00002dc4; in nv30_context_create()
151 nv30->config.aniso = NV40_3D_TEX_WRAP_ANISO_MIP_FILTER_OPTIMIZATION_OFF; in nv30_context_create()
154 nv30->draw_flags |= NV30_NEW_SWTNL; in nv30_context_create()
157 nv30->is_nv4x = (screen->eng3d->oclass >= NV40_3D_CLASS) ? ~0 : 0; in nv30_context_create()
158 nv30->use_nv4x = (screen->eng3d->oclass >= NV40_3D_CLASS) ? ~0 : 0; in nv30_context_create()
159 nv30->render_mode = HW; in nv30_context_create()
161 nv30->sample_mask = 0xffff; in nv30_context_create()