Lines Matching refs:Stencil
134 const GLubyte wrtmask = ctx->Stencil.WriteMask[face]; in apply_stencil_op()
219 const GLuint valueMask = ctx->Stencil.ValueMask[face]; in do_stencil_test()
232 switch (ctx->Stencil.Function[face]) { in do_stencil_test()
263 if (ctx->Stencil.FailFunc[face] != GL_KEEP) { in do_stencil_test()
264 apply_stencil_op(ctx, ctx->Stencil.FailFunc[face], face, n, stencil, in do_stencil_test()
358 const GLuint face = (span->facing == 0) ? 0 : ctx->Stencil._BackFace; in _swrast_stencil_and_ztest_span()
402 apply_stencil_op(ctx, ctx->Stencil.ZPassFunc[face], face, count, in _swrast_stencil_and_ztest_span()
423 if (ctx->Stencil.ZFailFunc[face] != GL_KEEP) { in _swrast_stencil_and_ztest_span()
424 apply_stencil_op(ctx, ctx->Stencil.ZFailFunc[face], face, in _swrast_stencil_and_ztest_span()
427 if (ctx->Stencil.ZPassFunc[face] != GL_KEEP) { in _swrast_stencil_and_ztest_span()
428 apply_stencil_op(ctx, ctx->Stencil.ZPassFunc[face], face, in _swrast_stencil_and_ztest_span()
502 const GLuint stencilMask = ctx->Stencil.WriteMask[0]; in _swrast_write_stencil_span()
556 const GLuint writeMask = ctx->Stencil.WriteMask[0]; in _swrast_clear_stencil_buffer()
592 GLubyte clear = ctx->Stencil.Clear & writeMask & 0xff; in _swrast_clear_stencil_buffer()
619 GLuint clear = (ctx->Stencil.Clear & writeMask & 0xff) << 24; in _swrast_clear_stencil_buffer()
632 GLuint clear = ctx->Stencil.Clear & writeMask & 0xff; in _swrast_clear_stencil_buffer()