Lines Matching refs:stencil
67 * Convert GLenum stencil op tokens to pipe tokens.
111 if (ctx->Stencil.Enabled && ctx->DrawBuffer->Visual.stencilBits > 0) {
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;
119 sr.ref_value[0] = ctx->Stencil.Ref[0] & 0xff;
121 if (ctx->Stencil._TestTwoSide) {
122 const GLuint back = ctx->Stencil._BackFace;
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;
130 sr.ref_value[1] = ctx->Stencil.Ref[back] & 0xff;
136 dsa->stencil[1] = dsa->stencil[0];
137 dsa->stencil[1].enabled = 0;