Lines Matching refs:SCREEN
39 struct nouveau_screen *screen = &nvc0->screen->base;
42 nouveau_fence_ref(screen->fence.current, (struct nouveau_fence **)fence);
89 if (nvc0->screen->cur_ctx == nvc0) {
91 nvc0->screen->cur_ctx = NULL;
108 struct nvc0_screen *screen = push->user_priv;
110 if (screen) {
111 nouveau_fence_next(&screen->base);
112 nouveau_fence_update(&screen->base, TRUE);
113 if (screen->cur_ctx)
114 screen->cur_ctx->state.flushed = TRUE;
121 struct nvc0_screen *screen = nvc0_screen(pscreen);
132 nvc0->base.pushbuf = screen->base.pushbuf;
134 ret = nouveau_bufctx_new(screen->base.client, NVC0_BIND_COUNT,
137 nouveau_bufctx_new(screen->base.client, 2, &nvc0->bufctx);
141 nvc0->screen = screen;
142 nvc0->base.screen = &screen->base;
144 pipe->screen = pscreen;
155 if (!screen->cur_ctx) {
156 screen->cur_ctx = nvc0;
157 nouveau_pushbuf_bufctx(screen->base.pushbuf, nvc0->bufctx);
159 screen->base.pushbuf->kick_notify = nvc0_default_kick_notify;
176 /* shader builtin library is per-screen, but we need a context for m2mf */
183 BCTX_REFN_bo(nvc0->bufctx_3d, SCREEN, flags, screen->text);
184 BCTX_REFN_bo(nvc0->bufctx_3d, SCREEN, flags, screen->uniform_bo);
185 BCTX_REFN_bo(nvc0->bufctx_3d, SCREEN, flags, screen->txc);
186 BCTX_REFN_bo(nvc0->bufctx_3d, SCREEN, flags, screen->poly_cache);
190 BCTX_REFN_bo(nvc0->bufctx_3d, SCREEN, flags, screen->fence.bo);
191 BCTX_REFN_bo(nvc0->bufctx, FENCE, flags, screen->fence.bo);