Lines Matching refs:Stencil
115 ctx->Stencil.Clear = (GLuint) s; in _mesa_ClearStencil()
153 if (ctx->Stencil.Function[0] == frontfunc && in _mesa_StencilFuncSeparateATI()
154 ctx->Stencil.Function[1] == backfunc && in _mesa_StencilFuncSeparateATI()
155 ctx->Stencil.ValueMask[0] == mask && in _mesa_StencilFuncSeparateATI()
156 ctx->Stencil.ValueMask[1] == mask && in _mesa_StencilFuncSeparateATI()
157 ctx->Stencil.Ref[0] == ref && in _mesa_StencilFuncSeparateATI()
158 ctx->Stencil.Ref[1] == ref) in _mesa_StencilFuncSeparateATI()
162 ctx->Stencil.Function[0] = frontfunc; in _mesa_StencilFuncSeparateATI()
163 ctx->Stencil.Function[1] = backfunc; in _mesa_StencilFuncSeparateATI()
164 ctx->Stencil.Ref[0] = ctx->Stencil.Ref[1] = ref; in _mesa_StencilFuncSeparateATI()
165 ctx->Stencil.ValueMask[0] = ctx->Stencil.ValueMask[1] = mask; in _mesa_StencilFuncSeparateATI()
191 const GLint face = ctx->Stencil.ActiveFace; in stencil_func()
194 if (ctx->Stencil.Function[face] == func && in stencil_func()
195 ctx->Stencil.ValueMask[face] == mask && in stencil_func()
196 ctx->Stencil.Ref[face] == ref) in stencil_func()
200 ctx->Stencil.Function[face] = func; in stencil_func()
201 ctx->Stencil.Ref[face] = ref; in stencil_func()
202 ctx->Stencil.ValueMask[face] = mask; in stencil_func()
207 if (ctx->Driver.StencilFuncSeparate && ctx->Stencil.TestTwoSide) { in stencil_func()
213 if (ctx->Stencil.Function[0] == func && in stencil_func()
214 ctx->Stencil.Function[1] == func && in stencil_func()
215 ctx->Stencil.ValueMask[0] == mask && in stencil_func()
216 ctx->Stencil.ValueMask[1] == mask && in stencil_func()
217 ctx->Stencil.Ref[0] == ref && in stencil_func()
218 ctx->Stencil.Ref[1] == ref) in stencil_func()
222 ctx->Stencil.Function[0] = ctx->Stencil.Function[1] = func; in stencil_func()
223 ctx->Stencil.Ref[0] = ctx->Stencil.Ref[1] = ref; in stencil_func()
224 ctx->Stencil.ValueMask[0] = ctx->Stencil.ValueMask[1] = mask; in stencil_func()
227 ((ctx->Stencil.TestTwoSide) in stencil_func()
275 const GLint face = ctx->Stencil.ActiveFace; in _mesa_StencilMask()
283 if (ctx->Stencil.WriteMask[face] == mask) in _mesa_StencilMask()
287 ctx->Stencil.WriteMask[face] = mask; in _mesa_StencilMask()
292 if (ctx->Driver.StencilMaskSeparate && ctx->Stencil.TestTwoSide) { in _mesa_StencilMask()
298 if (ctx->Stencil.WriteMask[0] == mask && in _mesa_StencilMask()
299 ctx->Stencil.WriteMask[1] == mask) in _mesa_StencilMask()
303 ctx->Stencil.WriteMask[0] = ctx->Stencil.WriteMask[1] = mask; in _mesa_StencilMask()
306 ((ctx->Stencil.TestTwoSide) in _mesa_StencilMask()
331 const GLint face = ctx->Stencil.ActiveFace; in stencil_op()
335 if (ctx->Stencil.ZFailFunc[face] == zfail && in stencil_op()
336 ctx->Stencil.ZPassFunc[face] == zpass && in stencil_op()
337 ctx->Stencil.FailFunc[face] == fail) in stencil_op()
341 ctx->Stencil.ZFailFunc[face] = zfail; in stencil_op()
342 ctx->Stencil.ZPassFunc[face] = zpass; in stencil_op()
343 ctx->Stencil.FailFunc[face] = fail; in stencil_op()
348 if (ctx->Driver.StencilOpSeparate && ctx->Stencil.TestTwoSide) { in stencil_op()
354 if (ctx->Stencil.ZFailFunc[0] == zfail && in stencil_op()
355 ctx->Stencil.ZFailFunc[1] == zfail && in stencil_op()
356 ctx->Stencil.ZPassFunc[0] == zpass && in stencil_op()
357 ctx->Stencil.ZPassFunc[1] == zpass && in stencil_op()
358 ctx->Stencil.FailFunc[0] == fail && in stencil_op()
359 ctx->Stencil.FailFunc[1] == fail) in stencil_op()
363 ctx->Stencil.ZFailFunc[0] = ctx->Stencil.ZFailFunc[1] = zfail; in stencil_op()
364 ctx->Stencil.ZPassFunc[0] = ctx->Stencil.ZPassFunc[1] = zpass; in stencil_op()
365 ctx->Stencil.FailFunc[0] = ctx->Stencil.FailFunc[1] = fail; in stencil_op()
368 ((ctx->Stencil.TestTwoSide) in stencil_op()
426 ctx->Stencil.ActiveFace = (face == GL_FRONT) ? 0 : 2; in _mesa_ActiveStencilFaceEXT()
442 if (ctx->Stencil.ZFailFunc[0] != zfail || in stencil_op_separate()
443 ctx->Stencil.ZPassFunc[0] != zpass || in stencil_op_separate()
444 ctx->Stencil.FailFunc[0] != sfail){ in stencil_op_separate()
447 ctx->Stencil.ZFailFunc[0] = zfail; in stencil_op_separate()
448 ctx->Stencil.ZPassFunc[0] = zpass; in stencil_op_separate()
449 ctx->Stencil.FailFunc[0] = sfail; in stencil_op_separate()
456 if (ctx->Stencil.ZFailFunc[1] != zfail || in stencil_op_separate()
457 ctx->Stencil.ZPassFunc[1] != zpass || in stencil_op_separate()
458 ctx->Stencil.FailFunc[1] != sfail) { in stencil_op_separate()
461 ctx->Stencil.ZFailFunc[1] = zfail; in stencil_op_separate()
462 ctx->Stencil.ZPassFunc[1] = zpass; in stencil_op_separate()
463 ctx->Stencil.FailFunc[1] = sfail; in stencil_op_separate()
524 ctx->Stencil.Function[0] = func; in stencil_func_separate()
525 ctx->Stencil.Ref[0] = ref; in stencil_func_separate()
526 ctx->Stencil.ValueMask[0] = mask; in stencil_func_separate()
531 ctx->Stencil.Function[1] = func; in stencil_func_separate()
532 ctx->Stencil.Ref[1] = ref; in stencil_func_separate()
533 ctx->Stencil.ValueMask[1] = mask; in stencil_func_separate()
581 ctx->Stencil.WriteMask[0] = mask; in stencil_mask_separate()
585 ctx->Stencil.WriteMask[1] = mask; in stencil_mask_separate()
630 ctx->Stencil.Enabled = GL_FALSE; in _mesa_init_stencil()
631 ctx->Stencil.TestTwoSide = GL_FALSE; in _mesa_init_stencil()
632 ctx->Stencil.ActiveFace = 0; /* 0 = GL_FRONT, 2 = GL_BACK */ in _mesa_init_stencil()
633 ctx->Stencil.Function[0] = GL_ALWAYS; in _mesa_init_stencil()
634 ctx->Stencil.Function[1] = GL_ALWAYS; in _mesa_init_stencil()
635 ctx->Stencil.Function[2] = GL_ALWAYS; in _mesa_init_stencil()
636 ctx->Stencil.FailFunc[0] = GL_KEEP; in _mesa_init_stencil()
637 ctx->Stencil.FailFunc[1] = GL_KEEP; in _mesa_init_stencil()
638 ctx->Stencil.FailFunc[2] = GL_KEEP; in _mesa_init_stencil()
639 ctx->Stencil.ZPassFunc[0] = GL_KEEP; in _mesa_init_stencil()
640 ctx->Stencil.ZPassFunc[1] = GL_KEEP; in _mesa_init_stencil()
641 ctx->Stencil.ZPassFunc[2] = GL_KEEP; in _mesa_init_stencil()
642 ctx->Stencil.ZFailFunc[0] = GL_KEEP; in _mesa_init_stencil()
643 ctx->Stencil.ZFailFunc[1] = GL_KEEP; in _mesa_init_stencil()
644 ctx->Stencil.ZFailFunc[2] = GL_KEEP; in _mesa_init_stencil()
645 ctx->Stencil.Ref[0] = 0; in _mesa_init_stencil()
646 ctx->Stencil.Ref[1] = 0; in _mesa_init_stencil()
647 ctx->Stencil.Ref[2] = 0; in _mesa_init_stencil()
659 ctx->Stencil.ValueMask[0] = 0xFF; in _mesa_init_stencil()
660 ctx->Stencil.ValueMask[1] = 0xFF; in _mesa_init_stencil()
661 ctx->Stencil.ValueMask[2] = 0xFF; in _mesa_init_stencil()
662 ctx->Stencil.WriteMask[0] = 0xFF; in _mesa_init_stencil()
663 ctx->Stencil.WriteMask[1] = 0xFF; in _mesa_init_stencil()
664 ctx->Stencil.WriteMask[2] = 0xFF; in _mesa_init_stencil()
666 ctx->Stencil.Clear = 0; in _mesa_init_stencil()
667 ctx->Stencil._BackFace = 1; in _mesa_init_stencil()