Lines Matching refs:pipe
30 #include "pipe/p_screen.h"
31 #include "pipe/p_context.h"
191 return ureg_create_shader_and_destroy(shader, zscan->pipe);
253 return ureg_create_shader_and_destroy(shader, zscan->pipe);
272 zscan->pipe->delete_vs_state(zscan->pipe, zscan->vs);
283 zscan->pipe->delete_vs_state(zscan->pipe, zscan->vs);
284 zscan->pipe->delete_fs_state(zscan->pipe, zscan->fs);
303 zscan->rs_state = zscan->pipe->create_rasterizer_state(zscan->pipe, &rs_state);
322 zscan->blend = zscan->pipe->create_blend_state(zscan->pipe, &blend);
337 zscan->samplers[i] = zscan->pipe->create_sampler_state(zscan->pipe, &sampler);
347 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]);
349 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state);
352 zscan->pipe->delete_blend_state(zscan->pipe, zscan->blend);
366 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]);
368 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state);
369 zscan->pipe->delete_blend_state(zscan->pipe, zscan->blend);
373 vl_zscan_layout(struct pipe_context *pipe, const int layout[64], unsigned blocks_per_line)
393 assert(pipe && layout && blocks_per_line);
408 res = pipe->screen->resource_create(pipe->screen, &res_tmpl);
412 f = pipe->texture_map(pipe, res,
431 pipe->texture_unmap(pipe, buf_transfer);
435 sv = pipe->create_sampler_view(pipe, res, &sv_tmpl);
450 vl_zscan_init(struct vl_zscan *zscan, struct pipe_context *pipe,
455 assert(zscan && pipe);
457 zscan->pipe = pipe;
523 res = zscan->pipe->screen->resource_create(zscan->pipe->screen, &res_tmpl);
530 buffer->quant = zscan->pipe->create_sampler_view(zscan->pipe, res, &sv_tmpl);
562 struct pipe_context *pipe;
578 pipe = zscan->pipe;
582 data = pipe->texture_map(pipe, buffer->quant->texture,
596 pipe->texture_unmap(pipe, buf_transfer);
604 zscan->pipe->bind_rasterizer_state(zscan->pipe, zscan->rs_state);
605 zscan->pipe->bind_blend_state(zscan->pipe, zscan->blend);
606 zscan->pipe->bind_sampler_states(zscan->pipe, PIPE_SHADER_FRAGMENT,
608 zscan->pipe->set_framebuffer_state(zscan->pipe, &buffer->fb_state);
609 zscan->pipe->set_viewport_states(zscan->pipe, 0, 1, &buffer->viewport);
610 zscan->pipe->set_sampler_views(zscan->pipe, PIPE_SHADER_FRAGMENT,
612 zscan->pipe->bind_vs_state(zscan->pipe, zscan->vs);
613 zscan->pipe->bind_fs_state(zscan->pipe, zscan->fs);
614 util_draw_arrays_instanced(zscan->pipe, PIPE_PRIM_QUADS, 0, 4, 0, num_instances);