Lines Matching full:so
10 * Software is furnished to do so, subject to the following conditions:
67 struct lima_depth_stencil_alpha_state *so; in lima_create_depth_stencil_alpha_state() local
69 so = CALLOC_STRUCT(lima_depth_stencil_alpha_state); in lima_create_depth_stencil_alpha_state()
70 if (!so) in lima_create_depth_stencil_alpha_state()
73 so->base = *cso; in lima_create_depth_stencil_alpha_state()
75 return so; in lima_create_depth_stencil_alpha_state()
97 struct lima_rasterizer_state *so; in lima_create_rasterizer_state() local
99 so = CALLOC_STRUCT(lima_rasterizer_state); in lima_create_rasterizer_state()
100 if (!so) in lima_create_rasterizer_state()
103 so->base = *cso; in lima_create_rasterizer_state()
105 return so; in lima_create_rasterizer_state()
127 struct lima_blend_state *so; in lima_create_blend_state() local
129 so = CALLOC_STRUCT(lima_blend_state); in lima_create_blend_state()
130 if (!so) in lima_create_blend_state()
133 so->base = *cso; in lima_create_blend_state()
135 return so; in lima_create_blend_state()
157 struct lima_vertex_element_state *so; in lima_create_vertex_elements_state() local
159 so = CALLOC_STRUCT(lima_vertex_element_state); in lima_create_vertex_elements_state()
160 if (!so) in lima_create_vertex_elements_state()
163 memcpy(so->pipe, elements, sizeof(*elements) * num_elements); in lima_create_vertex_elements_state()
164 so->num_elements = num_elements; in lima_create_vertex_elements_state()
166 return so; in lima_create_vertex_elements_state()
190 struct lima_context_vertex_buffer *so = &ctx->vertex_buffers; in lima_set_vertex_buffers() local
192 util_set_vertex_buffers_mask(so->vb, &so->enabled_mask, in lima_set_vertex_buffers()
194 so->count = util_last_bit(so->enabled_mask); in lima_set_vertex_buffers()
263 struct lima_context_constant_buffer *so = ctx->const_buffer + shader; in lima_set_constant_buffer() local
268 so->buffer = NULL; in lima_set_constant_buffer()
269 so->size = 0; in lima_set_constant_buffer()
273 so->buffer = cb->user_buffer + cb->buffer_offset; in lima_set_constant_buffer()
274 so->size = cb->buffer_size; in lima_set_constant_buffer()
277 so->dirty = true; in lima_set_constant_buffer()
286 struct lima_sampler_state *so = CALLOC_STRUCT(lima_sampler_state); in lima_create_sampler_state() local
287 if (!so) in lima_create_sampler_state()
290 memcpy(so, cso, sizeof(*cso)); in lima_create_sampler_state()
292 return so; in lima_create_sampler_state()
331 struct lima_sampler_view *so = CALLOC_STRUCT(lima_sampler_view); in lima_create_sampler_view() local
333 if (!so) in lima_create_sampler_view()
336 so->base = *cso; in lima_create_sampler_view()
339 so->base.texture = prsc; in lima_create_sampler_view()
340 so->base.reference.count = 1; in lima_create_sampler_view()
341 so->base.context = pctx; in lima_create_sampler_view()
343 return &so->base; in lima_create_sampler_view()
433 struct lima_context_vertex_buffer *so = &ctx->vertex_buffers; in lima_state_fini() local
435 util_set_vertex_buffers_mask(so->vb, &so->enabled_mask, NULL, in lima_state_fini()
436 0, ARRAY_SIZE(so->vb)); in lima_state_fini()