/external/mesa3d/src/gallium/drivers/freedreno/ |
freedreno_program.c | 80 struct pipe_shader_state cso = { local 88 return pctx->create_fs_state(pctx, &cso); 90 return pctx->create_vs_state(pctx, &cso);
|
freedreno_state.c | 43 /* All the generic state handling.. In case of CSO's that are specific 119 struct pipe_framebuffer_state *cso; local 151 cso = &ctx->batch->framebuffer; 153 util_copy_framebuffer_state(cso, framebuffer); 159 ctx->disabled_scissor.maxx = cso->width; 160 ctx->disabled_scissor.maxy = cso->height; 251 struct pipe_blend_state *cso = hwcso; local 255 bool new_is_dual = cso ? 256 cso->rt[0].blend_enable && util_blend_state_is_dual(cso, 0) [all...] |
/external/mesa3d/src/gallium/state_trackers/nine/ |
pixelshader9.c | 36 const DWORD *pFunction, void *cso ) 43 DBG("This=%p pParams=%p pFunction=%p cso=%p\n", This, pParams, pFunction, cso); 49 if (cso) { 50 This->ff_cso = cso; 77 This->variant.cso = info.cso; 78 This->last_cso = info.cso; 102 if (var->cso) { 103 if (This->base.device->context.cso_shader.ps == var->cso) 149 void *cso; local [all...] |
vertexshader9.c | 38 const DWORD *pFunction, void *cso ) 46 DBG("This=%p pParams=%p pFunction=%p cso=%p\n", 47 This, pParams, pFunction, cso); 53 if (cso) { 54 This->ff_cso = cso; 93 This->variant.cso = info.cso; 94 This->last_cso = info.cso; 121 if (var->cso) { 122 if (This->base.device->context.cso_shader.vs == var->cso) 177 void *cso; local 221 void *cso; local [all...] |
nine_shader.h | 51 void *cso; /* out, pipe cso for bind_vs,fs_state */ member in struct:nine_shader_info 125 void *cso; member in struct:nine_shader_variant 135 return list->cso; 141 uint64_t key, void *cso) 152 list->next->cso = cso; 171 void *cso; member in struct:nine_shader_variant_so 183 return list->cso; 191 struct pipe_stream_output_info *so, void *cso) [all...] |
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
pp_run.c | 89 struct cso_context *cso = ppq->p->cso; local 118 cso_save_state(cso, (CSO_BIT_BLEND | 138 cso_save_constant_buffer_slot0(cso, PIPE_SHADER_VERTEX); 139 cso_save_constant_buffer_slot0(cso, PIPE_SHADER_FRAGMENT); 142 cso_set_sample_mask(cso, ~0); 143 cso_set_min_samples(cso, 1); 144 cso_set_stream_outputs(cso, 0, NULL, NULL); 145 cso_set_tessctrl_shader_handle(cso, NULL); 146 cso_set_tesseval_shader_handle(cso, NULL) [all...] |
pp_private.h | 42 struct cso_context *cso; member in struct:pp_program
|
/external/mesa3d/src/gallium/auxiliary/util/ |
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...] |
u_keymap.c | 31 * Like Jose's util_hash_table, based on CSO cache code for now. 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)) [all...] |
u_blit.c | 58 struct cso_context *cso; member in struct:blit_state 82 util_create_blit(struct pipe_context *pipe, struct cso_context *cso) 92 ctx->cso = cso; 115 ctx->velem[i].vertex_buffer_index = cso_get_aux_vertex_buffer_slot(cso); 192 cso_set_fragment_shader_handle(ctx->cso, ctx->fs[pipe_tex][writemask][idx]); 214 cso_set_vertex_shader_handle(ctx->cso, ctx->vs); 546 cso_save_state(ctx->cso, (CSO_BIT_BLEND | 566 cso_set_blend(ctx->cso, &ctx->blend_write_color); 567 cso_set_depth_stencil_alpha(ctx->cso, &ctx->dsa_keep_depthstencil) [all...] |
u_tests.c | 66 util_set_framebuffer_cb0(struct cso_context *cso, struct pipe_context *ctx, 80 cso_set_framebuffer(cso, &fb); 85 util_set_blend_normal(struct cso_context *cso) 90 cso_set_blend(cso, &blend); 94 util_set_dsa_disable(struct cso_context *cso) 98 cso_set_depth_stencil_alpha(cso, &dsa); 102 util_set_rasterizer_normal(struct cso_context *cso) 110 cso_set_rasterizer(cso, &rs); 114 util_set_max_viewport(struct cso_context *cso, struct pipe_resource *tex) 125 cso_set_viewport(cso, &viewport) 295 struct cso_context *cso; local 348 struct cso_context *cso; local 403 struct cso_context *cso; local 458 struct cso_context *cso; local [all...] |
/external/mesa3d/src/gallium/drivers/ilo/ |
ilo_render_gen8.c | 90 const union ilo_shader_cso *cso = ilo_shader_get_kernel_cso(vec->fs); local 128 gen8_3DSTATE_PS(r->builder, &cso->ps, kernel_offset, r->fs_scratch.bo); 132 gen8_3DSTATE_PS_EXTRA(r->builder, &cso->ps);
|
ilo_render_dynamic.c | 190 sampler_count <= ARRAY_SIZE(vec->sampler[shader_type].cso)); 194 const struct ilo_sampler_cso *cso = vec->sampler[shader_type].cso[i]; local 196 border_color_state[i] = (cso) ? 197 gen6_SAMPLER_BORDER_COLOR_STATE(r->builder, &cso->border) : 0; 202 const struct ilo_sampler_cso *cso = vec->sampler[shader_type].cso[i]; local 204 if (cso && views[i]) { 205 samplers[i] = cso->sampler; 245 if (cbuf0_size <= cbuf->cso[0].info.size) 489 const struct ilo_sampler_cso *cso = vec->sampler[shader_type].cso[i]; local 496 const struct ilo_sampler_cso *cso = vec->sampler[shader_type].cso[i]; local [all...] |
ilo_render_gen6.c | 471 const union ilo_shader_cso *cso = ilo_shader_get_kernel_cso(vec->vs); local 479 gen6_3DSTATE_VS(r->builder, &cso->vs_sol.vs, 482 gen6_3DSTATE_VS(r->builder, &cso->vs, 500 const union ilo_shader_cso *cso; local 504 cso = ilo_shader_get_kernel_cso(vec->gs); 507 gen6_3DSTATE_GS(r->builder, &cso->gs, 527 cso = ilo_shader_get_kernel_cso(vec->vs); 531 gen6_3DSTATE_GS(r->builder, &cso->vs_sol.sol, 673 const union ilo_shader_cso *cso = ilo_shader_get_kernel_cso(vec->fs); local 680 &cso->ps, kernel_offset, r->fs_scratch.bo) [all...] |
ilo_render_gen7.c | 318 const union ilo_shader_cso *cso = ilo_shader_get_kernel_cso(vec->vs); local 322 gen8_3DSTATE_VS(r->builder, &cso->vs, 325 gen6_3DSTATE_VS(r->builder, &cso->vs, 508 const union ilo_shader_cso *cso = ilo_shader_get_kernel_cso(vec->fs); local 513 gen7_3DSTATE_WM(r->builder, &vec->rasterizer->rs, &cso->ps); 540 gen7_3DSTATE_PS(r->builder, &cso->ps, kernel_offset, r->fs_scratch.bo);
|
ilo_render_surface.c | 225 const struct ilo_view_cso *cso = local 228 surface_state[i] = gen6_SURFACE_STATE(r->builder, &cso->surface); 280 const struct ilo_cbuf_cso *cso = &cbuf->cso[i]; local 282 if (cso->resource) 283 surface_state[i] = gen6_SURFACE_STATE(r->builder, &cso->surface); 455 const struct ilo_view_cso *cso = local 458 surface_state[i] = gen6_SURFACE_STATE(r->builder, &cso->surface);
|
/external/mesa3d/src/gallium/auxiliary/cso_cache/ |
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->data) 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/mesa3d/src/gallium/drivers/svga/ |
svga_pipe_sampler.c | 226 struct svga_sampler_state *cso = CALLOC_STRUCT( svga_sampler_state ); local 228 if (!cso) 231 cso->mipfilter = translate_mip_filter(sampler->min_mip_filter); 232 cso->magfilter = translate_img_filter( sampler->mag_img_filter ); 233 cso->minfilter = translate_img_filter( sampler->min_img_filter ); 234 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 ); 236 cso->magfilter = cso->minfilter = SVGA3D_TEX_FILTER_ANISOTROPIC; 237 cso->lod_bias = sampler->lod_bias; 238 cso->addressu = translate_wrap_mode(sampler->wrap_s) [all...] |
/external/mesa3d/src/gallium/drivers/vc4/ |
vc4_state.c | 94 const struct pipe_rasterizer_state *cso) 102 so->base = *cso; 104 if (!(cso->cull_face & PIPE_FACE_FRONT)) 106 if (!(cso->cull_face & PIPE_FACE_BACK)) 112 so->point_size = MAX2(cso->point_size, .125f); 114 if (cso->front_ccw) 117 if (cso->offset_tri) { 120 so->offset_units = float_to_187_half(cso->offset_units); 121 so->offset_factor = float_to_187_half(cso->offset_scale); 124 if (cso->multisample 409 struct pipe_framebuffer_state *cso = &vc4->framebuffer; local [all...] |
/external/mesa3d/src/gallium/tests/trivial/ |
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); 281 cso_destroy_context(p->cso); 304 cso_set_framebuffer(p->cso, &p->framebuffer); 310 cso_set_blend(p->cso, &p->blend); 311 cso_set_depth_stencil_alpha(p->cso, &p->depthstencil); 312 cso_set_rasterizer(p->cso, &p->rasterizer); 313 cso_set_viewport(p->cso, &p->viewport); 316 cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 1, samplers) [all...] |
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); 224 cso_destroy_context(p->cso); 243 cso_set_framebuffer(p->cso, &p->framebuffer); 249 cso_set_blend(p->cso, &p->blend); 250 cso_set_depth_stencil_alpha(p->cso, &p->depthstencil); 251 cso_set_rasterizer(p->cso, &p->rasterizer); 252 cso_set_viewport(p->cso, &p->viewport); 255 cso_set_fragment_shader_handle(p->cso, p->fs) [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_cb_clear.c | 179 struct cso_context *cso = st->cso_context; local 199 cso_save_state(cso, (CSO_BIT_BLEND | 240 cso_set_blend(cso, &blend); 264 cso_set_stencil_ref(cso, &stencil_ref); 267 cso_set_depth_stencil_alpha(cso, &depth_stencil); 270 cso_set_vertex_elements(cso, 2, st->util_velems); 271 cso_set_stream_outputs(cso, 0, NULL, NULL); 272 cso_set_sample_mask(cso, ~0); 273 cso_set_min_samples(cso, 1); 274 cso_set_rasterizer(cso, &st->clear.raster) [all...] |
st_cb_drawtex.c | 111 struct cso_context *cso = st->cso_context; local 236 cso_save_state(cso, (CSO_BIT_VIEWPORT | 248 cso_set_vertex_shader_handle(cso, vs); 250 cso_set_tessctrl_shader_handle(cso, NULL); 251 cso_set_tesseval_shader_handle(cso, NULL); 252 cso_set_geometry_shader_handle(cso, NULL); 260 cso_set_vertex_elements(cso, numAttribs, velements); 261 cso_set_stream_outputs(cso, 0, NULL, NULL); 276 cso_set_viewport(cso, &vp); 279 util_draw_vertex_buffer(pipe, cso, vbuffer [all...] |
st_cb_readpixels.c | 103 struct cso_context *cso = st->cso_context; local 131 cso_save_state(cso, (CSO_BIT_FRAGMENT_SAMPLER_VIEWS | 147 cso_save_constant_buffer_slot0(cso, PIPE_SHADER_FRAGMENT); 149 cso_set_sample_mask(cso, ~0); 150 cso_set_min_samples(cso, 1); 151 cso_set_render_condition(cso, NULL, FALSE, 0); 187 cso_set_sampler_views(cso, PIPE_SHADER_FRAGMENT, 1, &sampler_view); 191 cso_set_samplers(cso, PIPE_SHADER_FRAGMENT, 1, samplers); 206 cso_set_shader_images(cso, PIPE_SHADER_FRAGMENT, 0, 1, &image); 215 cso_set_framebuffer(cso, &fb) [all...] |
st_pbo.c | 193 struct cso_context *cso = st->cso_context; local 208 cso_set_vertex_shader_handle(cso, st->pbo.vs); 210 cso_set_geometry_shader_handle(cso, addr->depth != 1 ? st->pbo.gs : NULL); 212 cso_set_tessctrl_shader_handle(cso, NULL); 214 cso_set_tesseval_shader_handle(cso, NULL); 250 velem.vertex_buffer_index = cso_get_aux_vertex_buffer_slot(cso); 253 cso_set_vertex_elements(cso, 1, &velem); 255 cso_set_vertex_buffers(cso, velem.vertex_buffer_index, 1, &vbo); 281 cso_set_constant_buffer(cso, PIPE_SHADER_FRAGMENT, 0, &cb); 287 cso_set_rasterizer(cso, &st->pbo.raster) [all...] |