• Home
  • Raw
  • Download

Lines Matching refs:cso

100                             const struct pipe_rasterizer_state *cso)  in vc5_create_rasterizer_state()  argument
108 so->base = *cso; in vc5_create_rasterizer_state()
113 so->point_size = MAX2(cso->point_size, .125f); in vc5_create_rasterizer_state()
115 if (cso->offset_tri) { in vc5_create_rasterizer_state()
116 so->offset_units = float_to_187_half(cso->offset_units); in vc5_create_rasterizer_state()
117 so->offset_factor = float_to_187_half(cso->offset_scale); in vc5_create_rasterizer_state()
126 const struct pipe_blend_state *cso) in vc5_create_blend_state() argument
128 return vc5_generic_cso_state_create(cso, sizeof(*cso)); in vc5_create_blend_state()
149 const struct pipe_depth_stencil_alpha_state *cso) in vc5_create_depth_stencil_alpha_state() argument
157 so->base = *cso; in vc5_create_depth_stencil_alpha_state()
159 if (cso->depth.enabled) { in vc5_create_depth_stencil_alpha_state()
165 ((cso->depth.func == PIPE_FUNC_LESS || in vc5_create_depth_stencil_alpha_state()
166 cso->depth.func == PIPE_FUNC_LEQUAL) && in vc5_create_depth_stencil_alpha_state()
167 (!cso->stencil[0].enabled || in vc5_create_depth_stencil_alpha_state()
168 (cso->stencil[0].zfail_op == PIPE_STENCIL_OP_KEEP && in vc5_create_depth_stencil_alpha_state()
169 cso->stencil[0].func == PIPE_FUNC_ALWAYS && in vc5_create_depth_stencil_alpha_state()
170 (!cso->stencil[1].enabled || in vc5_create_depth_stencil_alpha_state()
171 (cso->stencil[1].zfail_op == PIPE_STENCIL_OP_KEEP && in vc5_create_depth_stencil_alpha_state()
172 cso->stencil[1].func == PIPE_FUNC_ALWAYS))))); in vc5_create_depth_stencil_alpha_state()
175 const struct pipe_stencil_state *front = &cso->stencil[0]; in vc5_create_depth_stencil_alpha_state()
176 const struct pipe_stencil_state *back = &cso->stencil[1]; in vc5_create_depth_stencil_alpha_state()
425 struct pipe_framebuffer_state *cso = &vc5->framebuffer; in vc5_set_framebuffer_state() local
431 pipe_surface_reference(&cso->cbufs[i], framebuffer->cbufs[i]); in vc5_set_framebuffer_state()
433 pipe_surface_reference(&cso->cbufs[i], NULL); in vc5_set_framebuffer_state()
435 cso->nr_cbufs = framebuffer->nr_cbufs; in vc5_set_framebuffer_state()
437 pipe_surface_reference(&cso->zsbuf, framebuffer->zsbuf); in vc5_set_framebuffer_state()
439 cso->width = framebuffer->width; in vc5_set_framebuffer_state()
440 cso->height = framebuffer->height; in vc5_set_framebuffer_state()
503 const struct pipe_sampler_state *cso) in vc5_create_sampler_state() argument
511 memcpy(so, cso, sizeof(*cso)); in vc5_create_sampler_state()
514 (cso->mag_img_filter == PIPE_TEX_MIPFILTER_NEAREST || in vc5_create_sampler_state()
515 cso->min_img_filter == PIPE_TEX_MIPFILTER_NEAREST); in vc5_create_sampler_state()
525 sampler.wrap_s = translate_wrap(cso->wrap_s, either_nearest); in vc5_create_sampler_state()
526 sampler.wrap_t = translate_wrap(cso->wrap_t, either_nearest); in vc5_create_sampler_state()
527 sampler.wrap_r = translate_wrap(cso->wrap_r, either_nearest); in vc5_create_sampler_state()
529 sampler.fixed_bias = cso->lod_bias; in vc5_create_sampler_state()
530 sampler.depth_compare_function = cso->compare_func; in vc5_create_sampler_state()
533 cso->min_img_filter == PIPE_TEX_FILTER_NEAREST; in vc5_create_sampler_state()
535 cso->mag_img_filter == PIPE_TEX_FILTER_NEAREST; in vc5_create_sampler_state()
537 cso->min_mip_filter == PIPE_TEX_MIPFILTER_NEAREST; in vc5_create_sampler_state()
539 sampler.min_level_of_detail = MIN2(MAX2(0, cso->min_lod), in vc5_create_sampler_state()
541 sampler.max_level_of_detail = MIN2(cso->max_lod, 15); in vc5_create_sampler_state()
543 if (cso->max_anisotropy) { in vc5_create_sampler_state()
546 if (cso->max_anisotropy > 8) in vc5_create_sampler_state()
548 else if (cso->max_anisotropy > 4) in vc5_create_sampler_state()
550 else if (cso->max_anisotropy > 2) in vc5_create_sampler_state()
563 util_float_to_half(cso->border_color.f[0]); in vc5_create_sampler_state()
565 util_float_to_half(cso->border_color.f[1]); in vc5_create_sampler_state()
567 util_float_to_half(cso->border_color.f[2]); in vc5_create_sampler_state()
569 util_float_to_half(cso->border_color.f[3]); in vc5_create_sampler_state()
574 p0.s_wrap_mode = translate_wrap(cso->wrap_s, either_nearest); in vc5_create_sampler_state()
575 p0.t_wrap_mode = translate_wrap(cso->wrap_t, either_nearest); in vc5_create_sampler_state()
576 p0.r_wrap_mode = translate_wrap(cso->wrap_r, either_nearest); in vc5_create_sampler_state()
580 tex.depth_compare_function = cso->compare_func; in vc5_create_sampler_state()
581 tex.fixed_bias = cso->lod_bias; in vc5_create_sampler_state()
645 const struct pipe_sampler_view *cso) argument
655 so->base = *cso;
664 cso->swizzle_r,
665 cso->swizzle_g,
666 cso->swizzle_b,
667 cso->swizzle_a
705 tex.image_depth = (cso->u.tex.last_layer -
706 cso->u.tex.first_layer) + 1;
709 tex.srgb = util_format_is_srgb(cso->format);
711 tex.base_level = cso->u.tex.first_level;
713 tex.max_level = cso->u.tex.last_level;
738 assert(util_format_linear(cso->format) ==
741 vc5_get_rt_format(&screen->devinfo, cso->format);
769 cso->format);