Lines Matching refs:so

10  * Software is furnished to do so, subject to the following conditions:
70 struct lima_depth_stencil_alpha_state *so;
72 so = CALLOC_STRUCT(lima_depth_stencil_alpha_state);
73 if (!so)
76 so->base = *cso;
78 return so;
100 struct lima_rasterizer_state *so;
102 so = CALLOC_STRUCT(lima_rasterizer_state);
103 if (!so)
106 so->base = *cso;
108 return so;
130 struct lima_blend_state *so;
132 so = CALLOC_STRUCT(lima_blend_state);
133 if (!so)
136 so->base = *cso;
138 return so;
160 struct lima_vertex_element_state *so;
162 so = CALLOC_STRUCT(lima_vertex_element_state);
163 if (!so)
166 memcpy(so->pipe, elements, sizeof(*elements) * num_elements);
167 so->num_elements = num_elements;
169 return so;
195 struct lima_context_vertex_buffer *so = &ctx->vertex_buffers;
197 util_set_vertex_buffers_mask(so->vb, &so->enabled_mask,
201 so->count = util_last_bit(so->enabled_mask);
285 struct lima_context_constant_buffer *so = ctx->const_buffer + shader;
290 so->buffer = NULL;
291 so->size = 0;
295 so->buffer = cb->user_buffer + cb->buffer_offset;
296 so->size = cb->buffer_size;
299 so->dirty = true;
308 struct lima_sampler_state *so = CALLOC_STRUCT(lima_sampler_state);
309 if (!so)
312 memcpy(so, cso, sizeof(*cso));
314 return so;
353 struct lima_sampler_view *so = CALLOC_STRUCT(lima_sampler_view);
355 if (!so)
358 so->base = *cso;
361 so->base.texture = prsc;
362 so->base.reference.count = 1;
363 so->base.context = pctx;
368 util_format_compose_swizzles(format_swizzle, sampler_swizzle, so->swizzle);
370 return &so->base;
472 struct lima_context_vertex_buffer *so = &ctx->vertex_buffers;
474 util_set_vertex_buffers_mask(so->vb, &so->enabled_mask, NULL,
475 0, 0, ARRAY_SIZE(so->vb), false);