Home | History | Annotate | Download | only in graw

Lines Matching full:ctx

30 static struct pipe_context *ctx = NULL;
71 ctx->set_viewport_state( ctx, &vp );
87 handle = ctx->create_vertex_elements_state(ctx, 2, ve);
88 ctx->bind_vertex_elements_state(ctx, handle);
93 vbuf.buffer = pipe_buffer_create_with_data(ctx,
99 ctx->set_vertex_buffers(ctx, 1, &vbuf);
115 handle = graw_parse_vertex_shader(ctx, text);
116 ctx->bind_vs_state(ctx, handle);
135 handle = graw_parse_fragment_shader(ctx, text);
150 ctx->bind_fs_state(ctx, fs);
152 ctx->clear(ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
153 util_draw_arrays(ctx, PIPE_PRIM_POINTS, 0, 1);
154 ctx->flush(ctx, NULL);
156 ctx->bind_fs_state(ctx, NULL);
157 ctx->delete_fs_state(ctx, fs);
161 ctx->destroy(ctx);
192 ctx = screen->context_create(screen, NULL);
193 if (ctx == NULL)
217 surf = ctx->create_surface(ctx, tex, &surf_tmpl);
229 ctx->set_framebuffer_state(ctx, &fb);
236 handle = ctx->create_blend_state(ctx, &blend);
237 ctx->bind_blend_state(ctx, handle);
244 handle = ctx->create_depth_stencil_alpha_state(ctx, &depthstencil);
245 ctx->bind_depth_stencil_alpha_state(ctx, handle);
255 handle = ctx->create_rasterizer_state(ctx, &rasterizer);
256 ctx->bind_rasterizer_state(ctx, handle);