Lines Matching refs:pipe
35 #include "pipe/p_state.h"
37 #include "pipe/p_context.h"
39 #include "pipe/p_screen.h"
41 #include "pipe/p_defines.h"
43 #include "pipe/p_shader_tokens.h"
58 /* to get a hardware pipe driver */
59 #include "pipe-loader/pipe_loader.h"
65 struct pipe_context *pipe;
93 /* init a pipe screen */
97 /* create the pipe driver context and cso context */
98 p->pipe = p->screen->context_create(p->screen, NULL, 0);
99 p->cso = cso_create_context(p->pipe, 0);
126 pipe_buffer_write(p->pipe, p->vbuf, 0, sizeof(vertices), vertices);
169 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl);
222 p->vs = util_make_vertex_passthrough_shader(p->pipe, 2, semantic_names, semantic_indexes, FALSE);
226 p->fs = util_make_fragment_passthrough_shader(p->pipe,
234 p->pipe->delete_vs_state(p->pipe, p->vs);
235 p->pipe->delete_fs_state(p->pipe, p->fs);
241 p->pipe->destroy(p->pipe);
254 p->pipe->clear(p->pipe, PIPE_CLEAR_COLOR, NULL, &p->clear_color, 0, 0);
269 util_draw_vertex_buffer(p->pipe, p->cso,
275 p->pipe->flush(p->pipe, NULL, 0);
277 debug_dump_surface_bmp(p->pipe, "result.bmp", p->framebuffer.cbufs[0]);