• Home
  • Raw
  • Download

Lines Matching refs:cso

94                             const struct pipe_rasterizer_state *cso)  in vc4_create_rasterizer_state()  argument
102 so->base = *cso; in vc4_create_rasterizer_state()
104 if (!(cso->cull_face & PIPE_FACE_FRONT)) in vc4_create_rasterizer_state()
106 if (!(cso->cull_face & PIPE_FACE_BACK)) in vc4_create_rasterizer_state()
112 so->point_size = MAX2(cso->point_size, .125f); in vc4_create_rasterizer_state()
114 if (cso->front_ccw) in vc4_create_rasterizer_state()
117 if (cso->offset_tri) { in vc4_create_rasterizer_state()
120 so->offset_units = float_to_187_half(cso->offset_units); in vc4_create_rasterizer_state()
121 so->offset_factor = float_to_187_half(cso->offset_scale); in vc4_create_rasterizer_state()
124 if (cso->multisample) in vc4_create_rasterizer_state()
133 const struct pipe_blend_state *cso) in vc4_create_blend_state() argument
135 return vc4_generic_cso_state_create(cso, sizeof(*cso)); in vc4_create_blend_state()
184 const struct pipe_depth_stencil_alpha_state *cso) in vc4_create_depth_stencil_alpha_state() argument
192 so->base = *cso; in vc4_create_depth_stencil_alpha_state()
199 if (cso->depth.enabled) { in vc4_create_depth_stencil_alpha_state()
200 if (cso->depth.writemask) { in vc4_create_depth_stencil_alpha_state()
203 so->config_bits[1] |= (cso->depth.func << in vc4_create_depth_stencil_alpha_state()
210 if ((cso->depth.func == PIPE_FUNC_LESS || in vc4_create_depth_stencil_alpha_state()
211 cso->depth.func == PIPE_FUNC_LEQUAL) && in vc4_create_depth_stencil_alpha_state()
212 (!cso->stencil[0].enabled || in vc4_create_depth_stencil_alpha_state()
213 (cso->stencil[0].zfail_op == PIPE_STENCIL_OP_KEEP && in vc4_create_depth_stencil_alpha_state()
214 (!cso->stencil[1].enabled || in vc4_create_depth_stencil_alpha_state()
215 cso->stencil[1].zfail_op == PIPE_STENCIL_OP_KEEP)))) { in vc4_create_depth_stencil_alpha_state()
223 if (cso->stencil[0].enabled) { in vc4_create_depth_stencil_alpha_state()
224 const struct pipe_stencil_state *front = &cso->stencil[0]; in vc4_create_depth_stencil_alpha_state()
225 const struct pipe_stencil_state *back = &cso->stencil[1]; in vc4_create_depth_stencil_alpha_state()
409 struct pipe_framebuffer_state *cso = &vc4->framebuffer; in vc4_set_framebuffer_state() local
415 pipe_surface_reference(&cso->cbufs[i], framebuffer->cbufs[i]); in vc4_set_framebuffer_state()
417 pipe_surface_reference(&cso->cbufs[i], NULL); in vc4_set_framebuffer_state()
419 cso->nr_cbufs = framebuffer->nr_cbufs; in vc4_set_framebuffer_state()
421 pipe_surface_reference(&cso->zsbuf, framebuffer->zsbuf); in vc4_set_framebuffer_state()
423 cso->width = framebuffer->width; in vc4_set_framebuffer_state()
424 cso->height = framebuffer->height; in vc4_set_framebuffer_state()
432 if (cso->cbufs[0] && cso->cbufs[0]->u.tex.level) { in vc4_set_framebuffer_state()
434 vc4_resource(cso->cbufs[0]->texture); in vc4_set_framebuffer_state()
435 cso->width = in vc4_set_framebuffer_state()
436 (rsc->slices[cso->cbufs[0]->u.tex.level].stride / in vc4_set_framebuffer_state()
438 } else if (cso->zsbuf && cso->zsbuf->u.tex.level){ in vc4_set_framebuffer_state()
440 vc4_resource(cso->zsbuf->texture); in vc4_set_framebuffer_state()
441 cso->width = in vc4_set_framebuffer_state()
442 (rsc->slices[cso->zsbuf->u.tex.level].stride / in vc4_set_framebuffer_state()
489 const struct pipe_sampler_state *cso) in vc4_create_sampler_state() argument
504 (cso->mag_img_filter == PIPE_TEX_MIPFILTER_NEAREST || in vc4_create_sampler_state()
505 cso->min_img_filter == PIPE_TEX_MIPFILTER_NEAREST); in vc4_create_sampler_state()
511 memcpy(so, cso, sizeof(*cso)); in vc4_create_sampler_state()
514 (VC4_SET_FIELD(magfilter_map[cso->mag_img_filter], in vc4_create_sampler_state()
516 VC4_SET_FIELD(minfilter_map[cso->min_mip_filter * 2 + in vc4_create_sampler_state()
517 cso->min_img_filter], in vc4_create_sampler_state()
519 VC4_SET_FIELD(translate_wrap(cso->wrap_s, either_nearest), in vc4_create_sampler_state()
521 VC4_SET_FIELD(translate_wrap(cso->wrap_t, either_nearest), in vc4_create_sampler_state()
554 const struct pipe_sampler_view *cso) in vc4_create_sampler_view() argument
562 so->base = *cso; in vc4_create_sampler_view()
573 if ((cso->u.tex.first_level && in vc4_create_sampler_view()
574 (cso->u.tex.first_level != cso->u.tex.last_level)) || in vc4_create_sampler_view()
581 tmpl.width0 = u_minify(tmpl.width0, cso->u.tex.first_level); in vc4_create_sampler_view()
582 tmpl.height0 = u_minify(tmpl.height0, cso->u.tex.first_level); in vc4_create_sampler_view()
583 tmpl.last_level = cso->u.tex.last_level - cso->u.tex.first_level; in vc4_create_sampler_view()
597 } else if (cso->u.tex.first_level) { in vc4_create_sampler_view()
608 cso->u.tex.last_level : in vc4_create_sampler_view()
609 cso->u.tex.last_level - in vc4_create_sampler_view()
610 cso->u.tex.first_level, VC4_TEX_P0_MIPLVLS) | in vc4_create_sampler_view()
611 VC4_SET_FIELD(cso->target == PIPE_TEXTURE_CUBE, in vc4_create_sampler_view()