Searched refs:cso (Results 1 - 25 of 96) sorted by relevance

1234

/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/cso_cache/
H A Dcso_context.h48 void cso_destroy_context( struct cso_context *cso );
52 enum pipe_error cso_set_blend( struct cso_context *cso,
54 void cso_save_blend(struct cso_context *cso);
55 void cso_restore_blend(struct cso_context *cso);
59 enum pipe_error cso_set_depth_stencil_alpha( struct cso_context *cso,
61 void cso_save_depth_stencil_alpha(struct cso_context *cso);
62 void cso_restore_depth_stencil_alpha(struct cso_context *cso);
66 enum pipe_error cso_set_rasterizer( struct cso_context *cso,
68 void cso_save_rasterizer(struct cso_context *cso);
69 void cso_restore_rasterizer(struct cso_context *cso);
[all...]
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/auxiliary/cso_cache/
H A Dcso_context.h48 void cso_destroy_context( struct cso_context *cso );
52 enum pipe_error cso_set_blend( struct cso_context *cso,
54 void cso_save_blend(struct cso_context *cso);
55 void cso_restore_blend(struct cso_context *cso);
59 enum pipe_error cso_set_depth_stencil_alpha( struct cso_context *cso,
61 void cso_save_depth_stencil_alpha(struct cso_context *cso);
62 void cso_restore_depth_stencil_alpha(struct cso_context *cso);
66 enum pipe_error cso_set_rasterizer( struct cso_context *cso,
68 void cso_save_rasterizer(struct cso_context *cso);
69 void cso_restore_rasterizer(struct cso_context *cso);
[all...]
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...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_draw_quad.h46 util_draw_vertex_buffer(struct pipe_context *pipe, struct cso_context *cso,
51 util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer,
55 util_draw_texquad(struct pipe_context *pipe, struct cso_context *cso,
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_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_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
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_draw_quad.h46 util_draw_vertex_buffer(struct pipe_context *pipe, struct cso_context *cso,
51 util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer,
55 util_draw_texquad(struct pipe_context *pipe, struct cso_context *cso,
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_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_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
/external/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/mesa/src/src/gallium/drivers/nv30/
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...]
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...]
/external/mesa3d/src/gallium/drivers/nv30/
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...]
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...]
/external/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/mesa/src/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/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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/postprocess/
H A Dpp_colors.c46 cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler_point);
47 cso_single_sampler_done(p->cso, PIPE_SHADER_FRAGMENT);
48 cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->view);
50 cso_set_vertex_shader_handle(p->cso, ppq->shaders[n][0]);
51 cso_set_fragment_shader_handle(p->cso, ppq->shaders[n][1]);
/external/mesa3d/src/gallium/auxiliary/postprocess/
H A Dpp_colors.c46 cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler_point);
47 cso_single_sampler_done(p->cso, PIPE_SHADER_FRAGMENT);
48 cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->view);
50 cso_set_vertex_shader_handle(p->cso, ppq->shaders[n][0]);
51 cso_set_fragment_shader_handle(p->cso, ppq->shaders[n][1]);

Completed in 509 milliseconds

1234