Lines Matching refs:cso

70 util_set_framebuffer_cb0(struct cso_context *cso, struct pipe_context *ctx,
84 cso_set_framebuffer(cso, &fb);
89 util_set_blend_normal(struct cso_context *cso)
94 cso_set_blend(cso, &blend);
98 util_set_dsa_disable(struct cso_context *cso)
102 cso_set_depth_stencil_alpha(cso, &dsa);
106 util_set_rasterizer_normal(struct cso_context *cso)
115 cso_set_rasterizer(cso, &rs);
119 util_set_max_viewport(struct cso_context *cso, struct pipe_resource *tex)
134 cso_set_viewport(cso, &viewport);
138 util_set_interleaved_vertex_elements(struct cso_context *cso,
151 cso_set_vertex_elements(cso, &velem);
155 util_set_passthrough_vertex_shader(struct cso_context *cso,
168 cso_set_vertex_shader_handle(cso, vs);
173 util_set_common_states_and_clear(struct cso_context *cso, struct pipe_context *ctx,
178 util_set_framebuffer_cb0(cso, ctx, cb);
179 util_set_blend_normal(cso);
180 util_set_dsa_disable(cso);
181 util_set_rasterizer_normal(cso);
182 util_set_max_viewport(cso, cb);
188 util_draw_fullscreen_quad(struct cso_context *cso)
196 util_set_interleaved_vertex_elements(cso, 2);
197 util_draw_user_vertex_buffer(cso, vertices, PIPE_PRIM_QUADS, 4, 2);
201 util_draw_fullscreen_quad_fill(struct cso_context *cso,
210 util_set_interleaved_vertex_elements(cso, 2);
211 util_draw_user_vertex_buffer(cso, vertices, PIPE_PRIM_QUADS, 4, 2);
318 struct cso_context *cso;
330 cso = cso_create_context(ctx, 0);
333 util_set_common_states_and_clear(cso, ctx, cb);
338 cso_set_fragment_shader_handle(cso, fs);
341 vs = util_set_passthrough_vertex_shader(cso, ctx, true);
351 util_set_interleaved_vertex_elements(cso, 2);
352 util_draw_user_vertex_buffer(cso, vertices, PIPE_PRIM_QUADS, 4, 2);
360 cso_destroy_context(cso);
371 struct cso_context *cso;
390 cso = cso_create_context(ctx, 0);
393 util_set_common_states_and_clear(cso, ctx, cb);
402 cso_set_fragment_shader_handle(cso, fs);
405 vs = util_set_passthrough_vertex_shader(cso, ctx, false);
406 util_draw_fullscreen_quad(cso);
414 cso_destroy_context(cso);
427 struct cso_context *cso;
433 cso = cso_create_context(ctx, 0);
436 util_set_common_states_and_clear(cso, ctx, cb);
459 cso_set_fragment_shader_handle(cso, fs);
463 vs = util_set_passthrough_vertex_shader(cso, ctx, false);
464 util_draw_fullscreen_quad(cso);
471 cso_destroy_context(cso);
482 struct cso_context *cso;
489 cso = cso_create_context(ctx, 0);
492 util_set_common_states_and_clear(cso, ctx, cb);
496 cso_set_rasterizer(cso, &rs);
498 vs = util_set_passthrough_vertex_shader(cso, ctx, false);
501 cso_set_fragment_shader_handle(cso, fs);
505 util_draw_fullscreen_quad(cso);
510 cso_destroy_context(cso);
537 struct cso_context *cso = cso_create_context(ctx, 0);
616 cso_destroy_context(cso);
627 struct cso_context *cso;
648 cso = cso_create_context(ctx, 0);
651 util_set_common_states_and_clear(cso, ctx, cb);
658 cso_set_fragment_shader_handle(cso, fs);
661 void *vs = util_set_passthrough_vertex_shader(cso, ctx, false);
680 util_draw_fullscreen_quad_fill(cso, value, value, value, value);
684 cso_set_vertex_shader_handle(cso, NULL);
685 cso_set_fragment_shader_handle(cso, NULL);
756 cso_set_fragment_shader_handle(cso, fs);
759 void *vs = util_set_passthrough_vertex_shader(cso, ctx, false);
768 util_draw_fullscreen_quad(cso);
790 cso_destroy_context(cso);