Lines Matching full:so
10 * Software is furnished to do so, subject to the following conditions:
70 struct lima_depth_stencil_alpha_state *so; in lima_create_depth_stencil_alpha_state() local
72 so = CALLOC_STRUCT(lima_depth_stencil_alpha_state); in lima_create_depth_stencil_alpha_state()
73 if (!so) in lima_create_depth_stencil_alpha_state()
76 so->base = *cso; in lima_create_depth_stencil_alpha_state()
78 return so; in lima_create_depth_stencil_alpha_state()
100 struct lima_rasterizer_state *so; in lima_create_rasterizer_state() local
102 so = CALLOC_STRUCT(lima_rasterizer_state); in lima_create_rasterizer_state()
103 if (!so) in lima_create_rasterizer_state()
106 so->base = *cso; in lima_create_rasterizer_state()
108 return so; in lima_create_rasterizer_state()
130 struct lima_blend_state *so; in lima_create_blend_state() local
132 so = CALLOC_STRUCT(lima_blend_state); in lima_create_blend_state()
133 if (!so) in lima_create_blend_state()
136 so->base = *cso; in lima_create_blend_state()
138 return so; in lima_create_blend_state()
160 struct lima_vertex_element_state *so; in lima_create_vertex_elements_state() local
162 so = CALLOC_STRUCT(lima_vertex_element_state); in lima_create_vertex_elements_state()
163 if (!so) in lima_create_vertex_elements_state()
166 memcpy(so->pipe, elements, sizeof(*elements) * num_elements); in lima_create_vertex_elements_state()
167 so->num_elements = num_elements; in lima_create_vertex_elements_state()
169 return so; in lima_create_vertex_elements_state()
195 struct lima_context_vertex_buffer *so = &ctx->vertex_buffers; in lima_set_vertex_buffers() local
197 util_set_vertex_buffers_mask(so->vb, &so->enabled_mask, in lima_set_vertex_buffers()
201 so->count = util_last_bit(so->enabled_mask); in lima_set_vertex_buffers()
281 struct lima_context_constant_buffer *so = ctx->const_buffer + shader; in lima_set_constant_buffer() local
286 so->buffer = NULL; in lima_set_constant_buffer()
287 so->size = 0; in lima_set_constant_buffer()
291 so->buffer = cb->user_buffer + cb->buffer_offset; in lima_set_constant_buffer()
292 so->size = cb->buffer_size; in lima_set_constant_buffer()
295 so->dirty = true; in lima_set_constant_buffer()
304 struct lima_sampler_state *so = CALLOC_STRUCT(lima_sampler_state); in lima_create_sampler_state() local
305 if (!so) in lima_create_sampler_state()
308 memcpy(so, cso, sizeof(*cso)); in lima_create_sampler_state()
310 return so; in lima_create_sampler_state()
349 struct lima_sampler_view *so = CALLOC_STRUCT(lima_sampler_view); in lima_create_sampler_view() local
351 if (!so) in lima_create_sampler_view()
354 so->base = *cso; in lima_create_sampler_view()
357 so->base.texture = prsc; in lima_create_sampler_view()
358 so->base.reference.count = 1; in lima_create_sampler_view()
359 so->base.context = pctx; in lima_create_sampler_view()
364 util_format_compose_swizzles(format_swizzle, sampler_swizzle, so->swizzle); in lima_create_sampler_view()
366 return &so->base; in lima_create_sampler_view()
465 struct lima_context_vertex_buffer *so = &ctx->vertex_buffers; in lima_state_fini() local
467 util_set_vertex_buffers_mask(so->vb, &so->enabled_mask, NULL, in lima_state_fini()
468 0, 0, ARRAY_SIZE(so->vb), false); in lima_state_fini()