Lines Matching refs:cso
95 const struct pipe_rasterizer_state *cso)
106 so->base = *cso;
108 if (!(cso->cull_face & PIPE_FACE_FRONT))
110 if (!(cso->cull_face & PIPE_FACE_BACK))
116 point_size.point_size = MAX2(cso->point_size, .125f);
118 line_width.line_width = cso->line_width;
120 if (cso->front_ccw)
123 if (cso->offset_tri) {
127 float_to_187_half(cso->offset_units);
129 float_to_187_half(cso->offset_scale);
132 if (cso->multisample)
139 if (cso->tile_raster_order_fixed) {
141 if (cso->tile_raster_order_increasing_x) {
145 if (cso->tile_raster_order_increasing_y) {
157 const struct pipe_blend_state *cso)
159 return vc4_generic_cso_state_create(cso, sizeof(*cso));
208 const struct pipe_depth_stencil_alpha_state *cso)
216 so->base = *cso;
223 if (cso->depth_enabled) {
224 if (cso->depth_writemask) {
227 so->config_bits[1] |= (cso->depth_func <<
234 if ((cso->depth_func == PIPE_FUNC_LESS ||
235 cso->depth_func == PIPE_FUNC_LEQUAL) &&
236 (!cso->stencil[0].enabled ||
237 (cso->stencil[0].zfail_op == PIPE_STENCIL_OP_KEEP &&
238 (!cso->stencil[1].enabled ||
239 cso->stencil[1].zfail_op == PIPE_STENCIL_OP_KEEP)))) {
247 if (cso->stencil[0].enabled) {
248 const struct pipe_stencil_state *front = &cso->stencil[0];
249 const struct pipe_stencil_state *back = &cso->stencil[1];
419 struct pipe_framebuffer_state *cso = &vc4->framebuffer;
423 util_copy_framebuffer_state(cso, framebuffer);
431 if (cso->cbufs[0] && cso->cbufs[0]->u.tex.level) {
433 vc4_resource(cso->cbufs[0]->texture);
434 cso->width =
435 (rsc->slices[cso->cbufs[0]->u.tex.level].stride /
437 } else if (cso->zsbuf && cso->zsbuf->u.tex.level){
439 vc4_resource(cso->zsbuf->texture);
440 cso->width =
441 (rsc->slices[cso->zsbuf->u.tex.level].stride /
488 const struct pipe_sampler_state *cso)
503 (cso->mag_img_filter == PIPE_TEX_MIPFILTER_NEAREST ||
504 cso->min_img_filter == PIPE_TEX_MIPFILTER_NEAREST);
510 memcpy(so, cso, sizeof(*cso));
513 (VC4_SET_FIELD(magfilter_map[cso->mag_img_filter],
515 VC4_SET_FIELD(minfilter_map[cso->min_mip_filter * 2 +
516 cso->min_img_filter],
518 VC4_SET_FIELD(translate_wrap(cso->wrap_s, either_nearest),
520 VC4_SET_FIELD(translate_wrap(cso->wrap_t, either_nearest),
553 const struct pipe_sampler_view *cso)
561 so->base = *cso;
575 if ((cso->u.tex.first_level &&
576 (cso->u.tex.first_level != cso->u.tex.last_level)) ||
584 cso->u.tex.first_level),
586 cso->u.tex.first_level),
588 .last_level = cso->u.tex.last_level - cso->u.tex.first_level,
613 if (cso->u.tex.first_level) {
620 cso->u.tex.first_layer *
624 cso->u.tex.last_level :
625 cso->u.tex.last_level -
626 cso->u.tex.first_level, VC4_TEX_P0_MIPLVLS) |
627 VC4_SET_FIELD(cso->target == PIPE_TEXTURE_CUBE,