Home
last modified time | relevance | path

Searched refs:cso (Results 1 - 25 of 135) sorted by relevance

123456

/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_state.c40 const struct pipe_blend_state *cso) in nv30_blend_state_create()
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 in nv30_blend_state_create()
39 nv30_blend_state_create(struct pipe_context *pipe, const struct pipe_blend_state *cso) nv30_blend_state_create() argument
134 nv30_rasterizer_state_create(struct pipe_context *pipe, const struct pipe_rasterizer_state *cso) nv30_rasterizer_state_create() argument
211 nv30_zsa_state_create(struct pipe_context *pipe, const struct pipe_depth_stencil_alpha_state *cso) nv30_zsa_state_create() argument
[all...]
H A 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()
139 so->pipe = *cso; in nv30_sampler_state_create()
128 nv30_sampler_state_create(struct pipe_context *pipe, const struct pipe_sampler_state *cso) nv30_sampler_state_create() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
H A Dfd2_rasterizer.c37 const struct pipe_rasterizer_state *cso) in fd2_rasterizer_state_create()
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 in fd2_rasterizer_state_create()
36 fd2_rasterizer_state_create(struct pipe_context *pctx, const struct pipe_rasterizer_state *cso) fd2_rasterizer_state_create() argument
[all...]
H A Dfd2_texture.c93 const struct pipe_sampler_state *cso) in fd2_sampler_state_create()
100 so->base = *cso; in fd2_sampler_state_create()
103 * cso->max_anisotropy in fd2_sampler_state_create()
104 * cso->normalized_coords (dealt with by shader for rect textures?) 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 in fd2_sampler_state_create()
92 fd2_sampler_state_create(struct pipe_context *pctx, const struct pipe_sampler_state *cso) fd2_sampler_state_create() argument
165 fd2_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, const struct pipe_sampler_view *cso) fd2_sampler_view_create() argument
[all...]
H A Dfd2_zsa.c37 const struct pipe_depth_stencil_alpha_state *cso) in fd2_zsa_state_create()
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 in fd2_zsa_state_create()
36 fd2_zsa_state_create(struct pipe_context *pctx, const struct pipe_depth_stencil_alpha_state *cso) fd2_zsa_state_create() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
H A Dfd5_rasterizer.c37 const struct pipe_rasterizer_state *cso) in fd5_rasterizer_state_create()
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 in fd5_rasterizer_state_create()
36 fd5_rasterizer_state_create(struct pipe_context *pctx, const struct pipe_rasterizer_state *cso) fd5_rasterizer_state_create() argument
[all...]
H A Dfd5_texture.c79 const struct pipe_sampler_state *cso) in fd5_sampler_state_create()
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 in fd5_sampler_state_create()
78 fd5_sampler_state_create(struct pipe_context *pctx, const struct pipe_sampler_state *cso) fd5_sampler_state_create() argument
129 fd5_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, const struct pipe_sampler_view *cso) fd5_sampler_view_create() argument
[all...]
H A Dfd5_zsa.c37 const struct pipe_depth_stencil_alpha_state *cso) in fd5_zsa_state_create()
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 in fd5_zsa_state_create()
36 fd5_zsa_state_create(struct pipe_context *pctx, const struct pipe_depth_stencil_alpha_state *cso) fd5_zsa_state_create() argument
[all...]
H A Dfd5_blend.c59 const struct pipe_blend_state *cso) in fd5_blend_state_create()
66 if (cso->logicop_enable) { in fd5_blend_state_create()
67 rop = cso->logicop_func; /* maps 1:1 */ in fd5_blend_state_create()
68 reads_dest = util_logicop_reads_dest(cso->logicop_func); in fd5_blend_state_create()
75 so->base = *cso; in fd5_blend_state_create()
82 if (cso->independent_blend_enable) in fd5_blend_state_create()
83 rt = &cso->rt[i]; in fd5_blend_state_create()
85 rt = &cso->rt[0]; in fd5_blend_state_create()
102 COND(cso->logicop_enable, A5XX_RB_MRT_CONTROL_ROP_ENABLE) | in fd5_blend_state_create()
119 // if (cso in fd5_blend_state_create()
58 fd5_blend_state_create(struct pipe_context *pctx, const struct pipe_blend_state *cso) fd5_blend_state_create() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_blend.c63 const struct pipe_blend_state *cso = &blend->base; in __fd6_setup_blend_variant() local
69 if (cso->logicop_enable) { in __fd6_setup_blend_variant()
70 rop = cso->logicop_func; /* maps 1:1 */ in __fd6_setup_blend_variant()
71 reads_dest = util_logicop_reads_dest(cso->logicop_func); in __fd6_setup_blend_variant()
82 for (unsigned i = 0; i <= cso->max_rt; i++) { in __fd6_setup_blend_variant()
85 if (cso->independent_blend_enable) in __fd6_setup_blend_variant()
86 rt = &cso->rt[i]; in __fd6_setup_blend_variant()
88 rt = &cso->rt[0]; in __fd6_setup_blend_variant()
100 .rop_enable = cso->logicop_enable, in __fd6_setup_blend_variant()
117 .dither_mode_mrt0 = cso in __fd6_setup_blend_variant()
149 fd6_blend_state_create(struct pipe_context *pctx, const struct pipe_blend_state *cso) fd6_blend_state_create() argument
[all...]
H A Dfd6_rasterizer.c38 const struct pipe_rasterizer_state *cso, in __fd6_setup_rasterizer_stateobj()
44 if (cso->point_size_per_vertex) { in __fd6_setup_rasterizer_stateobj()
45 psize_min = util_get_min_point_size(cso); in __fd6_setup_rasterizer_stateobj()
49 psize_min = cso->point_size; in __fd6_setup_rasterizer_stateobj()
50 psize_max = cso->point_size; in __fd6_setup_rasterizer_stateobj()
53 OUT_REG(ring, A6XX_GRAS_CL_CNTL(.znear_clip_disable = !cso->depth_clip_near, in __fd6_setup_rasterizer_stateobj()
54 .zfar_clip_disable = !cso->depth_clip_far, in __fd6_setup_rasterizer_stateobj()
55 .unk5 = !cso->depth_clip_near || in __fd6_setup_rasterizer_stateobj()
56 !cso->depth_clip_far, in __fd6_setup_rasterizer_stateobj()
58 .zero_gb_scale_z = cso in __fd6_setup_rasterizer_stateobj()
37 __fd6_setup_rasterizer_stateobj(struct fd_context *ctx, const struct pipe_rasterizer_state *cso, bool primitive_restart) __fd6_setup_rasterizer_stateobj() argument
107 fd6_rasterizer_state_create(struct pipe_context *pctx, const struct pipe_rasterizer_state *cso) fd6_rasterizer_state_create() argument
[all...]
H A Dfd6_texture.c91 const struct pipe_sampler_state *cso) in fd6_sampler_state_create()
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 in fd6_sampler_state_create()
90 fd6_sampler_state_create(struct pipe_context *pctx, const struct pipe_sampler_state *cso) fd6_sampler_state_create() argument
159 fd6_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, const struct pipe_sampler_view *cso) fd6_sampler_view_create() argument
211 const struct pipe_sampler_view *cso = &so->base; fd6_sampler_view_update() local
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
H A Dfd4_rasterizer.c37 const struct pipe_rasterizer_state *cso) in fd4_rasterizer_state_create()
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()
58 if (cso->line_stipple_enable) { in fd4_rasterizer_state_create()
61 TODO cso->half_pixel_center in fd4_rasterizer_state_create()
62 if (cso->multisample) in fd4_rasterizer_state_create()
68 so->gras_su_point_size = A4XX_GRAS_SU_POINT_SIZE(cso in fd4_rasterizer_state_create()
36 fd4_rasterizer_state_create(struct pipe_context *pctx, const struct pipe_rasterizer_state *cso) fd4_rasterizer_state_create() argument
[all...]
H A Dfd4_texture.c79 const struct pipe_sampler_state *cso) in fd4_sampler_state_create()
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_LOD_BIAS(cso->lod_bias) | in fd4_sampler_state_create()
100 A4XX_TEX_SAMP_0_WRAP_S(tex_clamp(cso->wrap_s, &so->needs_border)) | in fd4_sampler_state_create()
101 A4XX_TEX_SAMP_0_WRAP_T(tex_clamp(cso->wrap_t, &so->needs_border)) | in fd4_sampler_state_create()
102 A4XX_TEX_SAMP_0_WRAP_R(tex_clamp(cso in fd4_sampler_state_create()
78 fd4_sampler_state_create(struct pipe_context *pctx, const struct pipe_sampler_state *cso) fd4_sampler_state_create() argument
136 fd4_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, const struct pipe_sampler_view *cso) fd4_sampler_view_create() argument
[all...]
H A Dfd4_zsa.c37 const struct pipe_depth_stencil_alpha_state *cso) in fd4_zsa_state_create()
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 in fd4_zsa_state_create()
36 fd4_zsa_state_create(struct pipe_context *pctx, const struct pipe_depth_stencil_alpha_state *cso) fd4_zsa_state_create() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
H A Dfd3_rasterizer.c37 const struct pipe_rasterizer_state *cso) in fd3_rasterizer_state_create()
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()
58 if (cso->line_stipple_enable) { in fd3_rasterizer_state_create()
61 TODO cso->half_pixel_center in fd3_rasterizer_state_create()
62 if (cso->multisample) in fd3_rasterizer_state_create()
66 COND(cso in fd3_rasterizer_state_create()
36 fd3_rasterizer_state_create(struct pipe_context *pctx, const struct pipe_rasterizer_state *cso) fd3_rasterizer_state_create() argument
[all...]
H A Dfd3_texture.c79 const struct pipe_sampler_state *cso) in fd3_sampler_state_create()
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 in fd3_sampler_state_create()
78 fd3_sampler_state_create(struct pipe_context *pctx, const struct pipe_sampler_state *cso) fd3_sampler_state_create() argument
149 fd3_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, const struct pipe_sampler_view *cso) fd3_sampler_view_create() argument
[all...]
H A Dfd3_zsa.c37 const struct pipe_depth_stencil_alpha_state *cso) in fd3_zsa_state_create()
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 in fd3_zsa_state_create()
36 fd3_zsa_state_create(struct pipe_context *pctx, const struct pipe_depth_stencil_alpha_state *cso) fd3_zsa_state_create() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_state.c95 const struct pipe_rasterizer_state *cso) in vc4_create_rasterizer_state()
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 in vc4_create_rasterizer_state()
94 vc4_create_rasterizer_state(struct pipe_context *pctx, const struct pipe_rasterizer_state *cso) vc4_create_rasterizer_state() argument
156 vc4_create_blend_state(struct pipe_context *pctx, const struct pipe_blend_state *cso) vc4_create_blend_state() argument
207 vc4_create_depth_stencil_alpha_state(struct pipe_context *pctx, const struct pipe_depth_stencil_alpha_state *cso) vc4_create_depth_stencil_alpha_state() argument
419 struct pipe_framebuffer_state *cso = &vc4->framebuffer; vc4_set_framebuffer_state() local
487 vc4_create_sampler_state(struct pipe_context *pctx, const struct pipe_sampler_state *cso) vc4_create_sampler_state() argument
552 vc4_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc, const struct pipe_sampler_view *cso) vc4_create_sampler_view() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/v3d/
H A Dv3dx_state.c89 const struct pipe_rasterizer_state *cso) in v3d_create_rasterizer_state()
97 so->base = *cso; in v3d_create_rasterizer_state()
102 so->point_size = MAX2(cso->point_size, .125f); in v3d_create_rasterizer_state()
107 depth.depth_offset_factor = cso->offset_scale; in v3d_create_rasterizer_state()
108 depth.depth_offset_units = cso->offset_units; in v3d_create_rasterizer_state()
110 depth.limit = cso->offset_clamp; in v3d_create_rasterizer_state()
118 depth.depth_offset_factor = cso->offset_scale; in v3d_create_rasterizer_state()
119 depth.depth_offset_units = cso->offset_units * 256.0; in v3d_create_rasterizer_state()
121 depth.limit = cso->offset_clamp; in v3d_create_rasterizer_state()
131 const struct pipe_blend_state *cso) in v3d_create_blend_state()
88 v3d_create_rasterizer_state(struct pipe_context *pctx, const struct pipe_rasterizer_state *cso) v3d_create_rasterizer_state() argument
130 v3d_create_blend_state(struct pipe_context *pctx, const struct pipe_blend_state *cso) v3d_create_blend_state() argument
174 v3d_create_depth_stencil_alpha_state(struct pipe_context *pctx, const struct pipe_depth_stencil_alpha_state *cso) v3d_create_depth_stencil_alpha_state() argument
487 struct pipe_framebuffer_state *cso = &v3d->framebuffer; v3d_set_framebuffer_state() local
539 v3d_upload_sampler_state_variant(void *map, const struct pipe_sampler_state *cso, enum v3d_sampler_state_variant variant) v3d_upload_sampler_state_variant() argument
722 v3d_create_sampler_state(struct pipe_context *pctx, const struct pipe_sampler_state *cso) v3d_create_sampler_state() argument
940 const struct pipe_sampler_view *cso = &so->base; create_texture_shader_state_bo() local
1034 v3d_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc, const struct pipe_sampler_view *cso) v3d_create_sampler_view() argument
[all...]
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/
H A 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,
127 void cso_set_framebuffer(struct cso_context *cso,
131 void cso_set_viewport(struct cso_context *cso,
[all...]
H A Dcso_context.c31 * Wrap the cso cache & hash mechanisms in a simplified
126 struct pipe_context *cso_get_pipe_context(struct cso_context *cso) in cso_get_pipe_context() argument
128 return cso->pipe; in cso_get_pipe_context()
205 void *cso = cso_hash_iter_data(iter); in sanitize_hash() local
207 if (!cso) in sanitize_hash()
210 if (delete_cso(ctx, cso, type)) { in sanitize_hash()
229 static void cso_init_vbuf(struct cso_context *cso, unsigned flags) in cso_init_vbuf() argument
235 u_vbuf_get_caps(cso->pipe->screen, &caps, needs64b); in cso_init_vbuf()
241 cso->vbuf = u_vbuf_create(cso in cso_init_vbuf()
453 struct cso_blend *cso = MALLOC(sizeof(struct cso_blend)); cso_set_blend() local
512 struct cso_depth_stencil_alpha *cso = cso_set_depth_stencil_alpha() local
579 struct cso_rasterizer *cso = MALLOC(sizeof(struct cso_rasterizer)); cso_set_rasterizer() local
1048 struct cso_velements *cso = MALLOC(sizeof(struct cso_velements)); cso_set_vertex_elements_direct() local
1221 struct cso_sampler *cso; set_sampler() local
1251 struct cso_sampler *cso = set_sampler(ctx, shader_stage, idx, templ, size); cso_set_sampler() local
1474 cso_save_state(struct cso_context *cso, unsigned state_mask) cso_save_state() argument
1523 cso_restore_state(struct cso_context *cso, unsigned unbind) cso_restore_state() argument
1588 cso_save_compute_state(struct cso_context *cso, unsigned state_mask) cso_save_compute_state() argument
1606 cso_restore_compute_state(struct cso_context *cso) cso_restore_compute_state() argument
1626 cso_draw_vbo(struct cso_context *cso, const struct pipe_draw_info *info, unsigned drawid_offset, const struct pipe_draw_indirect_info *indirect, const struct pipe_draw_start_count_bias draw) cso_draw_vbo() argument
1654 cso_multi_draw(struct cso_context *cso, struct pipe_draw_info *info, unsigned drawid_offset, const struct pipe_draw_start_count_bias *draws, unsigned num_draws) cso_multi_draw() argument
1672 cso_draw_arrays(struct cso_context *cso, uint mode, uint start, uint count) cso_draw_arrays() argument
1692 cso_draw_arrays_instanced(struct cso_context *cso, uint mode, uint start, uint count, uint start_instance, uint instance_count) cso_draw_arrays_instanced() argument
[all...]
/third_party/mesa3d/src/gallium/auxiliary/util/
H A 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, in util_set_max_viewport()
138 util_set_interleaved_vertex_elements(struct cso_context *cso, unsigned num_elements) util_set_interleaved_vertex_elements() argument
155 util_set_passthrough_vertex_shader(struct cso_context *cso, struct pipe_context *ctx, bool window_space) util_set_passthrough_vertex_shader() argument
173 util_set_common_states_and_clear(struct cso_context *cso, struct pipe_context *ctx, struct pipe_resource *cb) util_set_common_states_and_clear() argument
188 util_draw_fullscreen_quad(struct cso_context *cso) util_draw_fullscreen_quad() argument
201 util_draw_fullscreen_quad_fill(struct cso_context *cso, float r, float g, float b, float a) util_draw_fullscreen_quad_fill() argument
318 struct cso_context *cso; tgsi_vs_window_space_position() local
371 struct cso_context *cso; null_sampler_view() local
427 struct cso_context *cso; util_test_constant_buffer() local
482 struct cso_context *cso; disabled_fragment_shader() local
537 struct cso_context *cso = cso_create_context(ctx, 0); test_sync_file_fences() local
627 struct cso_context *cso; test_texture_barrier() local
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
H A Dnvc0_state.c91 const struct pipe_blend_state *cso) in nvc0_blend_state_create()
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 in nvc0_blend_state_create()
90 nvc0_blend_state_create(struct pipe_context *pipe, const struct pipe_blend_state *cso) nvc0_blend_state_create() argument
212 nvc0_rasterizer_state_create(struct pipe_context *pipe, const struct pipe_rasterizer_state *cso) nvc0_rasterizer_state_create() argument
363 nvc0_zsa_state_create(struct pipe_context *pipe, const struct pipe_depth_stencil_alpha_state *cso) nvc0_zsa_state_create() argument
599 nvc0_sp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso, unsigned type) nvc0_sp_state_create() argument
650 nvc0_vp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) nvc0_vp_state_create() argument
666 nvc0_fp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) nvc0_fp_state_create() argument
682 nvc0_gp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) nvc0_gp_state_create() argument
698 nvc0_tcp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) nvc0_tcp_state_create() argument
714 nvc0_tep_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) nvc0_tep_state_create() argument
730 nvc0_cp_state_create(struct pipe_context *pipe, const struct pipe_compute_state *cso) nvc0_cp_state_create() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
H A Dnv50_state.c118 const struct pipe_blend_state *cso) in nv50_blend_state_create()
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 in nv50_blend_state_create()
117 nv50_blend_state_create(struct pipe_context *pipe, const struct pipe_blend_state *cso) nv50_blend_state_create() argument
225 nv50_rasterizer_state_create(struct pipe_context *pipe, const struct pipe_rasterizer_state *cso) nv50_rasterizer_state_create() argument
361 nv50_zsa_state_create(struct pipe_context *pipe, const struct pipe_depth_stencil_alpha_state *cso) nv50_zsa_state_create() argument
484 nv50_sampler_state_create(struct pipe_context *pipe, const struct pipe_sampler_state *cso) nv50_sampler_state_create() argument
738 nv50_sp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso, enum pipe_shader_type type) nv50_sp_state_create() argument
789 nv50_vp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) nv50_vp_state_create() argument
805 nv50_fp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) nv50_fp_state_create() argument
821 nv50_gp_state_create(struct pipe_context *pipe, const struct pipe_shader_state *cso) nv50_gp_state_create() argument
837 nv50_cp_state_create(struct pipe_context *pipe, const struct pipe_compute_state *cso) nv50_cp_state_create() argument
[all...]

Completed in 11 milliseconds

123456