Home
last modified time | relevance | path

Searched refs:cso (Results 1 – 25 of 147) sorted by relevance

123456

/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_state.c40 const struct pipe_blend_state *cso) in nv30_blend_state_create() argument
50 so->pipe = *cso; in nv30_blend_state_create()
52 if (cso->logicop_enable) { in nv30_blend_state_create()
55 SB_DATA (so, nvgl_logicop_func(cso->logicop_func)); in nv30_blend_state_create()
62 SB_DATA (so, cso->dither); in nv30_blend_state_create()
64 blend[0] = cso->rt[0].blend_enable; in nv30_blend_state_create()
65 cmask[0] = !!(cso->rt[0].colormask & PIPE_MASK_A) << 24 | in nv30_blend_state_create()
66 !!(cso->rt[0].colormask & PIPE_MASK_R) << 16 | in nv30_blend_state_create()
67 !!(cso->rt[0].colormask & PIPE_MASK_G) << 8 | in nv30_blend_state_create()
68 !!(cso->rt[0].colormask & PIPE_MASK_B); in nv30_blend_state_create()
[all …]
Dnv30_texture.c62 filter_mode(const struct pipe_sampler_state *cso) in filter_mode() argument
66 switch (cso->mag_img_filter) { in filter_mode()
75 switch (cso->min_img_filter) { in filter_mode()
77 switch (cso->min_mip_filter) { in filter_mode()
90 switch (cso->min_mip_filter) { in filter_mode()
108 compare_mode(const struct pipe_sampler_state *cso) in compare_mode() argument
110 if (cso->compare_mode != PIPE_TEX_COMPARE_R_TO_TEXTURE) in compare_mode()
113 switch (cso->compare_func) { in compare_mode()
129 const struct pipe_sampler_state *cso) in nv30_sampler_state_create() argument
139 so->pipe = *cso; in nv30_sampler_state_create()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_rasterizer.c37 const struct pipe_rasterizer_state *cso) in fd2_rasterizer_state_create() argument
46 if (cso->point_size_per_vertex) { in fd2_rasterizer_state_create()
47 psize_min = util_get_min_point_size(cso); in fd2_rasterizer_state_create()
51 psize_min = cso->point_size; in fd2_rasterizer_state_create()
52 psize_max = cso->point_size; in fd2_rasterizer_state_create()
55 so->base = *cso; in fd2_rasterizer_state_create()
58 cso->line_stipple_enable in fd2_rasterizer_state_create()
59 ? A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN(cso->line_stipple_pattern) | in fd2_rasterizer_state_create()
60 A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT(cso->line_stipple_factor) in fd2_rasterizer_state_create()
66 A2XX_PA_SU_VTX_CNTL_PIX_CENTER(cso->half_pixel_center ? PIXCENTER_OGL in fd2_rasterizer_state_create()
[all …]
Dfd2_zsa.c37 const struct pipe_depth_stencil_alpha_state *cso) in fd2_zsa_state_create() argument
45 so->base = *cso; in fd2_zsa_state_create()
48 A2XX_RB_DEPTHCONTROL_ZFUNC(cso->depth_func); /* maps 1:1 */ in fd2_zsa_state_create()
50 if (cso->depth_enabled) in fd2_zsa_state_create()
53 COND(!cso->alpha_enabled, A2XX_RB_DEPTHCONTROL_EARLY_Z_ENABLE); in fd2_zsa_state_create()
54 if (cso->depth_writemask) in fd2_zsa_state_create()
57 if (cso->stencil[0].enabled) { in fd2_zsa_state_create()
58 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd2_zsa_state_create()
71 if (cso->stencil[1].enabled) { in fd2_zsa_state_create()
72 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd2_zsa_state_create()
[all …]
Dfd2_texture.c93 const struct pipe_sampler_state *cso) in fd2_sampler_state_create() argument
100 so->base = *cso; in fd2_sampler_state_create()
108 so->tex0 = A2XX_SQ_TEX_0_CLAMP_X(tex_clamp(cso->wrap_s)) | in fd2_sampler_state_create()
109 A2XX_SQ_TEX_0_CLAMP_Y(tex_clamp(cso->wrap_t)) | in fd2_sampler_state_create()
110 A2XX_SQ_TEX_0_CLAMP_Z(tex_clamp(cso->wrap_r)); in fd2_sampler_state_create()
112 so->tex3 = A2XX_SQ_TEX_3_XY_MAG_FILTER(tex_filter(cso->mag_img_filter)) | in fd2_sampler_state_create()
113 A2XX_SQ_TEX_3_XY_MIN_FILTER(tex_filter(cso->min_img_filter)) | in fd2_sampler_state_create()
114 A2XX_SQ_TEX_3_MIP_FILTER(mip_filter(cso->min_mip_filter)); in fd2_sampler_state_create()
117 if (cso->min_mip_filter != PIPE_TEX_MIPFILTER_NONE) in fd2_sampler_state_create()
118 so->tex4 = A2XX_SQ_TEX_4_LOD_BIAS(cso->lod_bias); in fd2_sampler_state_create()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_rasterizer.c39 const struct pipe_rasterizer_state *cso, in __fd6_setup_rasterizer_stateobj() argument
45 if (cso->point_size_per_vertex) { in __fd6_setup_rasterizer_stateobj()
46 psize_min = util_get_min_point_size(cso); in __fd6_setup_rasterizer_stateobj()
50 psize_min = cso->point_size; in __fd6_setup_rasterizer_stateobj()
51 psize_max = cso->point_size; in __fd6_setup_rasterizer_stateobj()
54 OUT_REG(ring, A6XX_GRAS_CL_CNTL(.znear_clip_disable = !cso->depth_clip_near, in __fd6_setup_rasterizer_stateobj()
55 .zfar_clip_disable = !cso->depth_clip_far, in __fd6_setup_rasterizer_stateobj()
56 .unk5 = !cso->depth_clip_near || in __fd6_setup_rasterizer_stateobj()
57 !cso->depth_clip_far, in __fd6_setup_rasterizer_stateobj()
59 .zero_gb_scale_z = cso->clip_halfz)); in __fd6_setup_rasterizer_stateobj()
[all …]
Dfd6_blend.c64 const struct pipe_blend_state *cso = &blend->base; in __fd6_setup_blend_variant() local
70 if (cso->logicop_enable) { in __fd6_setup_blend_variant()
71 rop = cso->logicop_func; /* maps 1:1 */ in __fd6_setup_blend_variant()
72 reads_dest = util_logicop_reads_dest(cso->logicop_func); in __fd6_setup_blend_variant()
83 for (unsigned i = 0; i <= cso->max_rt; i++) { in __fd6_setup_blend_variant()
86 if (cso->independent_blend_enable) in __fd6_setup_blend_variant()
87 rt = &cso->rt[i]; in __fd6_setup_blend_variant()
89 rt = &cso->rt[0]; in __fd6_setup_blend_variant()
101 .rop_enable = cso->logicop_enable, in __fd6_setup_blend_variant()
118 .dither_mode_mrt0 = cso->dither ? DITHER_ALWAYS : DITHER_DISABLE, in __fd6_setup_blend_variant()
[all …]
Dfd6_texture.c91 const struct pipe_sampler_state *cso) in fd6_sampler_state_create() argument
94 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd6_sampler_state_create()
100 so->base = *cso; in fd6_sampler_state_create()
103 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR) in fd6_sampler_state_create()
109 A6XX_TEX_SAMP_0_XY_MAG(tex_filter(cso->mag_img_filter, aniso)) | in fd6_sampler_state_create()
110 A6XX_TEX_SAMP_0_XY_MIN(tex_filter(cso->min_img_filter, aniso)) | in fd6_sampler_state_create()
112 A6XX_TEX_SAMP_0_WRAP_S(tex_clamp(cso->wrap_s, &so->needs_border)) | in fd6_sampler_state_create()
113 A6XX_TEX_SAMP_0_WRAP_T(tex_clamp(cso->wrap_t, &so->needs_border)) | in fd6_sampler_state_create()
114 A6XX_TEX_SAMP_0_WRAP_R(tex_clamp(cso->wrap_r, &so->needs_border)); in fd6_sampler_state_create()
117 COND(cso->min_mip_filter == PIPE_TEX_MIPFILTER_NONE, in fd6_sampler_state_create()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_rasterizer.c37 const struct pipe_rasterizer_state *cso) in fd4_rasterizer_state_create() argument
46 so->base = *cso; in fd4_rasterizer_state_create()
48 if (cso->point_size_per_vertex) { in fd4_rasterizer_state_create()
49 psize_min = util_get_min_point_size(cso); in fd4_rasterizer_state_create()
53 psize_min = cso->point_size; in fd4_rasterizer_state_create()
54 psize_max = cso->point_size; in fd4_rasterizer_state_create()
68 so->gras_su_point_size = A4XX_GRAS_SU_POINT_SIZE(cso->point_size); in fd4_rasterizer_state_create()
70 A4XX_GRAS_SU_POLY_OFFSET_SCALE(cso->offset_scale); in fd4_rasterizer_state_create()
72 A4XX_GRAS_SU_POLY_OFFSET_OFFSET(cso->offset_units * 2.0f); in fd4_rasterizer_state_create()
74 A4XX_GRAS_SU_POLY_OFFSET_CLAMP(cso->offset_clamp); in fd4_rasterizer_state_create()
[all …]
Dfd4_texture.c79 const struct pipe_sampler_state *cso) in fd4_sampler_state_create() argument
82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd4_sampler_state_create()
88 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR) in fd4_sampler_state_create()
91 so->base = *cso; in fd4_sampler_state_create()
96 A4XX_TEX_SAMP_0_XY_MAG(tex_filter(cso->mag_img_filter, aniso)) | in fd4_sampler_state_create()
97 A4XX_TEX_SAMP_0_XY_MIN(tex_filter(cso->min_img_filter, aniso)) | in fd4_sampler_state_create()
99 A4XX_TEX_SAMP_0_WRAP_S(tex_clamp(cso->wrap_s, &so->needs_border)) | in fd4_sampler_state_create()
100 A4XX_TEX_SAMP_0_WRAP_T(tex_clamp(cso->wrap_t, &so->needs_border)) | in fd4_sampler_state_create()
101 A4XX_TEX_SAMP_0_WRAP_R(tex_clamp(cso->wrap_r, &so->needs_border)); in fd4_sampler_state_create()
105 COND(!cso->seamless_cube_map, A4XX_TEX_SAMP_1_CUBEMAPSEAMLESSFILTOFF) | in fd4_sampler_state_create()
[all …]
Dfd4_zsa.c37 const struct pipe_depth_stencil_alpha_state *cso) in fd4_zsa_state_create() argument
45 so->base = *cso; in fd4_zsa_state_create()
48 A4XX_RB_DEPTH_CONTROL_ZFUNC(cso->depth_func); /* maps 1:1 */ in fd4_zsa_state_create()
50 if (cso->depth_enabled) in fd4_zsa_state_create()
54 if (cso->depth_writemask) in fd4_zsa_state_create()
57 if (cso->stencil[0].enabled) { in fd4_zsa_state_create()
58 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd4_zsa_state_create()
73 if (cso->stencil[1].enabled) { in fd4_zsa_state_create()
74 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd4_zsa_state_create()
89 if (cso->alpha_enabled) { in fd4_zsa_state_create()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.c79 const struct pipe_sampler_state *cso) in fd3_sampler_state_create() argument
82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd3_sampler_state_create()
88 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR) in fd3_sampler_state_create()
91 so->base = *cso; in fd3_sampler_state_create()
95 COND(!cso->normalized_coords, A3XX_TEX_SAMP_0_UNNORM_COORDS) | in fd3_sampler_state_create()
96 COND(!cso->seamless_cube_map, A3XX_TEX_SAMP_0_CUBEMAPSEAMLESSFILTOFF) | in fd3_sampler_state_create()
98 A3XX_TEX_SAMP_0_XY_MAG(tex_filter(cso->mag_img_filter, aniso)) | in fd3_sampler_state_create()
99 A3XX_TEX_SAMP_0_XY_MIN(tex_filter(cso->min_img_filter, aniso)) | in fd3_sampler_state_create()
101 A3XX_TEX_SAMP_0_WRAP_S(tex_clamp(cso->wrap_s, &so->needs_border)) | in fd3_sampler_state_create()
102 A3XX_TEX_SAMP_0_WRAP_T(tex_clamp(cso->wrap_t, &so->needs_border)) | in fd3_sampler_state_create()
[all …]
Dfd3_rasterizer.c37 const struct pipe_rasterizer_state *cso) in fd3_rasterizer_state_create() argument
46 so->base = *cso; in fd3_rasterizer_state_create()
48 if (cso->point_size_per_vertex) { in fd3_rasterizer_state_create()
49 psize_min = util_get_min_point_size(cso); in fd3_rasterizer_state_create()
53 psize_min = cso->point_size; in fd3_rasterizer_state_create()
54 psize_max = cso->point_size; in fd3_rasterizer_state_create()
66 COND(cso->clip_halfz, A3XX_GRAS_CL_CLIP_CNTL_ZERO_GB_SCALE_Z); in fd3_rasterizer_state_create()
69 so->gras_su_point_size = A3XX_GRAS_SU_POINT_SIZE(cso->point_size); in fd3_rasterizer_state_create()
71 A3XX_GRAS_SU_POLY_OFFSET_SCALE_VAL(cso->offset_scale); in fd3_rasterizer_state_create()
73 A3XX_GRAS_SU_POLY_OFFSET_OFFSET(cso->offset_units * 2.0f); in fd3_rasterizer_state_create()
[all …]
Dfd3_zsa.c37 const struct pipe_depth_stencil_alpha_state *cso) in fd3_zsa_state_create() argument
45 so->base = *cso; in fd3_zsa_state_create()
48 A3XX_RB_DEPTH_CONTROL_ZFUNC(cso->depth_func); /* maps 1:1 */ in fd3_zsa_state_create()
50 if (cso->depth_enabled) in fd3_zsa_state_create()
54 if (cso->depth_writemask) in fd3_zsa_state_create()
57 if (cso->stencil[0].enabled) { in fd3_zsa_state_create()
58 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd3_zsa_state_create()
72 if (cso->stencil[1].enabled) { in fd3_zsa_state_create()
73 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd3_zsa_state_create()
88 if (cso->alpha_enabled) { in fd3_zsa_state_create()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_rasterizer.c37 const struct pipe_rasterizer_state *cso) in fd5_rasterizer_state_create() argument
46 so->base = *cso; in fd5_rasterizer_state_create()
48 if (cso->point_size_per_vertex) { in fd5_rasterizer_state_create()
49 psize_min = util_get_min_point_size(cso); in fd5_rasterizer_state_create()
53 psize_min = cso->point_size; in fd5_rasterizer_state_create()
54 psize_max = cso->point_size; in fd5_rasterizer_state_create()
59 so->gras_su_point_size = A5XX_GRAS_SU_POINT_SIZE(cso->point_size); in fd5_rasterizer_state_create()
61 A5XX_GRAS_SU_POLY_OFFSET_SCALE(cso->offset_scale); in fd5_rasterizer_state_create()
63 A5XX_GRAS_SU_POLY_OFFSET_OFFSET(cso->offset_units); in fd5_rasterizer_state_create()
65 A5XX_GRAS_SU_POLY_OFFSET_OFFSET_CLAMP(cso->offset_clamp); in fd5_rasterizer_state_create()
[all …]
Dfd5_texture.c79 const struct pipe_sampler_state *cso) in fd5_sampler_state_create() argument
82 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8)); in fd5_sampler_state_create()
88 so->base = *cso; in fd5_sampler_state_create()
90 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR) in fd5_sampler_state_create()
96 A5XX_TEX_SAMP_0_XY_MAG(tex_filter(cso->mag_img_filter, aniso)) | in fd5_sampler_state_create()
97 A5XX_TEX_SAMP_0_XY_MIN(tex_filter(cso->min_img_filter, aniso)) | in fd5_sampler_state_create()
99 A5XX_TEX_SAMP_0_WRAP_S(tex_clamp(cso->wrap_s, &so->needs_border)) | in fd5_sampler_state_create()
100 A5XX_TEX_SAMP_0_WRAP_T(tex_clamp(cso->wrap_t, &so->needs_border)) | in fd5_sampler_state_create()
101 A5XX_TEX_SAMP_0_WRAP_R(tex_clamp(cso->wrap_r, &so->needs_border)); in fd5_sampler_state_create()
104 COND(!cso->seamless_cube_map, A5XX_TEX_SAMP_1_CUBEMAPSEAMLESSFILTOFF) | in fd5_sampler_state_create()
[all …]
Dfd5_zsa.c37 const struct pipe_depth_stencil_alpha_state *cso) in fd5_zsa_state_create() argument
45 so->base = *cso; in fd5_zsa_state_create()
47 switch (cso->depth_func) { in fd5_zsa_state_create()
65 if (!(cso->stencil->enabled || cso->alpha_enabled || !cso->depth_writemask)) in fd5_zsa_state_create()
69 A5XX_RB_DEPTH_CNTL_ZFUNC(cso->depth_func); /* maps 1:1 */ in fd5_zsa_state_create()
71 if (cso->depth_enabled) in fd5_zsa_state_create()
75 if (cso->depth_writemask) in fd5_zsa_state_create()
78 if (cso->stencil[0].enabled) { in fd5_zsa_state_create()
79 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd5_zsa_state_create()
92 if (cso->stencil[1].enabled) { in fd5_zsa_state_create()
[all …]
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_state.c95 const struct pipe_rasterizer_state *cso) in vc4_create_rasterizer_state() argument
106 so->base = *cso; in vc4_create_rasterizer_state()
108 if (!(cso->cull_face & PIPE_FACE_FRONT)) in vc4_create_rasterizer_state()
110 if (!(cso->cull_face & PIPE_FACE_BACK)) in vc4_create_rasterizer_state()
116 point_size.point_size = MAX2(cso->point_size, .125f); in vc4_create_rasterizer_state()
118 line_width.line_width = cso->line_width; in vc4_create_rasterizer_state()
120 if (cso->front_ccw) in vc4_create_rasterizer_state()
123 if (cso->offset_tri) { in vc4_create_rasterizer_state()
127 float_to_187_half(cso->offset_units); in vc4_create_rasterizer_state()
129 float_to_187_half(cso->offset_scale); in vc4_create_rasterizer_state()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_context.c125 struct pipe_context *cso_get_pipe_context(struct cso_context *cso) in cso_get_pipe_context() argument
127 return cso->pipe; in cso_get_pipe_context()
204 void *cso = cso_hash_iter_data(iter); in sanitize_hash() local
206 if (!cso) in sanitize_hash()
209 if (delete_cso(ctx, cso, type)) { in sanitize_hash()
228 static void cso_init_vbuf(struct cso_context *cso, unsigned flags) in cso_init_vbuf() argument
234 u_vbuf_get_caps(cso->pipe->screen, &caps, needs64b); in cso_init_vbuf()
240 cso->vbuf = u_vbuf_create(cso->pipe, &caps); in cso_init_vbuf()
241 cso->vbuf_current = cso->vbuf; in cso_init_vbuf()
242 cso->always_use_vbuf = caps.fallback_always; in cso_init_vbuf()
[all …]
Dcso_context.h52 void cso_destroy_context( struct cso_context *cso );
53 struct pipe_context *cso_get_pipe_context(struct cso_context *cso);
56 enum pipe_error cso_set_blend( struct cso_context *cso,
60 enum pipe_error cso_set_depth_stencil_alpha( struct cso_context *cso,
65 enum pipe_error cso_set_rasterizer( struct cso_context *cso,
70 cso_set_samplers(struct cso_context *cso,
80 cso_single_sampler(struct cso_context *cso, enum pipe_shader_type shader_stage,
84 cso_single_sampler_done(struct cso_context *cso,
125 void cso_set_framebuffer(struct cso_context *cso,
129 void cso_set_viewport(struct cso_context *cso,
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_state.c118 const struct pipe_blend_state *cso) in nv50_blend_state_create() argument
122 bool emit_common_func = cso->rt[0].blend_enable; in nv50_blend_state_create()
127 SB_DATA (so, cso->independent_blend_enable); in nv50_blend_state_create()
130 so->pipe = *cso; in nv50_blend_state_create()
133 SB_DATA (so, !cso->independent_blend_enable); in nv50_blend_state_create()
136 SB_DATA (so, !cso->independent_blend_enable); in nv50_blend_state_create()
138 if (cso->independent_blend_enable) { in nv50_blend_state_create()
141 SB_DATA(so, cso->rt[i].blend_enable); in nv50_blend_state_create()
142 if (cso->rt[i].blend_enable) in nv50_blend_state_create()
150 if (!cso->rt[i].blend_enable) in nv50_blend_state_create()
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_state.c91 const struct pipe_blend_state *cso) in nvc0_blend_state_create() argument
101 so->pipe = *cso; in nvc0_blend_state_create()
104 if (cso->independent_blend_enable) { in nvc0_blend_state_create()
105 for (r = 0; r < 8 && !cso->rt[r].blend_enable; ++r); in nvc0_blend_state_create()
108 if (!cso->rt[i].blend_enable) in nvc0_blend_state_create()
111 if (cso->rt[i].rgb_func != cso->rt[r].rgb_func || in nvc0_blend_state_create()
112 cso->rt[i].rgb_src_factor != cso->rt[r].rgb_src_factor || in nvc0_blend_state_create()
113 cso->rt[i].rgb_dst_factor != cso->rt[r].rgb_dst_factor || in nvc0_blend_state_create()
114 cso->rt[i].alpha_func != cso->rt[r].alpha_func || in nvc0_blend_state_create()
115 cso->rt[i].alpha_src_factor != cso->rt[r].alpha_src_factor || in nvc0_blend_state_create()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_tests.c70 util_set_framebuffer_cb0(struct cso_context *cso, struct pipe_context *ctx, in util_set_framebuffer_cb0() argument
84 cso_set_framebuffer(cso, &fb); in util_set_framebuffer_cb0()
89 util_set_blend_normal(struct cso_context *cso) in util_set_blend_normal() argument
94 cso_set_blend(cso, &blend); in util_set_blend_normal()
98 util_set_dsa_disable(struct cso_context *cso) in util_set_dsa_disable() argument
102 cso_set_depth_stencil_alpha(cso, &dsa); in util_set_dsa_disable()
106 util_set_rasterizer_normal(struct cso_context *cso) in util_set_rasterizer_normal() argument
115 cso_set_rasterizer(cso, &rs); in util_set_rasterizer_normal()
119 util_set_max_viewport(struct cso_context *cso, struct pipe_resource *tex) in util_set_max_viewport() argument
134 cso_set_viewport(cso, &viewport); in util_set_max_viewport()
[all …]
/third_party/mesa3d/src/gallium/frontends/nine/
Dvertexshader9.c38 const DWORD *pFunction, void *cso ) in NineVertexShader9_ctor() argument
47 This, pParams, pFunction, cso); in NineVertexShader9_ctor()
53 if (cso) { in NineVertexShader9_ctor()
54 This->ff_cso = cso; in NineVertexShader9_ctor()
97 This->variant.cso = info.cso; in NineVertexShader9_ctor()
100 This->last_cso = info.cso; in NineVertexShader9_ctor()
136 if (var->cso) { in NineVertexShader9_dtor()
137 if (This->base.device->context.cso_shader.vs == var->cso) in NineVertexShader9_dtor()
139 pipe->delete_vs_state(pipe, var->cso); in NineVertexShader9_dtor()
146 if (var_so->cso) { in NineVertexShader9_dtor()
[all …]
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3dx_state.c88 const struct pipe_rasterizer_state *cso) in v3d_create_rasterizer_state() argument
96 so->base = *cso; in v3d_create_rasterizer_state()
101 so->point_size = MAX2(cso->point_size, .125f); in v3d_create_rasterizer_state()
106 depth.depth_offset_factor = cso->offset_scale; in v3d_create_rasterizer_state()
107 depth.depth_offset_units = cso->offset_units; in v3d_create_rasterizer_state()
114 depth.depth_offset_factor = cso->offset_scale; in v3d_create_rasterizer_state()
115 depth.depth_offset_units = cso->offset_units * 256.0; in v3d_create_rasterizer_state()
124 const struct pipe_blend_state *cso) in v3d_create_blend_state() argument
132 so->base = *cso; in v3d_create_blend_state()
134 if (cso->independent_blend_enable) { in v3d_create_blend_state()
[all …]

123456