Lines Matching defs:pipe
32 #include "pipe/p_defines.h"
33 #include "pipe/p_state.h"
110 struct pipe_vertex_element pipe[PIPE_MAX_ATTRIBS];
914 unsigned vbi = vtx->pipe[i].vertex_buffer_index;
2200 unsigned vbi = so->pipe[i].vertex_buffer_index;
2204 signed src_offset = so->pipe[i].src_offset;
2208 if (ctx->base_instance && so->pipe[i].instance_divisor) {
2210 so->pipe[i].instance_divisor;
2216 if (so->pipe[i].instance_divisor && ctx->instance_count > 1)
3941 panfrost_draw_vbo(struct pipe_context *pipe,
3948 struct panfrost_context *ctx = pan_context(pipe);
3949 struct panfrost_device *dev = pan_device(pipe->screen);
3957 util_draw_indirect(pipe, info, indirect);
4034 panfrost_launch_grid(struct pipe_context *pipe,
4037 struct panfrost_context *ctx = pan_context(pipe);
4052 uint32_t *params = pipe_buffer_map_range(pipe, info->indirect,
4063 pipe_buffer_unmap(pipe, transfer);
4066 panfrost_launch_grid(pipe, &direct);
4087 pipe->set_constant_buffer(pipe, PIPE_SHADER_COMPUTE, 0, false, &ubuf);
4251 memcpy(so->pipe, elements, sizeof(*elements) * num_elements);
4326 panfrost_create_depth_stencil_state(struct pipe_context *pipe,
4452 panfrost_create_blend_state(struct pipe_context *pipe,
4464 const struct pipe_rt_blend_state pipe = blend->rt[g];
4467 equation.color_mask = pipe.colormask;
4468 equation.blend_enable = pipe.blend_enable;
4470 if (pipe.blend_enable) {
4471 equation.rgb_func = util_blend_func_to_shader(pipe.rgb_func);
4472 equation.rgb_src_factor = util_blend_factor_to_shader(pipe.rgb_src_factor);
4473 equation.rgb_invert_src_factor = util_blend_factor_is_inverted(pipe.rgb_src_factor);
4474 equation.rgb_dst_factor = util_blend_factor_to_shader(pipe.rgb_dst_factor);
4475 equation.rgb_invert_dst_factor = util_blend_factor_is_inverted(pipe.rgb_dst_factor);
4476 equation.alpha_func = util_blend_func_to_shader(pipe.alpha_func);
4477 equation.alpha_src_factor = util_blend_factor_to_shader(pipe.alpha_src_factor);
4478 equation.alpha_invert_src_factor = util_blend_factor_is_inverted(pipe.alpha_src_factor);
4479 equation.alpha_dst_factor = util_blend_factor_to_shader(pipe.alpha_dst_factor);
4480 equation.alpha_invert_dst_factor = util_blend_factor_is_inverted(pipe.alpha_dst_factor);
4670 context_init(struct pipe_context *pipe)
4672 pipe->draw_vbo = panfrost_draw_vbo;
4673 pipe->launch_grid = panfrost_launch_grid;
4675 pipe->create_vertex_elements_state = panfrost_create_vertex_elements_state;
4676 pipe->create_rasterizer_state = panfrost_create_rasterizer_state;
4677 pipe->create_depth_stencil_alpha_state = panfrost_create_depth_stencil_state;
4678 pipe->create_sampler_view = panfrost_create_sampler_view;
4679 pipe->sampler_view_destroy = panfrost_sampler_view_destroy;
4680 pipe->create_sampler_state = panfrost_create_sampler_state;
4681 pipe->create_blend_state = panfrost_create_blend_state;
4683 pipe->get_sample_position = panfrost_get_sample_position;