Lines Matching refs:ctx
29 static struct pipe_context *ctx = NULL;
104 ctx->set_viewport_states( ctx, 0, 1, &vp );
132 handle = ctx->create_vertex_elements_state(ctx, 3, ve);
133 ctx->bind_vertex_elements_state(ctx, handle);
140 vbuf[0].buffer.resource = pipe_buffer_create_with_data(ctx,
149 vbuf[1].buffer.resource = pipe_buffer_create_with_data(ctx,
155 ctx->set_vertex_buffers(ctx, 0, 2, 0, false, vbuf);
172 handle = graw_parse_vertex_shader(ctx, text);
173 ctx->bind_vs_state(ctx, handle);
186 handle = graw_parse_fragment_shader(ctx, text);
187 ctx->bind_fs_state(ctx, handle);
197 ctx->clear(ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0);
212 pipe_buffer_create_with_data(ctx,
219 ctx->draw_vbo(ctx, &info, 0, NULL, &draw, 1);
223 ctx->flush(ctx, NULL, 0);
225 graw_save_surface_to_file(ctx, surf, NULL);
227 screen->flush_frontbuffer(screen, ctx, tex, 0, 0, window, NULL);
256 ctx = screen->context_create(screen, NULL, 0);
257 if (ctx == NULL)
280 surf = ctx->create_surface(ctx, tex, &surf_tmpl);
290 ctx->set_framebuffer_state(ctx, &fb);
297 handle = ctx->create_blend_state(ctx, &blend);
298 ctx->bind_blend_state(ctx, handle);
305 handle = ctx->create_depth_stencil_alpha_state(ctx, &depthstencil);
306 ctx->bind_depth_stencil_alpha_state(ctx, handle);
318 handle = ctx->create_rasterizer_state(ctx, &rasterizer);
319 ctx->bind_rasterizer_state(ctx, handle);