Lines Matching refs:pipe
166 return ureg_create_shader_and_destroy(shader, zscan->pipe); in create_vert_shader()
228 return ureg_create_shader_and_destroy(shader, zscan->pipe); in create_frag_shader()
247 zscan->pipe->delete_vs_state(zscan->pipe, zscan->vs); in init_shaders()
258 zscan->pipe->delete_vs_state(zscan->pipe, zscan->vs); in cleanup_shaders()
259 zscan->pipe->delete_fs_state(zscan->pipe, zscan->fs); in cleanup_shaders()
275 zscan->rs_state = zscan->pipe->create_rasterizer_state(zscan->pipe, &rs_state); in init_state()
294 zscan->blend = zscan->pipe->create_blend_state(zscan->pipe, &blend); in init_state()
309 zscan->samplers[i] = zscan->pipe->create_sampler_state(zscan->pipe, &sampler); in init_state()
319 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]); in init_state()
321 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state); in init_state()
324 zscan->pipe->delete_blend_state(zscan->pipe, zscan->blend); in init_state()
338 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]); in cleanup_state()
340 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state); in cleanup_state()
341 zscan->pipe->delete_blend_state(zscan->pipe, zscan->blend); in cleanup_state()
345 vl_zscan_layout(struct pipe_context *pipe, const int layout[64], unsigned blocks_per_line) in vl_zscan_layout() argument
365 assert(pipe && layout && blocks_per_line); in vl_zscan_layout()
380 res = pipe->screen->resource_create(pipe->screen, &res_tmpl); in vl_zscan_layout()
384 buf_transfer = pipe->get_transfer in vl_zscan_layout()
386 pipe, res, in vl_zscan_layout()
395 f = pipe->transfer_map(pipe, buf_transfer); in vl_zscan_layout()
410 pipe->transfer_unmap(pipe, buf_transfer); in vl_zscan_layout()
411 pipe->transfer_destroy(pipe, buf_transfer); in vl_zscan_layout()
415 sv = pipe->create_sampler_view(pipe, res, &sv_tmpl); in vl_zscan_layout()
423 pipe->transfer_destroy(pipe, buf_transfer); in vl_zscan_layout()
433 vl_zscan_init(struct vl_zscan *zscan, struct pipe_context *pipe, in vl_zscan_init() argument
438 assert(zscan && pipe); in vl_zscan_init()
440 zscan->pipe = pipe; in vl_zscan_init()
504 res = zscan->pipe->screen->resource_create(zscan->pipe->screen, &res_tmpl); in vl_zscan_init_buffer()
511 buffer->quant = zscan->pipe->create_sampler_view(zscan->pipe, res, &sv_tmpl); in vl_zscan_init_buffer()
543 struct pipe_context *pipe; in vl_zscan_upload_quant() local
559 pipe = zscan->pipe; in vl_zscan_upload_quant()
563 buf_transfer = pipe->get_transfer in vl_zscan_upload_quant()
565 pipe, buffer->quant->texture, in vl_zscan_upload_quant()
574 data = pipe->transfer_map(pipe, buf_transfer); in vl_zscan_upload_quant()
583 pipe->transfer_unmap(pipe, buf_transfer); in vl_zscan_upload_quant()
586 pipe->transfer_destroy(pipe, buf_transfer); in vl_zscan_upload_quant()
597 zscan->pipe->bind_rasterizer_state(zscan->pipe, zscan->rs_state); in vl_zscan_render()
598 zscan->pipe->bind_blend_state(zscan->pipe, zscan->blend); in vl_zscan_render()
599 zscan->pipe->bind_fragment_sampler_states(zscan->pipe, 3, zscan->samplers); in vl_zscan_render()
600 zscan->pipe->set_framebuffer_state(zscan->pipe, &buffer->fb_state); in vl_zscan_render()
601 zscan->pipe->set_viewport_state(zscan->pipe, &buffer->viewport); in vl_zscan_render()
602 zscan->pipe->set_fragment_sampler_views(zscan->pipe, 3, &buffer->src); in vl_zscan_render()
603 zscan->pipe->bind_vs_state(zscan->pipe, zscan->vs); in vl_zscan_render()
604 zscan->pipe->bind_fs_state(zscan->pipe, zscan->fs); in vl_zscan_render()
605 util_draw_arrays_instanced(zscan->pipe, PIPE_PRIM_QUADS, 0, 4, 0, num_instances); in vl_zscan_render()