HomeSort by relevance Sort by last modified time
    Searched refs:cso (Results 1 - 25 of 123) sorted by null

1 2 3 4 5

  /external/mesa3d/src/gallium/drivers/freedreno/a3xx/
fd3_rasterizer.c 40 const struct pipe_rasterizer_state *cso)
49 so->base = *cso;
51 if (cso->point_size_per_vertex) {
52 psize_min = util_get_min_point_size(cso);
56 psize_min = cso->point_size;
57 psize_max = cso->point_size;
61 if (cso->line_stipple_enable) {
64 TODO cso->half_pixel_center
65 if (cso->multisample)
69 COND(cso->clip_halfz, A3XX_GRAS_CL_CLIP_CNTL_ZERO_GB_SCALE_Z)
    [all...]
fd3_zsa.c 40 const struct pipe_depth_stencil_alpha_state *cso)
48 so->base = *cso;
51 A3XX_RB_DEPTH_CONTROL_ZFUNC(cso->depth.func); /* maps 1:1 */
53 if (cso->depth.enabled)
58 if (cso->depth.writemask)
61 if (cso->stencil[0].enabled) {
62 const struct pipe_stencil_state *s = &cso->stencil[0];
76 if (cso->stencil[1].enabled) {
77 const struct pipe_stencil_state *bs = &cso->stencil[1];
92 if (cso->alpha.enabled)
    [all...]
fd3_texture.c 87 const struct pipe_sampler_state *cso)
90 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8));
97 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR)
100 so->base = *cso;
110 clamp_to_edge = (cso->min_img_filter == PIPE_TEX_FILTER_NEAREST);
112 so->saturate_s = (cso->wrap_s == PIPE_TEX_WRAP_CLAMP);
113 so->saturate_t = (cso->wrap_t == PIPE_TEX_WRAP_CLAMP);
114 so->saturate_r = (cso->wrap_r == PIPE_TEX_WRAP_CLAMP);
119 COND(!cso->normalized_coords, A3XX_TEX_SAMP_0_UNNORM_COORDS) |
120 COND(!cso->seamless_cube_map, A3XX_TEX_SAMP_0_CUBEMAPSEAMLESSFILTOFF)
    [all...]
fd3_blend.c 62 const struct pipe_blend_state *cso)
69 if (cso->logicop_enable) {
70 rop = cso->logicop_func; /* maps 1:1 */
72 switch (cso->logicop_func) {
94 so->base = *cso;
98 if (cso->independent_blend_enable)
99 rt = &cso->rt[i];
101 rt = &cso->rt[0];
131 if (cso->dither)
135 if (cso->rt[0].blend_enable && util_blend_state_is_dual(cso, 0)
    [all...]
  /external/mesa3d/src/gallium/drivers/freedreno/a4xx/
fd4_rasterizer.c 40 const struct pipe_rasterizer_state *cso)
49 so->base = *cso;
51 if (cso->point_size_per_vertex) {
52 psize_min = util_get_min_point_size(cso);
56 psize_min = cso->point_size;
57 psize_max = cso->point_size;
61 if (cso->line_stipple_enable) {
64 TODO cso->half_pixel_center
65 if (cso->multisample)
72 so->gras_su_point_size = A4XX_GRAS_SU_POINT_SIZE(cso->point_size)
    [all...]
fd4_zsa.c 40 const struct pipe_depth_stencil_alpha_state *cso)
48 so->base = *cso;
51 A4XX_RB_DEPTH_CONTROL_ZFUNC(cso->depth.func); /* maps 1:1 */
53 if (cso->depth.enabled)
58 if (cso->depth.writemask)
61 if (cso->stencil[0].enabled) {
62 const struct pipe_stencil_state *s = &cso->stencil[0];
78 if (cso->stencil[1].enabled) {
79 const struct pipe_stencil_state *bs = &cso->stencil[1];
94 if (cso->alpha.enabled)
    [all...]
fd4_texture.c 87 const struct pipe_sampler_state *cso)
90 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8));
97 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR)
100 so->base = *cso;
110 clamp_to_edge = (cso->min_img_filter == PIPE_TEX_FILTER_NEAREST);
112 so->saturate_s = (cso->wrap_s == PIPE_TEX_WRAP_CLAMP);
113 so->saturate_t = (cso->wrap_t == PIPE_TEX_WRAP_CLAMP);
114 so->saturate_r = (cso->wrap_r == PIPE_TEX_WRAP_CLAMP);
120 A4XX_TEX_SAMP_0_XY_MAG(tex_filter(cso->mag_img_filter, aniso)) |
121 A4XX_TEX_SAMP_0_XY_MIN(tex_filter(cso->min_img_filter, aniso))
    [all...]
fd4_blend.c 60 const struct pipe_blend_state *cso)
67 if (cso->logicop_enable) {
68 rop = cso->logicop_func; /* maps 1:1 */
70 switch (cso->logicop_func) {
92 so->base = *cso;
97 if (cso->independent_blend_enable)
98 rt = &cso->rt[i];
100 rt = &cso->rt[0];
120 COND(cso->logicop_enable, A4XX_RB_MRT_CONTROL_ROP_ENABLE) |
136 if (cso->dither
    [all...]
  /external/mesa3d/src/gallium/drivers/freedreno/a2xx/
fd2_rasterizer.c 41 const struct pipe_rasterizer_state *cso)
50 if (cso->point_size_per_vertex) {
51 psize_min = util_get_min_point_size(cso);
55 psize_min = cso->point_size;
56 psize_max = cso->point_size;
59 so->base = *cso;
61 so->pa_sc_line_stipple = cso->line_stipple_enable ?
62 A2XX_PA_SC_LINE_STIPPLE_LINE_PATTERN(cso->line_stipple_pattern) |
63 A2XX_PA_SC_LINE_STIPPLE_REPEAT_COUNT(cso->line_stipple_factor) : 0;
68 A2XX_PA_SU_VTX_CNTL_PIX_CENTER(cso->half_pixel_center ? PIXCENTER_OGL : PIXCENTER_D3D)
    [all...]
fd2_zsa.c 40 const struct pipe_depth_stencil_alpha_state *cso)
48 so->base = *cso;
51 A2XX_RB_DEPTHCONTROL_ZFUNC(cso->depth.func); /* maps 1:1 */
53 if (cso->depth.enabled)
55 if (cso->depth.writemask)
58 if (cso->stencil[0].enabled) {
59 const struct pipe_stencil_state *s = &cso->stencil[0];
72 if (cso->stencil[1].enabled) {
73 const struct pipe_stencil_state *bs = &cso->stencil[1];
88 if (cso->alpha.enabled)
    [all...]
fd2_texture.c 79 const struct pipe_sampler_state *cso)
86 so->base = *cso;
90 A2XX_SQ_TEX_0_CLAMP_X(tex_clamp(cso->wrap_s)) |
91 A2XX_SQ_TEX_0_CLAMP_Y(tex_clamp(cso->wrap_t)) |
92 A2XX_SQ_TEX_0_CLAMP_Z(tex_clamp(cso->wrap_r));
95 A2XX_SQ_TEX_3_XY_MAG_FILTER(tex_filter(cso->mag_img_filter)) |
96 A2XX_SQ_TEX_3_XY_MIN_FILTER(tex_filter(cso->min_img_filter));
128 const struct pipe_sampler_view *cso)
136 so->base = *cso;
142 so->fmt = fd2_pipe2surface(cso->format)
    [all...]
fd2_blend.c 60 const struct pipe_blend_state *cso)
62 const struct pipe_rt_blend_state *rt = &cso->rt[0];
65 if (cso->logicop_enable) {
70 if (cso->independent_blend_enable) {
79 so->base = *cso;
103 if (cso->dither)
  /external/mesa3d/src/gallium/drivers/freedreno/a5xx/
fd5_rasterizer.c 38 const struct pipe_rasterizer_state *cso)
47 so->base = *cso;
49 if (cso->point_size_per_vertex) {
50 psize_min = util_get_min_point_size(cso);
54 psize_min = cso->point_size;
55 psize_max = cso->point_size;
62 so->gras_su_point_size = A5XX_GRAS_SU_POINT_SIZE(cso->point_size);
64 A5XX_GRAS_SU_POLY_OFFSET_SCALE(cso->offset_scale);
66 A5XX_GRAS_SU_POLY_OFFSET_OFFSET(cso->offset_units);
68 A5XX_GRAS_SU_POLY_OFFSET_OFFSET_CLAMP(cso->offset_clamp)
    [all...]
fd5_zsa.c 38 const struct pipe_depth_stencil_alpha_state *cso)
46 so->base = *cso;
49 A5XX_RB_DEPTH_CNTL_ZFUNC(cso->depth.func); /* maps 1:1 */
51 if (cso->depth.enabled)
56 if (cso->depth.writemask)
59 if (cso->stencil[0].enabled) {
60 const struct pipe_stencil_state *s = &cso->stencil[0];
73 if (cso->stencil[1].enabled) {
74 const struct pipe_stencil_state *bs = &cso->stencil[1];
88 if (cso->alpha.enabled)
    [all...]
fd5_texture.c 85 const struct pipe_sampler_state *cso)
88 unsigned aniso = util_last_bit(MIN2(cso->max_anisotropy >> 1, 8));
95 so->base = *cso;
97 if (cso->min_mip_filter == PIPE_TEX_MIPFILTER_LINEAR)
108 clamp_to_edge = (cso->min_img_filter == PIPE_TEX_FILTER_NEAREST);
110 so->saturate_s = (cso->wrap_s == PIPE_TEX_WRAP_CLAMP);
111 so->saturate_t = (cso->wrap_t == PIPE_TEX_WRAP_CLAMP);
112 so->saturate_r = (cso->wrap_r == PIPE_TEX_WRAP_CLAMP);
118 A5XX_TEX_SAMP_0_XY_MAG(tex_filter(cso->mag_img_filter, aniso)) |
119 A5XX_TEX_SAMP_0_XY_MIN(tex_filter(cso->min_img_filter, aniso))
    [all...]
fd5_blend.c 59 const struct pipe_blend_state *cso)
66 if (cso->logicop_enable) {
67 // rop = cso->logicop_func; /* maps 1:1 */
69 switch (cso->logicop_func) {
91 so->base = *cso;
96 if (cso->independent_blend_enable)
97 rt = &cso->rt[i];
99 rt = &cso->rt[0];
119 // COND(cso->logicop_enable, A5XX_RB_MRT_CONTROL_ROP_ENABLE) |
136 // if (cso->dither
    [all...]
  /external/mesa3d/src/gallium/auxiliary/cso_cache/
cso_context.h 45 void cso_destroy_context( struct cso_context *cso );
48 enum pipe_error cso_set_blend( struct cso_context *cso,
52 enum pipe_error cso_set_depth_stencil_alpha( struct cso_context *cso,
57 enum pipe_error cso_set_rasterizer( struct cso_context *cso,
62 cso_set_samplers(struct cso_context *cso,
72 cso_single_sampler(struct cso_context *cso, unsigned shader_stage,
76 cso_single_sampler_done(struct cso_context *cso,
100 * We don't provide shader caching in CSO. Most of the time the api provides
130 void cso_set_framebuffer(struct cso_context *cso,
134 void cso_set_viewport(struct cso_context *cso,
    [all...]
cso_cache.c 92 struct cso_blend *cso = (struct cso_blend *)state; local
93 if (cso->delete_state)
94 cso->delete_state(cso->context, cso->data);
100 struct cso_depth_stencil_alpha *cso = (struct cso_depth_stencil_alpha *)state; local
101 if (cso->delete_state)
102 cso->delete_state(cso->context, cso->data)
108 struct cso_sampler *cso = (struct cso_sampler *)state; local
116 struct cso_rasterizer *cso = (struct cso_rasterizer *)state; local
124 struct cso_velements *cso = (struct cso_velements *)state; local
179 void *cso = cso_hash_take(hash, cso_hash_iter_key(iter)); local
    [all...]
cso_context.c 31 * Wrap the cso cache & hash mechanisms in a simplified
130 struct cso_blend *cso = (struct cso_blend *)state; local
132 if (ctx->blend == cso->data)
135 if (cso->delete_state)
136 cso->delete_state(cso->context, cso->data);
143 struct cso_depth_stencil_alpha *cso = local
146 if (ctx->depth_stencil == cso->data)
149 if (cso->delete_state
158 struct cso_sampler *cso = (struct cso_sampler *)state; local
167 struct cso_rasterizer *cso = (struct cso_rasterizer *)state; local
180 struct cso_velements *cso = (struct cso_velements *)state; local
256 void *cso = cso_hash_iter_data(iter); local
462 struct cso_blend *cso = MALLOC(sizeof(struct cso_blend)); local
523 struct cso_depth_stencil_alpha *cso = local
588 struct cso_rasterizer *cso = MALLOC(sizeof(struct cso_rasterizer)); local
1069 struct cso_velements *cso = MALLOC(sizeof(struct cso_velements)); local
1211 struct cso_sampler *cso; local
    [all...]
  /external/mesa3d/src/gallium/drivers/nouveau/nv30/
nv30_state.c 40 const struct pipe_blend_state *cso)
50 so->pipe = *cso;
52 if (cso->logicop_enable) {
55 SB_DATA (so, nvgl_logicop_func(cso->logicop_func));
62 SB_DATA (so, cso->dither);
64 blend[0] = cso->rt[0].blend_enable;
65 cmask[0] = !!(cso->rt[0].colormask & PIPE_MASK_A) << 24 |
66 !!(cso->rt[0].colormask & PIPE_MASK_R) << 16 |
67 !!(cso->rt[0].colormask & PIPE_MASK_G) << 8 |
68 !!(cso->rt[0].colormask & PIPE_MASK_B)
    [all...]
  /external/mesa3d/src/gallium/auxiliary/util/
u_tests.c 66 util_set_framebuffer_cb0(struct cso_context *cso, struct pipe_context *ctx,
80 cso_set_framebuffer(cso, &fb);
85 util_set_blend_normal(struct cso_context *cso)
90 cso_set_blend(cso, &blend);
94 util_set_dsa_disable(struct cso_context *cso)
98 cso_set_depth_stencil_alpha(cso, &dsa);
102 util_set_rasterizer_normal(struct cso_context *cso)
110 cso_set_rasterizer(cso, &rs);
114 util_set_max_viewport(struct cso_context *cso, struct pipe_resource *tex)
125 cso_set_viewport(cso, &viewport)
295 struct cso_context *cso; local
348 struct cso_context *cso; local
403 struct cso_context *cso; local
458 struct cso_context *cso; local
    [all...]
u_draw_quad.h 45 util_draw_vertex_buffer(struct pipe_context *pipe, struct cso_context *cso,
51 util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer,
55 util_draw_texquad(struct pipe_context *pipe, struct cso_context *cso,
  /external/mesa3d/src/gallium/drivers/vc4/
vc4_state.c 94 const struct pipe_rasterizer_state *cso)
102 so->base = *cso;
104 if (!(cso->cull_face & PIPE_FACE_FRONT))
106 if (!(cso->cull_face & PIPE_FACE_BACK))
112 so->point_size = MAX2(cso->point_size, .125f);
114 if (cso->front_ccw)
117 if (cso->offset_tri) {
120 so->offset_units = float_to_187_half(cso->offset_units);
121 so->offset_factor = float_to_187_half(cso->offset_scale);
124 if (cso->multisample
409 struct pipe_framebuffer_state *cso = &vc4->framebuffer; local
    [all...]
  /external/mesa3d/src/gallium/drivers/nouveau/nv50/
nv50_state.c 117 const struct pipe_blend_state *cso)
121 bool emit_common_func = cso->rt[0].blend_enable;
126 SB_DATA (so, cso->independent_blend_enable);
129 so->pipe = *cso;
132 SB_DATA (so, !cso->independent_blend_enable);
135 SB_DATA (so, !cso->independent_blend_enable);
137 if (cso->independent_blend_enable) {
140 SB_DATA(so, cso->rt[i].blend_enable);
141 if (cso->rt[i].blend_enable)
149 if (!cso->rt[i].blend_enable
    [all...]
  /external/mesa3d/src/gallium/auxiliary/hud/
hud_context.h 37 hud_create(struct pipe_context *pipe, struct cso_context *cso);

Completed in 820 milliseconds

1 2 3 4 5