Lines Matching refs:ctx
26 static struct pipe_context *ctx = NULL;
72 ctx->set_viewport_state( ctx, &vp );
88 handle = ctx->create_vertex_elements_state(ctx, 2, ve);
89 ctx->bind_vertex_elements_state(ctx, handle);
94 vbuf.buffer = pipe_buffer_create_with_data(ctx,
100 ctx->set_vertex_buffers(ctx, 1, &vbuf);
116 handle = graw_parse_vertex_shader(ctx, text);
117 ctx->bind_vs_state(ctx, handle);
130 handle = graw_parse_fragment_shader(ctx, text);
131 ctx->bind_fs_state(ctx, handle);
158 handle = graw_parse_geometry_shader(ctx, text);
159 ctx->bind_gs_state(ctx, handle);
166 ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
167 util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3);
168 ctx->flush(ctx, NULL);
199 ctx = screen->context_create(screen, NULL);
200 if (ctx == NULL)
224 surf = ctx->create_surface(ctx, tex, &surf_tmpl);
234 ctx->set_framebuffer_state(ctx, &fb);
241 handle = ctx->create_blend_state(ctx, &blend);
242 ctx->bind_blend_state(ctx, handle);
249 handle = ctx->create_depth_stencil_alpha_state(ctx, &depthstencil);
250 ctx->bind_depth_stencil_alpha_state(ctx, handle);
260 handle = ctx->create_rasterizer_state(ctx, &rasterizer);
261 ctx->bind_rasterizer_state(ctx, handle);