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"
61 /* to get a hardware pipe driver */
62 #include "pipe-loader/pipe_loader.h"
68 struct pipe_context *pipe;
99 /* init a pipe screen */
103 /* create the pipe driver context and cso context */
104 p->pipe = p->screen->context_create(p->screen, NULL, 0);
105 p->cso = cso_create_context(p->pipe, 0);
136 pipe_buffer_write(p->pipe, p->vbuf, 0, sizeof(vertices), vertices);
180 ptr = p->pipe->texture_map(p->pipe, p->tex, 0, PIPE_MAP_WRITE, &box, &t);
185 p->pipe->texture_unmap(p->pipe, t);
189 p->view = p->pipe->create_sampler_view(p->pipe, p->tex, &v_tmplt);
226 p->framebuffer.cbufs[0] = p->pipe->create_surface(p->pipe, p->target, &surf_tmpl);
279 p->vs = util_make_vertex_passthrough_shader(p->pipe, 2, semantic_names, semantic_indexes, FALSE);
283 p->fs = util_make_fragment_tex_shader(p->pipe, TGSI_TEXTURE_2D,
294 p->pipe->delete_vs_state(p->pipe, p->vs);
295 p->pipe->delete_fs_state(p->pipe, p->fs);
303 p->pipe->destroy(p->pipe);
318 p->pipe->clear(p->pipe, PIPE_CLEAR_COLOR, NULL, &p->clear_color, 0, 0);
330 p->pipe->set_sampler_views(p->pipe, PIPE_SHADER_FRAGMENT, 0, 1, 0, false, &p->view);
339 util_draw_vertex_buffer(p->pipe, p->cso,
345 p->pipe->flush(p->pipe, NULL, 0);
347 debug_dump_surface_bmp(p->pipe, "result.bmp", p->framebuffer.cbufs[0]);