Home | History | Annotate | Download | only in state_tracker

Lines Matching refs:dsa

98    struct pipe_depth_stencil_alpha_state *dsa = &st->state.depth_stencil;
102 memset(dsa, 0, sizeof(*dsa));
106 dsa->depth.enabled = 1;
107 dsa->depth.writemask = ctx->Depth.Mask;
108 dsa->depth.func = st_compare_func_to_pipe(ctx->Depth.Func);
112 dsa->stencil[0].enabled = 1;
113 dsa->stencil[0].func = st_compare_func_to_pipe(ctx->Stencil.Function[0]);
114 dsa->stencil[0].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[0]);
115 dsa->stencil[0].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[0]);
116 dsa->stencil[0].zpass_op = gl_stencil_op_to_pipe(ctx->Stencil.ZPassFunc[0]);
117 dsa->stencil[0].valuemask = ctx->Stencil.ValueMask[0] & 0xff;
118 dsa->stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff;
123 dsa->stencil[1].enabled = 1;
124 dsa->stencil[1].func = st_compare_func_to_pipe(ctx->Stencil.Function[back]);
125 dsa->stencil[1].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[back]);
126 dsa->stencil[1].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[back]);
127 dsa->stencil[1].zpass_op = gl_stencil_op_to_pipe(ctx->Stencil.ZPassFunc[back]);
128 dsa->stencil[1].valuemask = ctx->Stencil.ValueMask[back] & 0xff;
129 dsa->stencil[1].writemask = ctx->Stencil.WriteMask[back] & 0xff;
136 dsa->stencil[1] = dsa->stencil[0];
137 dsa->stencil[1].enabled = 0;
143 dsa->alpha.enabled = 1;
144 dsa->alpha.func = st_compare_func_to_pipe(ctx->Color.AlphaFunc);
145 dsa->alpha.ref_value = ctx->Color.AlphaRefUnclamped;
148 cso_set_depth_stencil_alpha(st->cso_context, dsa);