• Home
  • Raw
  • Download

Lines Matching refs:pipe

191    return ureg_create_shader_and_destroy(shader, zscan->pipe);  in create_vert_shader()
253 return ureg_create_shader_and_destroy(shader, zscan->pipe); in create_frag_shader()
272 zscan->pipe->delete_vs_state(zscan->pipe, zscan->vs); in init_shaders()
283 zscan->pipe->delete_vs_state(zscan->pipe, zscan->vs); in cleanup_shaders()
284 zscan->pipe->delete_fs_state(zscan->pipe, zscan->fs); in cleanup_shaders()
301 zscan->rs_state = zscan->pipe->create_rasterizer_state(zscan->pipe, &rs_state); in init_state()
320 zscan->blend = zscan->pipe->create_blend_state(zscan->pipe, &blend); in init_state()
335 zscan->samplers[i] = zscan->pipe->create_sampler_state(zscan->pipe, &sampler); in init_state()
345 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]); in init_state()
347 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state); in init_state()
350 zscan->pipe->delete_blend_state(zscan->pipe, zscan->blend); in init_state()
364 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]); in cleanup_state()
366 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state); in cleanup_state()
367 zscan->pipe->delete_blend_state(zscan->pipe, zscan->blend); in cleanup_state()
371 vl_zscan_layout(struct pipe_context *pipe, const int layout[64], unsigned blocks_per_line) in vl_zscan_layout() argument
391 assert(pipe && layout && blocks_per_line); in vl_zscan_layout()
406 res = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vl_zscan_layout()
410 f = pipe->transfer_map(pipe, res, in vl_zscan_layout()
429 pipe->transfer_unmap(pipe, buf_transfer); in vl_zscan_layout()
433 sv = pipe->create_sampler_view(pipe, res, &sv_tmpl); in vl_zscan_layout()
448 vl_zscan_init(struct vl_zscan *zscan, struct pipe_context *pipe, in vl_zscan_init() argument
453 assert(zscan && pipe); in vl_zscan_init()
455 zscan->pipe = pipe; in vl_zscan_init()
517 res = zscan->pipe->screen->resource_create(zscan->pipe->screen, &res_tmpl); in vl_zscan_init_buffer()
524 buffer->quant = zscan->pipe->create_sampler_view(zscan->pipe, res, &sv_tmpl); in vl_zscan_init_buffer()
556 struct pipe_context *pipe; in vl_zscan_upload_quant() local
572 pipe = zscan->pipe; in vl_zscan_upload_quant()
576 data = pipe->transfer_map(pipe, buffer->quant->texture, in vl_zscan_upload_quant()
590 pipe->transfer_unmap(pipe, buf_transfer); in vl_zscan_upload_quant()
598 zscan->pipe->bind_rasterizer_state(zscan->pipe, zscan->rs_state); in vl_zscan_render()
599 zscan->pipe->bind_blend_state(zscan->pipe, zscan->blend); in vl_zscan_render()
600 zscan->pipe->bind_sampler_states(zscan->pipe, PIPE_SHADER_FRAGMENT, in vl_zscan_render()
602 zscan->pipe->set_framebuffer_state(zscan->pipe, &buffer->fb_state); in vl_zscan_render()
603 zscan->pipe->set_viewport_states(zscan->pipe, 0, 1, &buffer->viewport); in vl_zscan_render()
604 zscan->pipe->set_sampler_views(zscan->pipe, PIPE_SHADER_FRAGMENT, in vl_zscan_render()
606 zscan->pipe->bind_vs_state(zscan->pipe, zscan->vs); in vl_zscan_render()
607 zscan->pipe->bind_fs_state(zscan->pipe, zscan->fs); in vl_zscan_render()
608 util_draw_arrays_instanced(zscan->pipe, PIPE_PRIM_QUADS, 0, 4, 0, num_instances); in vl_zscan_render()