Searched defs:cso (Results 1 - 25 of 30) sorted by relevance

12

/external/mesa3d/src/gallium/state_trackers/xorg/
H A Dxorg_renderer.h21 struct cso_context *cso; member in struct:xorg_renderer
H A Dxorg_exa_tgsi.c621 cache_destroy(struct cso_context *cso, argument
629 cso_delete_fragment_shader(cso, shader);
631 cso_delete_vertex_shader(cso, shader);
640 cache_destroy(sc->r->cso, sc->vs_hash,
642 cache_destroy(sc->r->cso, sc->fs_hash,
/external/mesa3d/src/gallium/auxiliary/postprocess/
H A Dpp_program.h41 struct cso_context *cso; member in struct:program
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_draw_quad.c43 struct cso_context *cso,
62 if (cso) {
63 cso_set_vertex_buffers(cso, 1, &vbuffer);
64 cso_draw_arrays(cso, prim_type, 0, num_verts);
77 util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer, argument
89 cso_set_vertex_buffers(cso, 1, &vbuffer);
90 cso_draw_arrays(cso, prim_type, 0, num_verts);
99 util_draw_texquad(struct pipe_context *pipe, struct cso_context *cso, argument
148 util_draw_vertex_buffer(pipe, cso, vbuf, 0, PIPE_PRIM_TRIANGLE_FAN, 4, 2);
42 util_draw_vertex_buffer(struct pipe_context *pipe, struct cso_context *cso, struct pipe_resource *vbuf, uint offset, uint prim_type, uint num_verts, uint num_attribs) argument
H A Du_hash_table.c52 struct cso_hash *cso; member in struct:util_hash_table
88 ht->cso = cso_hash_create();
89 if(!ht->cso) {
109 iter = cso_hash_find(ht->cso, key_hash);
129 iter = cso_hash_find(ht->cso, key_hash);
170 iter = cso_hash_insert(ht->cso, key_hash, item);
223 cso_hash_erase(ht->cso, iter);
237 iter = cso_hash_first_node(ht->cso);
239 item = (struct util_hash_table_item *)cso_hash_take(ht->cso, cso_hash_iter_key(iter));
241 iter = cso_hash_first_node(ht->cso);
[all...]
H A Du_keymap.c48 struct cso_hash *cso; member in struct:keymap
117 map->cso = cso_hash_create();
118 if (!map->cso) {
141 cso_hash_delete(map->cso);
153 iter = cso_hash_find(map->cso, key_hash);
216 iter = cso_hash_insert(map->cso, key_hash, item);
283 cso_hash_erase(map->cso, iter);
301 iter = cso_hash_first_node(map->cso);
304 cso_hash_take(map->cso, cso_hash_iter_key(iter));
308 iter = cso_hash_first_node(map->cso);
[all...]
H A Du_blit.c57 struct cso_context *cso; member in struct:blit_state
90 util_create_blit(struct pipe_context *pipe, struct cso_context *cso) argument
100 ctx->cso = cso;
214 cso_set_fragment_shader_handle(ctx->cso, ctx->fs[pipe_tex][writemask]);
233 cso_set_fragment_shader_handle(ctx->cso, ctx->fs_depthstencil[pipe_tex]);
252 cso_set_fragment_shader_handle(ctx->cso, ctx->fs_depth[pipe_tex]);
271 cso_set_fragment_shader_handle(ctx->cso, ctx->fs_stencil[pipe_tex]);
293 cso_set_vertex_shader_handle(ctx->cso, ctx->vs);
655 cso_save_blend(ctx->cso);
[all...]
H A Du_vbuf.c130 static void u_vbuf_delete_vertex_elements(struct u_vbuf *mgr, void *cso);
215 struct cso_velements *cso = MALLOC_STRUCT(cso_velements); local
216 memcpy(&cso->state, &velems_state, key_size);
217 cso->data = u_vbuf_create_vertex_elements(mgr, count, states);
218 cso->delete_state = (cso_state_callback)u_vbuf_delete_vertex_elements;
219 cso->context = (void*)mgr;
221 iter = cso_insert_state(mgr->cso_cache, hash_key, CSO_VELEMENTS, cso);
222 ve = cso->data;
704 static void u_vbuf_delete_vertex_elements(struct u_vbuf *mgr, void *cso) argument
707 struct u_vbuf_elements *ve = cso;
[all...]
/external/mesa3d/src/gallium/drivers/nv30/
H A Dnv30_fragprog.c132 const struct pipe_shader_state *cso)
138 fp->pipe.tokens = tgsi_dup_tokens(cso->tokens);
131 nv30_fp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) argument
H A Dnv30_vertprog.c221 const struct pipe_shader_state *cso)
227 vp->pipe.tokens = tgsi_dup_tokens(cso->tokens);
220 nv30_vp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) argument
H A Dnv30_texture.c62 filter_mode(const struct pipe_sampler_state *cso) argument
66 switch (cso->mag_img_filter) {
75 switch (cso->min_img_filter) {
77 switch (cso->min_mip_filter) {
90 switch (cso->min_mip_filter) {
108 compare_mode(const struct pipe_sampler_state *cso) argument
110 if (cso->compare_mode != PIPE_TEX_COMPARE_R_TO_TEXTURE)
113 switch (cso->compare_func) {
129 const struct pipe_sampler_state *cso)
139 so->pipe = *cso;
128 nv30_sampler_state_create(struct pipe_context *pipe, const struct pipe_sampler_state *cso) argument
[all...]
H A Dnv30_state.c38 const struct pipe_blend_state *cso)
48 so->pipe = *cso;
50 if (cso->logicop_enable) {
53 SB_DATA (so, nvgl_logicop_func(cso->logicop_func));
60 SB_DATA (so, cso->dither);
62 blend[0] = cso->rt[0].blend_enable;
63 cmask[0] = !!(cso->rt[0].colormask & PIPE_MASK_A) << 24 |
64 !!(cso->rt[0].colormask & PIPE_MASK_R) << 16 |
65 !!(cso->rt[0].colormask & PIPE_MASK_G) << 8 |
66 !!(cso
37 nv30_blend_state_create(struct pipe_context *pipe, const struct pipe_blend_state *cso) argument
132 nv30_rasterizer_state_create(struct pipe_context *pipe, const struct pipe_rasterizer_state *cso) argument
209 nv30_zsa_state_create(struct pipe_context *pipe, const struct pipe_depth_stencil_alpha_state *cso) argument
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_context.c284 struct cso_context *cso = st->cso_context; local
319 cso_destroy_context(cso);
H A Dst_cb_drawtex.c110 struct cso_context *cso = ctx->st->cso_context; local
228 cso_save_viewport(cso);
229 cso_save_stream_outputs(cso);
230 cso_save_vertex_shader(cso);
231 cso_save_geometry_shader(cso);
232 cso_save_vertex_elements(cso);
233 cso_save_vertex_buffers(cso);
238 cso_set_vertex_shader_handle(cso, vs);
240 cso_set_geometry_shader_handle(cso, NULL);
248 cso_set_vertex_elements(cso, numAttrib
[all...]
H A Dst_cb_bitmap.c415 struct cso_context *cso = st->cso_context; local
456 cso_save_rasterizer(cso);
457 cso_save_samplers(cso, PIPE_SHADER_FRAGMENT);
458 cso_save_sampler_views(cso, PIPE_SHADER_FRAGMENT);
459 cso_save_viewport(cso);
460 cso_save_fragment_shader(cso);
461 cso_save_stream_outputs(cso);
462 cso_save_vertex_shader(cso);
463 cso_save_geometry_shader(cso);
464 cso_save_vertex_elements(cso);
[all...]
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_sampler.c99 struct svga_sampler_state *cso = CALLOC_STRUCT( svga_sampler_state ); local
101 if (!cso)
104 cso->mipfilter = translate_mip_filter(sampler->min_mip_filter);
105 cso->magfilter = translate_img_filter( sampler->mag_img_filter );
106 cso->minfilter = translate_img_filter( sampler->min_img_filter );
107 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 );
109 cso->magfilter = cso->minfilter = SVGA3D_TEX_FILTER_ANISOTROPIC;
110 cso->lod_bias = sampler->lod_bias;
111 cso
[all...]
/external/mesa3d/src/gallium/auxiliary/cso_cache/
H A Dcso_cache.c92 struct cso_blend *cso = (struct cso_blend *)state; local
93 if (cso->delete_state)
94 cso->delete_state(cso->context, cso->data);
100 struct cso_depth_stencil_alpha *cso = (struct cso_depth_stencil_alpha *)state; local
101 if (cso->delete_state)
102 cso->delete_state(cso->context, cso
108 struct cso_sampler *cso = (struct cso_sampler *)state; local
116 struct cso_rasterizer *cso = (struct cso_rasterizer *)state; local
124 struct cso_velements *cso = (struct cso_velements *)state; local
179 void *cso = cso_hash_take(hash, cso_hash_iter_key(iter)); local
[all...]
H A Dcso_context.c31 * Wrap the cso cache & hash mechanisms in a simplified
125 struct cso_blend *cso = (struct cso_blend *)state; local
127 if (ctx->blend == cso->data)
130 if (cso->delete_state)
131 cso->delete_state(cso->context, cso->data);
138 struct cso_depth_stencil_alpha *cso = local
141 if (ctx->depth_stencil == cso->data)
144 if (cso
153 struct cso_sampler *cso = (struct cso_sampler *)state; local
162 struct cso_rasterizer *cso = (struct cso_rasterizer *)state; local
175 struct cso_velements *cso = (struct cso_velements *)state; local
224 void *cso = cso_hash_iter_data(iter); local
233 cso_init_vbuf(struct cso_context *cso) argument
384 struct cso_blend *cso = MALLOC(sizeof(struct cso_blend)); local
443 struct cso_depth_stencil_alpha *cso = local
506 struct cso_rasterizer *cso = MALLOC(sizeof(struct cso_rasterizer)); local
845 struct cso_velements *cso = MALLOC(sizeof(struct cso_velements)); local
985 struct cso_sampler *cso = MALLOC(sizeof(struct cso_sampler)); local
1305 cso_set_index_buffer(struct cso_context *cso, const struct pipe_index_buffer *ib) argument
1319 cso_draw_vbo(struct cso_context *cso, const struct pipe_draw_info *info) argument
1333 cso_draw_arrays(struct cso_context *cso, uint mode, uint start, uint count) argument
[all...]
/external/mesa3d/src/gallium/tests/trivial/
H A Dquad-tex.c68 struct cso_context *cso; member in struct:program
102 /* create the pipe driver context and cso context */
104 p->cso = cso_create_context(p->pipe);
285 cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 0, NULL);
288 cso_release_all(p->cso);
299 cso_destroy_context(p->cso);
310 cso_set_framebuffer(p->cso, &p->framebuffer);
316 cso_set_blend(p->cso, &p->blend);
317 cso_set_depth_stencil_alpha(p->cso, &p->depthstencil);
318 cso_set_rasterizer(p->cso,
[all...]
H A Dtri.c66 struct cso_context *cso; member in struct:program
97 /* create the pipe driver context and cso context */
99 p->cso = cso_create_context(p->pipe);
226 cso_release_all(p->cso);
235 cso_destroy_context(p->cso);
246 cso_set_framebuffer(p->cso, &p->framebuffer);
252 cso_set_blend(p->cso, &p->blend);
253 cso_set_depth_stencil_alpha(p->cso, &p->depthstencil);
254 cso_set_rasterizer(p->cso, &p->rasterizer);
255 cso_set_viewport(p->cso,
[all...]
/external/mesa3d/src/gallium/drivers/nv50/
H A Dnv50_state.c117 const struct pipe_blend_state *cso)
121 boolean emit_common_func = cso->rt[0].blend_enable;
126 SB_DATA (so, cso->independent_blend_enable);
129 so->pipe = *cso;
132 SB_DATA (so, !cso->independent_blend_enable);
135 SB_DATA (so, !cso->independent_blend_enable);
137 if (cso->independent_blend_enable) {
140 SB_DATA(so, cso->rt[i].blend_enable);
141 if (cso->rt[i].blend_enable)
149 if (!cso
116 nv50_blend_state_create(struct pipe_context *pipe, const struct pipe_blend_state *cso) argument
224 nv50_rasterizer_state_create(struct pipe_context *pipe, const struct pipe_rasterizer_state *cso) argument
352 nv50_zsa_state_create(struct pipe_context *pipe, const struct pipe_depth_stencil_alpha_state *cso) argument
455 nv50_sampler_state_create(struct pipe_context *pipe, const struct pipe_sampler_state *cso) argument
671 nv50_sp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso, unsigned type) argument
701 nv50_vp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) argument
717 nv50_fp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) argument
733 nv50_gp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) argument
[all...]
/external/mesa3d/src/gallium/drivers/nvc0/
H A Dnvc0_state.c87 const struct pipe_blend_state *cso)
97 so->pipe = *cso;
100 if (cso->independent_blend_enable) {
101 for (r = 0; r < 8 && !cso->rt[r].blend_enable; ++r);
104 if (!cso->rt[i].blend_enable)
107 if (cso->rt[i].rgb_func != cso->rt[r].rgb_func ||
108 cso->rt[i].rgb_src_factor != cso->rt[r].rgb_src_factor ||
109 cso
86 nvc0_blend_state_create(struct pipe_context *pipe, const struct pipe_blend_state *cso) argument
208 nvc0_rasterizer_state_create(struct pipe_context *pipe, const struct pipe_rasterizer_state *cso) argument
335 nvc0_zsa_state_create(struct pipe_context *pipe, const struct pipe_depth_stencil_alpha_state *cso) argument
567 nvc0_sp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso, unsigned type) argument
599 nvc0_vp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) argument
615 nvc0_fp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) argument
631 nvc0_gp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) argument
[all...]
/external/mesa3d/src/gallium/drivers/r600/
H A Devergreen_compute.c120 const const struct pipe_compute_state *cso)
132 header = cso->prog;
133 code = cso->prog + sizeof(struct pipe_llvm_program_header);
140 shader->local_size = cso->req_local_mem; ///TODO: assert it
141 shader->private_size = cso->req_private_mem;
142 shader->input_size = cso->req_input_mem;
118 evergreen_create_compute_state( struct pipe_context *ctx_, const const struct pipe_compute_state *cso) argument
/external/mesa3d/src/gallium/state_trackers/xa/
H A Dxa_priv.h84 struct cso_context *cso; member in struct:xa_context
H A Dxa_tgsi.c593 cache_destroy(struct cso_context *cso, argument
602 cso_delete_fragment_shader(cso, shader);
604 cso_delete_vertex_shader(cso, shader);
614 cache_destroy(sc->r->cso, sc->vs_hash, PIPE_SHADER_VERTEX);
615 cache_destroy(sc->r->cso, sc->fs_hash, PIPE_SHADER_FRAGMENT);

Completed in 362 milliseconds

12