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