/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
H A D | cso_context.h | 48 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 D | cso_cache.c | 92 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 D | cso_context.c | 31 * 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/util/ |
H A D | u_draw_quad.h | 46 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 D | u_blit.c | 57 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 D | u_hash_table.c | 52 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 D | u_draw_quad.c | 43 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 D | u_gen_mipmap.h | 47 util_create_gen_mipmap(struct pipe_context *pipe, struct cso_context *cso);
|
H A D | u_keymap.c | 48 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...] |
/external/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_pipe_sampler.c | 99 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/nv30/ |
H A D | nv30_state.c | 38 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 D | nv30_texture.c | 62 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/nv50/ |
H A D | nv50_state.c | 117 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 D | nvc0_state.c | 87 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/auxiliary/postprocess/ |
H A D | pp_colors.c | 46 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]);
|
H A D | pp_mlaa.c | 89 cso_set_stencil_ref(p->cso, &ref); 124 cso_set_depth_stencil_alpha(p->cso, &mstencil); 128 cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler_point); 129 cso_single_sampler_done(p->cso, PIPE_SHADER_FRAGMENT); 130 cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->view); 132 cso_set_vertex_shader_handle(p->cso, ppq->shaders[n][1]); /* offsetvs */ 133 cso_set_fragment_shader_handle(p->cso, ppq->shaders[n][2]); 143 cso_set_depth_stencil_alpha(p->cso, &mstencil); 155 cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler_point); 156 cso_single_sampler(p->cso, PIPE_SHADER_FRAGMEN [all...] |
H A D | pp_run.c | 169 cso_set_blend(p->cso, &p->blend); 170 cso_set_depth_stencil_alpha(p->cso, &p->depthstencil); 171 cso_set_rasterizer(p->cso, &p->rasterizer); 172 cso_set_viewport(p->cso, &p->viewport); 174 cso_set_vertex_elements(p->cso, 2, p->velem); 181 util_draw_vertex_buffer(p->pipe, p->cso, p->vbuf, 0, 190 cso_set_framebuffer(p->cso, &p->framebuffer); 197 cso_set_framebuffer(p->cso, &p->framebuffer);
|
H A D | pp_program.h | 41 struct cso_context *cso; member in struct:program
|
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_cb_drawtex.c | 110 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 D | st_cb_bitmap.c | 415 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/state_trackers/vega/ |
H A D | renderer.c | 78 struct cso_context *cso; member in struct:renderer 257 cso_set_vertex_shader_handle(r->cso, r->cached_vs[id]); 331 cso_set_fragment_shader_handle(r->cso, r->cached_fs[id]); 355 cso_set_viewport(r->cso, &viewport); 376 cso_set_framebuffer(r->cso, &fb); 407 cso_set_blend(r->cso, &blend); 438 cso_single_sampler(r->cso, PIPE_SHADER_FRAGMENT, i, &sampler); 439 cso_single_sampler_done(r->cso, PIPE_SHADER_FRAGMENT); 442 cso_set_sampler_views(r->cso, PIPE_SHADER_FRAGMENT, num_views, views); 460 cso_set_fragment_shader_handle(renderer->cso, f [all...] |
/external/mesa3d/src/gallium/tests/trivial/ |
H A D | quad-tex.c | 68 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 D | tri.c | 66 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/i915/ |
H A D | i915_state.c | 222 struct i915_sampler_state *cso = CALLOC_STRUCT( i915_sampler_state ); local 229 cso->templ = *sampler; 239 cso->state[0] |= SS2_MAX_ANISO_4; 245 cso->state[0] |= ((b << SS2_LOD_BIAS_SHIFT) & SS2_LOD_BIAS_MASK); 252 cso->state[0] |= (SS2_SHADOW_ENABLE | 259 cso->state[0] |= ((minFilt << SS2_MIN_FILTER_SHIFT) | 263 cso->state[1] |= 269 cso->state[1] |= SS3_NORMALIZED_COORDS; 280 cso->minlod = minlod; 281 cso 442 struct i915_depth_stencil_state *cso = CALLOC_STRUCT( i915_depth_stencil_state ); local 886 struct i915_rasterizer_state *cso = CALLOC_STRUCT( i915_rasterizer_state ); local [all...] |
/external/mesa3d/src/gallium/state_trackers/xa/ |
H A D | xa_yuv.c | 52 cso_set_blend(r->cso, &blend); 65 cso_set_vertex_shader_handle(r->cso, shader.vs); 66 cso_set_fragment_shader_handle(r->cso, shader.fs); 95 cso_set_samplers(r->cso, PIPE_SHADER_FRAGMENT, 3, (const struct pipe_sampler_state **)samplers); 96 cso_set_sampler_views(r->cso, PIPE_SHADER_FRAGMENT, 3, r->bound_sampler_views);
|