Home
last modified time | relevance | path

Searched refs:cso (Results 1 – 25 of 52) sorted by relevance

123

/external/mesa3d/src/gallium/auxiliary/cso_cache/
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 …]
Dcso_context.c125 struct cso_blend *cso = (struct cso_blend *)state; in delete_blend_state() local
127 if (ctx->blend == cso->data) in delete_blend_state()
130 if (cso->delete_state) in delete_blend_state()
131 cso->delete_state(cso->context, cso->data); in delete_blend_state()
138 struct cso_depth_stencil_alpha *cso = in delete_depth_stencil_state() local
141 if (ctx->depth_stencil == cso->data) in delete_depth_stencil_state()
144 if (cso->delete_state) in delete_depth_stencil_state()
145 cso->delete_state(cso->context, cso->data); in delete_depth_stencil_state()
153 struct cso_sampler *cso = (struct cso_sampler *)state; in delete_sampler_state() local
154 if (cso->delete_state) in delete_sampler_state()
[all …]
Dcso_cache.c92 struct cso_blend *cso = (struct cso_blend *)state; in delete_blend_state() local
93 if (cso->delete_state) in delete_blend_state()
94 cso->delete_state(cso->context, cso->data); in delete_blend_state()
100 struct cso_depth_stencil_alpha *cso = (struct cso_depth_stencil_alpha *)state; in delete_depth_stencil_state() local
101 if (cso->delete_state) in delete_depth_stencil_state()
102 cso->delete_state(cso->context, cso->data); in delete_depth_stencil_state()
108 struct cso_sampler *cso = (struct cso_sampler *)state; in delete_sampler_state() local
109 if (cso->delete_state) in delete_sampler_state()
110 cso->delete_state(cso->context, cso->data); in delete_sampler_state()
116 struct cso_rasterizer *cso = (struct cso_rasterizer *)state; in delete_rasterizer_state() local
[all …]
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_state.c38 const struct pipe_blend_state *cso) in nv30_blend_state_create() argument
48 so->pipe = *cso; in nv30_blend_state_create()
50 if (cso->logicop_enable) { in nv30_blend_state_create()
53 SB_DATA (so, nvgl_logicop_func(cso->logicop_func)); in nv30_blend_state_create()
60 SB_DATA (so, cso->dither); in nv30_blend_state_create()
62 blend[0] = cso->rt[0].blend_enable; in nv30_blend_state_create()
63 cmask[0] = !!(cso->rt[0].colormask & PIPE_MASK_A) << 24 | in nv30_blend_state_create()
64 !!(cso->rt[0].colormask & PIPE_MASK_R) << 16 | in nv30_blend_state_create()
65 !!(cso->rt[0].colormask & PIPE_MASK_G) << 8 | in nv30_blend_state_create()
66 !!(cso->rt[0].colormask & PIPE_MASK_B); in nv30_blend_state_create()
[all …]
Dnv30_texture.c62 filter_mode(const struct pipe_sampler_state *cso) in filter_mode() argument
66 switch (cso->mag_img_filter) { in filter_mode()
75 switch (cso->min_img_filter) { in filter_mode()
77 switch (cso->min_mip_filter) { in filter_mode()
90 switch (cso->min_mip_filter) { in filter_mode()
108 compare_mode(const struct pipe_sampler_state *cso) in compare_mode() argument
110 if (cso->compare_mode != PIPE_TEX_COMPARE_R_TO_TEXTURE) in compare_mode()
113 switch (cso->compare_func) { in compare_mode()
129 const struct pipe_sampler_state *cso) in nv30_sampler_state_create() argument
139 so->pipe = *cso; in nv30_sampler_state_create()
[all …]
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_state.c117 const struct pipe_blend_state *cso) in nv50_blend_state_create() argument
121 boolean emit_common_func = cso->rt[0].blend_enable; in nv50_blend_state_create()
126 SB_DATA (so, cso->independent_blend_enable); in nv50_blend_state_create()
129 so->pipe = *cso; in nv50_blend_state_create()
132 SB_DATA (so, !cso->independent_blend_enable); in nv50_blend_state_create()
135 SB_DATA (so, !cso->independent_blend_enable); in nv50_blend_state_create()
137 if (cso->independent_blend_enable) { in nv50_blend_state_create()
140 SB_DATA(so, cso->rt[i].blend_enable); in nv50_blend_state_create()
141 if (cso->rt[i].blend_enable) in nv50_blend_state_create()
149 if (!cso->rt[i].blend_enable) in nv50_blend_state_create()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_blit.c57 struct cso_context *cso; member
90 util_create_blit(struct pipe_context *pipe, struct cso_context *cso) in util_create_blit() argument
100 ctx->cso = cso; in util_create_blit()
214 cso_set_fragment_shader_handle(ctx->cso, ctx->fs[pipe_tex][writemask]); in set_fragment_shader()
233 cso_set_fragment_shader_handle(ctx->cso, ctx->fs_depthstencil[pipe_tex]); in set_depthstencil_fragment_shader()
252 cso_set_fragment_shader_handle(ctx->cso, ctx->fs_depth[pipe_tex]); in set_depth_fragment_shader()
271 cso_set_fragment_shader_handle(ctx->cso, ctx->fs_stencil[pipe_tex]); in set_stencil_fragment_shader()
293 cso_set_vertex_shader_handle(ctx->cso, ctx->vs); in set_vertex_shader()
655 cso_save_blend(ctx->cso); in util_blit_pixels()
656 cso_save_depth_stencil_alpha(ctx->cso); in util_blit_pixels()
[all …]
Du_hash_table.c52 struct cso_hash *cso; member
88 ht->cso = cso_hash_create(); in util_hash_table_create()
89 if(!ht->cso) { in util_hash_table_create()
109 iter = cso_hash_find(ht->cso, key_hash); in util_hash_table_find_iter()
129 iter = cso_hash_find(ht->cso, key_hash); in util_hash_table_find_item()
170 iter = cso_hash_insert(ht->cso, key_hash, item); in util_hash_table_set()
223 cso_hash_erase(ht->cso, iter); in util_hash_table_remove()
237 iter = cso_hash_first_node(ht->cso); in util_hash_table_clear()
239 item = (struct util_hash_table_item *)cso_hash_take(ht->cso, cso_hash_iter_key(iter)); in util_hash_table_clear()
241 iter = cso_hash_first_node(ht->cso); in util_hash_table_clear()
[all …]
Du_draw_quad.c43 struct cso_context *cso, in util_draw_vertex_buffer() argument
62 if (cso) { in util_draw_vertex_buffer()
63 cso_set_vertex_buffers(cso, 1, &vbuffer); in util_draw_vertex_buffer()
64 cso_draw_arrays(cso, prim_type, 0, num_verts); in util_draw_vertex_buffer()
77 util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer, in util_draw_user_vertex_buffer() argument
89 cso_set_vertex_buffers(cso, 1, &vbuffer); in util_draw_user_vertex_buffer()
90 cso_draw_arrays(cso, prim_type, 0, num_verts); in util_draw_user_vertex_buffer()
99 util_draw_texquad(struct pipe_context *pipe, struct cso_context *cso, in util_draw_texquad() argument
148 util_draw_vertex_buffer(pipe, cso, vbuf, 0, PIPE_PRIM_TRIANGLE_FAN, 4, 2); in util_draw_texquad()
Du_keymap.c48 struct cso_hash *cso; member
117 map->cso = cso_hash_create(); in util_new_keymap()
118 if (!map->cso) { in util_new_keymap()
141 cso_hash_delete(map->cso); in util_delete_keymap()
153 iter = cso_hash_find(map->cso, key_hash); in hash_table_find_iter()
216 iter = cso_hash_insert(map->cso, key_hash, item); in util_keymap_insert()
283 cso_hash_erase(map->cso, iter); in util_keymap_remove()
301 iter = cso_hash_first_node(map->cso); in util_keymap_remove_all()
304 cso_hash_take(map->cso, cso_hash_iter_key(iter)); in util_keymap_remove_all()
308 iter = cso_hash_first_node(map->cso); in util_keymap_remove_all()
Du_gen_mipmap.c60 struct cso_context *cso; member
1265 struct cso_context *cso) in util_create_gen_mipmap() argument
1275 ctx->cso = cso; in util_create_gen_mipmap()
1338 cso_set_fragment_shader_handle(ctx->cso, ctx->fs_depth[type]); in set_fragment_shader()
1346 cso_set_fragment_shader_handle(ctx->cso, ctx->fs_color[type]); in set_fragment_shader()
1370 cso_set_vertex_shader_handle(ctx->cso, ctx->vs); in set_vertex_shader()
1573 cso_save_blend(ctx->cso); in util_gen_mipmap()
1574 cso_save_depth_stencil_alpha(ctx->cso); in util_gen_mipmap()
1575 cso_save_rasterizer(ctx->cso); in util_gen_mipmap()
1576 cso_save_sample_mask(ctx->cso); in util_gen_mipmap()
[all …]
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,
/external/mesa3d/src/gallium/drivers/nvc0/
Dnvc0_state.c87 const struct pipe_blend_state *cso) in nvc0_blend_state_create() argument
97 so->pipe = *cso; in nvc0_blend_state_create()
100 if (cso->independent_blend_enable) { in nvc0_blend_state_create()
101 for (r = 0; r < 8 && !cso->rt[r].blend_enable; ++r); in nvc0_blend_state_create()
104 if (!cso->rt[i].blend_enable) in nvc0_blend_state_create()
107 if (cso->rt[i].rgb_func != cso->rt[r].rgb_func || in nvc0_blend_state_create()
108 cso->rt[i].rgb_src_factor != cso->rt[r].rgb_src_factor || in nvc0_blend_state_create()
109 cso->rt[i].rgb_dst_factor != cso->rt[r].rgb_dst_factor || in nvc0_blend_state_create()
110 cso->rt[i].alpha_func != cso->rt[r].alpha_func || in nvc0_blend_state_create()
111 cso->rt[i].alpha_src_factor != cso->rt[r].alpha_src_factor || in nvc0_blend_state_create()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_sampler.c99 struct svga_sampler_state *cso = CALLOC_STRUCT( svga_sampler_state ); in svga_create_sampler_state() local
101 if (!cso) in svga_create_sampler_state()
104 cso->mipfilter = translate_mip_filter(sampler->min_mip_filter); in svga_create_sampler_state()
105 cso->magfilter = translate_img_filter( sampler->mag_img_filter ); in svga_create_sampler_state()
106 cso->minfilter = translate_img_filter( sampler->min_img_filter ); in svga_create_sampler_state()
107 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 ); in svga_create_sampler_state()
109 cso->magfilter = cso->minfilter = SVGA3D_TEX_FILTER_ANISOTROPIC; in svga_create_sampler_state()
110 cso->lod_bias = sampler->lod_bias; in svga_create_sampler_state()
111 cso->addressu = translate_wrap_mode(sampler->wrap_s); in svga_create_sampler_state()
112 cso->addressv = translate_wrap_mode(sampler->wrap_t); in svga_create_sampler_state()
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Drenderer.c78 struct cso_context *cso; member
257 cso_set_vertex_shader_handle(r->cso, r->cached_vs[id]); in renderer_set_vs()
331 cso_set_fragment_shader_handle(r->cso, r->cached_fs[id]); in renderer_set_fs()
355 cso_set_viewport(r->cso, &viewport); in vg_set_viewport()
376 cso_set_framebuffer(r->cso, &fb); in renderer_set_target()
407 cso_set_blend(r->cso, &blend); in renderer_set_blend()
438 cso_single_sampler(r->cso, PIPE_SHADER_FRAGMENT, i, &sampler); in renderer_set_samplers()
439 cso_single_sampler_done(r->cso, PIPE_SHADER_FRAGMENT); in renderer_set_samplers()
442 cso_set_sampler_views(r->cso, PIPE_SHADER_FRAGMENT, num_views, views); in renderer_set_samplers()
460 cso_set_fragment_shader_handle(renderer->cso, fs); in renderer_set_custom_fs()
[all …]
/external/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_mlaa.c89 cso_set_stencil_ref(p->cso, &ref); in pp_jimenezmlaa_run()
124 cso_set_depth_stencil_alpha(p->cso, &mstencil); in pp_jimenezmlaa_run()
128 cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler_point); in pp_jimenezmlaa_run()
129 cso_single_sampler_done(p->cso, PIPE_SHADER_FRAGMENT); in pp_jimenezmlaa_run()
130 cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->view); in pp_jimenezmlaa_run()
132 cso_set_vertex_shader_handle(p->cso, ppq->shaders[n][1]); /* offsetvs */ in pp_jimenezmlaa_run()
133 cso_set_fragment_shader_handle(p->cso, ppq->shaders[n][2]); in pp_jimenezmlaa_run()
143 cso_set_depth_stencil_alpha(p->cso, &mstencil); in pp_jimenezmlaa_run()
155 cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler_point); in pp_jimenezmlaa_run()
156 cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->sampler_point); in pp_jimenezmlaa_run()
[all …]
Dpp_colors.c46 cso_single_sampler(p->cso, PIPE_SHADER_FRAGMENT, 0, &p->sampler_point); in pp_nocolor()
47 cso_single_sampler_done(p->cso, PIPE_SHADER_FRAGMENT); in pp_nocolor()
48 cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 1, &p->view); in pp_nocolor()
50 cso_set_vertex_shader_handle(p->cso, ppq->shaders[n][0]); in pp_nocolor()
51 cso_set_fragment_shader_handle(p->cso, ppq->shaders[n][1]); in pp_nocolor()
Dpp_run.c169 cso_set_blend(p->cso, &p->blend); in pp_filter_misc_state()
170 cso_set_depth_stencil_alpha(p->cso, &p->depthstencil); in pp_filter_misc_state()
171 cso_set_rasterizer(p->cso, &p->rasterizer); in pp_filter_misc_state()
172 cso_set_viewport(p->cso, &p->viewport); in pp_filter_misc_state()
174 cso_set_vertex_elements(p->cso, 2, p->velem); in pp_filter_misc_state()
181 util_draw_vertex_buffer(p->pipe, p->cso, p->vbuf, 0, in pp_filter_draw()
190 cso_set_framebuffer(p->cso, &p->framebuffer); in pp_filter_set_fb()
197 cso_set_framebuffer(p->cso, &p->framebuffer); in pp_filter_set_clear_fb()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_drawtex.c110 struct cso_context *cso = ctx->st->cso_context; in st_DrawTex() local
228 cso_save_viewport(cso); in st_DrawTex()
229 cso_save_stream_outputs(cso); in st_DrawTex()
230 cso_save_vertex_shader(cso); in st_DrawTex()
231 cso_save_geometry_shader(cso); in st_DrawTex()
232 cso_save_vertex_elements(cso); in st_DrawTex()
233 cso_save_vertex_buffers(cso); in st_DrawTex()
238 cso_set_vertex_shader_handle(cso, vs); in st_DrawTex()
240 cso_set_geometry_shader_handle(cso, NULL); in st_DrawTex()
248 cso_set_vertex_elements(cso, numAttribs, velements); in st_DrawTex()
[all …]
Dst_cb_bitmap.c415 struct cso_context *cso = st->cso_context; in draw_bitmap_quad() local
456 cso_save_rasterizer(cso); in draw_bitmap_quad()
457 cso_save_samplers(cso, PIPE_SHADER_FRAGMENT); in draw_bitmap_quad()
458 cso_save_sampler_views(cso, PIPE_SHADER_FRAGMENT); in draw_bitmap_quad()
459 cso_save_viewport(cso); in draw_bitmap_quad()
460 cso_save_fragment_shader(cso); in draw_bitmap_quad()
461 cso_save_stream_outputs(cso); in draw_bitmap_quad()
462 cso_save_vertex_shader(cso); in draw_bitmap_quad()
463 cso_save_geometry_shader(cso); in draw_bitmap_quad()
464 cso_save_vertex_elements(cso); in draw_bitmap_quad()
[all …]
Dst_cb_drawpixels.c667 struct cso_context *cso = st->cso_context; in draw_textured_quad() local
681 cso_save_rasterizer(cso); in draw_textured_quad()
682 cso_save_viewport(cso); in draw_textured_quad()
683 cso_save_samplers(cso, PIPE_SHADER_FRAGMENT); in draw_textured_quad()
684 cso_save_sampler_views(cso, PIPE_SHADER_FRAGMENT); in draw_textured_quad()
685 cso_save_fragment_shader(cso); in draw_textured_quad()
686 cso_save_stream_outputs(cso); in draw_textured_quad()
687 cso_save_vertex_shader(cso); in draw_textured_quad()
688 cso_save_geometry_shader(cso); in draw_textured_quad()
689 cso_save_vertex_elements(cso); in draw_textured_quad()
[all …]
/external/mesa3d/src/gallium/drivers/i915/
Di915_state.c222 struct i915_sampler_state *cso = CALLOC_STRUCT( i915_sampler_state ); in i915_create_sampler_state() local
229 cso->templ = *sampler; in i915_create_sampler_state()
239 cso->state[0] |= SS2_MAX_ANISO_4; in i915_create_sampler_state()
245 cso->state[0] |= ((b << SS2_LOD_BIAS_SHIFT) & SS2_LOD_BIAS_MASK); in i915_create_sampler_state()
252 cso->state[0] |= (SS2_SHADOW_ENABLE | in i915_create_sampler_state()
259 cso->state[0] |= ((minFilt << SS2_MIN_FILTER_SHIFT) | in i915_create_sampler_state()
263 cso->state[1] |= in i915_create_sampler_state()
269 cso->state[1] |= SS3_NORMALIZED_COORDS; in i915_create_sampler_state()
280 cso->minlod = minlod; in i915_create_sampler_state()
281 cso->maxlod = maxlod; in i915_create_sampler_state()
[all …]
/external/mesa3d/src/gallium/tests/trivial/
Dquad-tex.c68 struct cso_context *cso; member
104 p->cso = cso_create_context(p->pipe); in init_prog()
285 cso_set_sampler_views(p->cso, PIPE_SHADER_FRAGMENT, 0, NULL); in close_prog()
288 cso_release_all(p->cso); in close_prog()
299 cso_destroy_context(p->cso); in close_prog()
310 cso_set_framebuffer(p->cso, &p->framebuffer); in draw()
316 cso_set_blend(p->cso, &p->blend); in draw()
317 cso_set_depth_stencil_alpha(p->cso, &p->depthstencil); in draw()
318 cso_set_rasterizer(p->cso, &p->rasterizer); in draw()
319 cso_set_viewport(p->cso, &p->viewport); in draw()
[all …]
Dtri.c66 struct cso_context *cso; member
99 p->cso = cso_create_context(p->pipe); in init_prog()
226 cso_release_all(p->cso); in close_prog()
235 cso_destroy_context(p->cso); in close_prog()
246 cso_set_framebuffer(p->cso, &p->framebuffer); in draw()
252 cso_set_blend(p->cso, &p->blend); in draw()
253 cso_set_depth_stencil_alpha(p->cso, &p->depthstencil); in draw()
254 cso_set_rasterizer(p->cso, &p->rasterizer); in draw()
255 cso_set_viewport(p->cso, &p->viewport); in draw()
258 cso_set_fragment_shader_handle(p->cso, p->fs); in draw()
[all …]
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_renderer.c82 cso_set_vertex_elements(r->cso, r->attrs_per_vertex, r->velems); in renderer_draw()
83 util_draw_user_vertex_buffer(r->cso, r->buffer, PIPE_PRIM_QUADS, in renderer_draw()
107 cso_set_depth_stencil_alpha(r->cso, &dsa); in renderer_init_state()
113 cso_set_rasterizer(r->cso, &raster); in renderer_init_state()
368 cso_set_framebuffer(r->cso, &fb); in renderer_bind_destination()
369 cso_set_viewport(r->cso, &viewport); in renderer_bind_destination()
418 cso_set_blend(r->cso, &blend); in renderer_copy_prepare()
433 cso_single_sampler(r->cso, PIPE_SHADER_FRAGMENT, 0, &sampler); in renderer_copy_prepare()
434 cso_single_sampler_done(r->cso, PIPE_SHADER_FRAGMENT); in renderer_copy_prepare()
448 cso_set_sampler_views(r->cso, PIPE_SHADER_FRAGMENT, 1, &src_view); in renderer_copy_prepare()
[all …]

123