Lines Matching refs:so

96         struct vc4_rasterizer_state *so;  in vc4_create_rasterizer_state()  local
101 so = CALLOC_STRUCT(vc4_rasterizer_state); in vc4_create_rasterizer_state()
102 if (!so) in vc4_create_rasterizer_state()
105 so->base = *cso; in vc4_create_rasterizer_state()
108 so->config_bits[0] |= VC4_CONFIG_BITS_ENABLE_PRIM_FRONT; in vc4_create_rasterizer_state()
110 so->config_bits[0] |= VC4_CONFIG_BITS_ENABLE_PRIM_BACK; in vc4_create_rasterizer_state()
120 so->config_bits[0] |= VC4_CONFIG_BITS_CW_PRIMITIVES; in vc4_create_rasterizer_state()
123 so->config_bits[0] |= VC4_CONFIG_BITS_ENABLE_DEPTH_OFFSET; in vc4_create_rasterizer_state()
132 so->config_bits[0] |= VC4_CONFIG_BITS_RASTERIZER_OVERSAMPLE_4X; in vc4_create_rasterizer_state()
134 V3D21_DEPTH_OFFSET_pack(NULL, so->packed.depth_offset, &depth_offset); in vc4_create_rasterizer_state()
135 V3D21_POINT_SIZE_pack(NULL, so->packed.point_size, &point_size); in vc4_create_rasterizer_state()
136 V3D21_LINE_WIDTH_pack(NULL, so->packed.line_width, &line_width); in vc4_create_rasterizer_state()
139 so->tile_raster_order_flags |= VC4_SUBMIT_CL_FIXED_RCL_ORDER; in vc4_create_rasterizer_state()
141 so->tile_raster_order_flags |= in vc4_create_rasterizer_state()
145 so->tile_raster_order_flags |= in vc4_create_rasterizer_state()
150 return so; in vc4_create_rasterizer_state()
209 struct vc4_depth_stencil_alpha_state *so; in vc4_create_depth_stencil_alpha_state() local
211 so = CALLOC_STRUCT(vc4_depth_stencil_alpha_state); in vc4_create_depth_stencil_alpha_state()
212 if (!so) in vc4_create_depth_stencil_alpha_state()
215 so->base = *cso; in vc4_create_depth_stencil_alpha_state()
220 so->config_bits[2] |= VC4_CONFIG_BITS_EARLY_Z_UPDATE; in vc4_create_depth_stencil_alpha_state()
224 so->config_bits[1] |= VC4_CONFIG_BITS_Z_UPDATE; in vc4_create_depth_stencil_alpha_state()
226 so->config_bits[1] |= (cso->depth.func << in vc4_create_depth_stencil_alpha_state()
239 so->config_bits[2] |= VC4_CONFIG_BITS_EARLY_Z; in vc4_create_depth_stencil_alpha_state()
242 so->config_bits[1] |= (PIPE_FUNC_ALWAYS << in vc4_create_depth_stencil_alpha_state()
255 so->stencil_uniforms[0] = in vc4_create_depth_stencil_alpha_state()
262 so->stencil_uniforms[0] |= (1 << 30); in vc4_create_depth_stencil_alpha_state()
263 so->stencil_uniforms[1] = in vc4_create_depth_stencil_alpha_state()
265 so->stencil_uniforms[1] |= (2 << 30); in vc4_create_depth_stencil_alpha_state()
267 so->stencil_uniforms[0] |= (3 << 30); in vc4_create_depth_stencil_alpha_state()
272 so->stencil_uniforms[2] = (front->writemask | in vc4_create_depth_stencil_alpha_state()
277 return so; in vc4_create_depth_stencil_alpha_state()
318 struct vc4_vertexbuf_stateobj *so = &vc4->vertexbuf; in vc4_set_vertex_buffers() local
320 util_set_vertex_buffers_mask(so->vb, &so->enabled_mask, vb, in vc4_set_vertex_buffers()
322 so->count = util_last_bit(so->enabled_mask); in vc4_set_vertex_buffers()
362 struct vc4_vertex_stateobj *so = CALLOC_STRUCT(vc4_vertex_stateobj); in vc4_vertex_state_create() local
364 if (!so) in vc4_vertex_state_create()
367 memcpy(so->pipe, elements, sizeof(*elements) * num_elements); in vc4_vertex_state_create()
368 so->num_elements = num_elements; in vc4_vertex_state_create()
370 return so; in vc4_vertex_state_create()
387 struct vc4_constbuf_stateobj *so = &vc4->constbuf[shader]; in vc4_set_constant_buffer() local
395 so->enabled_mask &= ~(1 << index); in vc4_set_constant_buffer()
396 so->dirty_mask &= ~(1 << index); in vc4_set_constant_buffer()
401 so->cb[index].buffer_offset = cb->buffer_offset; in vc4_set_constant_buffer()
402 so->cb[index].buffer_size = cb->buffer_size; in vc4_set_constant_buffer()
403 so->cb[index].user_buffer = cb->user_buffer; in vc4_set_constant_buffer()
405 so->enabled_mask |= 1 << index; in vc4_set_constant_buffer()
406 so->dirty_mask |= 1 << index; in vc4_set_constant_buffer()
512 struct vc4_sampler_state *so = CALLOC_STRUCT(vc4_sampler_state); in vc4_create_sampler_state() local
514 if (!so) in vc4_create_sampler_state()
517 memcpy(so, cso, sizeof(*cso)); in vc4_create_sampler_state()
519 so->texture_p1 = in vc4_create_sampler_state()
530 return so; in vc4_create_sampler_state()
562 struct vc4_sampler_view *so = CALLOC_STRUCT(vc4_sampler_view); in vc4_create_sampler_view() local
565 if (!so) in vc4_create_sampler_view()
568 so->base = *cso; in vc4_create_sampler_view()
571 so->base.texture = prsc; in vc4_create_sampler_view()
572 so->base.reference.count = 1; in vc4_create_sampler_view()
573 so->base.context = pctx; in vc4_create_sampler_view()
598 free(so); in vc4_create_sampler_view()
610 so->texture = prsc; in vc4_create_sampler_view()
612 pipe_resource_reference(&so->texture, prsc); in vc4_create_sampler_view()
615 so->force_first_level = true; in vc4_create_sampler_view()
619 so->texture_p0 = in vc4_create_sampler_view()
622 VC4_SET_FIELD(so->force_first_level ? in vc4_create_sampler_view()
628 so->texture_p1 = in vc4_create_sampler_view()
634 so->texture_p1 |= VC4_TEX_P1_ETCFLIP_MASK; in vc4_create_sampler_view()
636 return &so->base; in vc4_create_sampler_view()