Lines Matching refs:ctx
30 static struct pipe_context *ctx = NULL;
81 ctx->set_viewport_state( ctx, &vp );
97 handle = ctx->create_vertex_elements_state(ctx, 2, ve);
98 ctx->bind_vertex_elements_state(ctx, handle);
103 vbuf.buffer = pipe_buffer_create_with_data(ctx,
109 ctx->set_vertex_buffers(ctx, 1, &vbuf);
125 handle = graw_parse_vertex_shader(ctx, text);
126 ctx->bind_vs_state(ctx, handle);
143 handle = graw_parse_fragment_shader(ctx, text);
144 ctx->bind_fs_state(ctx, handle);
152 ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
153 util_draw_arrays(ctx, PIPE_PRIM_QUADS, 0, 4);
154 ctx->flush(ctx, NULL);
156 graw_save_surface_to_file(ctx, surf, NULL);
230 ctx->transfer_inline_write(ctx,
245 t = pipe_get_transfer(ctx, samptex,
250 ptr = ctx->transfer_map(ctx, t);
257 ctx->transfer_unmap(ctx, t);
259 ctx->transfer_destroy(ctx, t);
269 sv = ctx->create_sampler_view(ctx, samptex, &sv_template);
273 ctx->set_fragment_sampler_views(ctx, 1, &sv);
288 sampler = ctx->create_sampler_state(ctx, &sampler_desc);
292 ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
321 ctx = screen->context_create(screen, NULL);
322 if (ctx == NULL)
346 surf = ctx->create_surface(ctx, rttex, &surf_tmpl);
356 ctx->set_framebuffer_state(ctx, &fb);
363 handle = ctx->create_blend_state(ctx, &blend);
364 ctx->bind_blend_state(ctx, handle);
371 handle = ctx->create_depth_stencil_alpha_state(ctx, &depthstencil);
372 ctx->bind_depth_stencil_alpha_state(ctx, handle);
382 handle = ctx->create_rasterizer_state(ctx, &rasterizer);
383 ctx->bind_rasterizer_state(ctx, handle);