Lines Matching full:ctx
43 static struct pipe_context *ctx = NULL;
141 ctx->transfer_inline_write(ctx,
151 pipe_set_constant_buffer(ctx,
158 ctx->transfer_inline_write(ctx,
168 pipe_set_constant_buffer(ctx,
195 ctx->set_viewport_state( ctx, &vp );
213 handle = ctx->create_vertex_elements_state(ctx, 3, ve);
214 ctx->bind_vertex_elements_state(ctx, handle);
219 vbuf.buffer = pipe_buffer_create_with_data(ctx,
225 ctx->set_vertex_buffers(ctx, 1, &vbuf);
244 handle = graw_parse_vertex_shader(ctx, text);
245 ctx->bind_vs_state(ctx, handle);
268 handle = graw_parse_fragment_shader(ctx, buf);
269 ctx->bind_fs_state(ctx, handle);
278 ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
279 util_draw_arrays(ctx, PIPE_PRIM_TRIANGLES, 0, 3);
280 ctx->flush(ctx, NULL);
282 graw_save_surface_to_file(ctx, surf, NULL);
357 ctx->transfer_inline_write(ctx,
372 t = pipe_get_transfer(ctx, samptex,
377 ptr = ctx->transfer_map(ctx, t);
384 ctx->transfer_unmap(ctx, t);
386 ctx->transfer_destroy(ctx, t);
396 sv = ctx->create_sampler_view(ctx, samptex, &sv_template);
400 ctx->set_fragment_sampler_views(ctx, 1, &sv);
415 sampler = ctx->create_sampler_state(ctx, &sampler_desc);
419 ctx->bind_fragment_sampler_states(ctx, 1, &sampler);
448 ctx = screen->context_create(screen, NULL);
449 if (ctx == NULL)
473 surf = ctx->create_surface(ctx, rttex, &surf_tmpl);
483 ctx->set_framebuffer_state(ctx, &fb);
490 handle = ctx->create_blend_state(ctx, &blend);
491 ctx->bind_blend_state(ctx, handle);
498 handle = ctx->create_depth_stencil_alpha_state(ctx, &depthstencil);
499 ctx->bind_depth_stencil_alpha_state(ctx, handle);
509 handle = ctx->create_rasterizer_state(ctx, &rasterizer);
510 ctx->bind_rasterizer_state(ctx, handle);