Lines Matching defs:so
9 * Software is furnished to do so, subject to the following conditions:
39 const struct pipe_depth_stencil_alpha_state *so)
48 cs->base = *so;
50 cs->z_test_enabled = so->depth_enabled && so->depth_func != PIPE_FUNC_ALWAYS;
51 cs->z_write_enabled = so->depth_enabled && so->depth_writemask;
63 if(so->stencil[i].writemask == 0)
65 so->stencil[i].fail_op = so->stencil[i].zfail_op = so->stencil[i].zpass_op = PIPE_STENCIL_OP_KEEP;
72 if (so->stencil[0].enabled) {
73 if (so->stencil[0].func != PIPE_FUNC_ALWAYS ||
74 (so->stencil[1].enabled && so->stencil[1].func != PIPE_FUNC_ALWAYS))
77 if (so->stencil[0].fail_op != PIPE_STENCIL_OP_KEEP ||
78 so->stencil[0].zfail_op != PIPE_STENCIL_OP_KEEP ||
79 so->stencil[0].zpass_op != PIPE_STENCIL_OP_KEEP) {
82 } else if (so->stencil[1].enabled) {
83 if (so->stencil[1].fail_op != PIPE_STENCIL_OP_KEEP ||
84 so->stencil[1].zfail_op != PIPE_STENCIL_OP_KEEP ||
85 so->stencil[1].zpass_op != PIPE_STENCIL_OP_KEEP) {
96 extra_reference = _mesa_float_to_half(SATURATE(so->alpha_ref_value));
102 COND(so->alpha_enabled, VIVS_PE_ALPHA_OP_ALPHA_TEST) |
103 VIVS_PE_ALPHA_OP_ALPHA_FUNC(so->alpha_func) |
104 VIVS_PE_ALPHA_OP_ALPHA_REF(etna_cfloat_to_uint8(so->alpha_ref_value));
107 const struct pipe_stencil_state *stencil_front = (so->stencil[1].enabled && so->stencil[1].valuemask) ? &so->stencil[i] : &so->stencil[0];
108 const struct pipe_stencil_state *stencil_back = (so->stencil[1].enabled && so->stencil[1].valuemask) ? &so->stencil[!i] : &so->stencil[0];
119 translate_stencil_mode(so->stencil[0].enabled, so->stencil[0].enabled) |