• Home
  • Raw
  • Download

Lines Matching refs:Stencil

118    ctx->Stencil.Clear = (GLuint) s;  in _mesa_ClearStencil()
156 if (ctx->Stencil.Function[0] == frontfunc && in _mesa_StencilFuncSeparateATI()
157 ctx->Stencil.Function[1] == backfunc && in _mesa_StencilFuncSeparateATI()
158 ctx->Stencil.ValueMask[0] == mask && in _mesa_StencilFuncSeparateATI()
159 ctx->Stencil.ValueMask[1] == mask && in _mesa_StencilFuncSeparateATI()
160 ctx->Stencil.Ref[0] == ref && in _mesa_StencilFuncSeparateATI()
161 ctx->Stencil.Ref[1] == ref) in _mesa_StencilFuncSeparateATI()
165 ctx->Stencil.Function[0] = frontfunc; in _mesa_StencilFuncSeparateATI()
166 ctx->Stencil.Function[1] = backfunc; in _mesa_StencilFuncSeparateATI()
167 ctx->Stencil.Ref[0] = ctx->Stencil.Ref[1] = ref; in _mesa_StencilFuncSeparateATI()
168 ctx->Stencil.ValueMask[0] = ctx->Stencil.ValueMask[1] = mask; in _mesa_StencilFuncSeparateATI()
188 const GLint face = ctx->Stencil.ActiveFace; in stencil_func()
191 if (ctx->Stencil.Function[face] == func && in stencil_func()
192 ctx->Stencil.ValueMask[face] == mask && in stencil_func()
193 ctx->Stencil.Ref[face] == ref) in stencil_func()
197 ctx->Stencil.Function[face] = func; in stencil_func()
198 ctx->Stencil.Ref[face] = ref; in stencil_func()
199 ctx->Stencil.ValueMask[face] = mask; in stencil_func()
203 if (ctx->Stencil.Function[0] == func && in stencil_func()
204 ctx->Stencil.Function[1] == func && in stencil_func()
205 ctx->Stencil.ValueMask[0] == mask && in stencil_func()
206 ctx->Stencil.ValueMask[1] == mask && in stencil_func()
207 ctx->Stencil.Ref[0] == ref && in stencil_func()
208 ctx->Stencil.Ref[1] == ref) in stencil_func()
212 ctx->Stencil.Function[0] = ctx->Stencil.Function[1] = func; in stencil_func()
213 ctx->Stencil.Ref[0] = ctx->Stencil.Ref[1] = ref; in stencil_func()
214 ctx->Stencil.ValueMask[0] = ctx->Stencil.ValueMask[1] = mask; in stencil_func()
259 const GLint face = ctx->Stencil.ActiveFace; in _mesa_StencilMask()
267 if (ctx->Stencil.WriteMask[face] == mask) in _mesa_StencilMask()
271 ctx->Stencil.WriteMask[face] = mask; in _mesa_StencilMask()
275 if (ctx->Stencil.WriteMask[0] == mask && in _mesa_StencilMask()
276 ctx->Stencil.WriteMask[1] == mask) in _mesa_StencilMask()
280 ctx->Stencil.WriteMask[0] = ctx->Stencil.WriteMask[1] = mask; in _mesa_StencilMask()
302 const GLint face = ctx->Stencil.ActiveFace; in stencil_op()
306 if (ctx->Stencil.ZFailFunc[face] == zfail && in stencil_op()
307 ctx->Stencil.ZPassFunc[face] == zpass && in stencil_op()
308 ctx->Stencil.FailFunc[face] == fail) in stencil_op()
312 ctx->Stencil.ZFailFunc[face] = zfail; in stencil_op()
313 ctx->Stencil.ZPassFunc[face] = zpass; in stencil_op()
314 ctx->Stencil.FailFunc[face] = fail; in stencil_op()
318 if (ctx->Stencil.ZFailFunc[0] == zfail && in stencil_op()
319 ctx->Stencil.ZFailFunc[1] == zfail && in stencil_op()
320 ctx->Stencil.ZPassFunc[0] == zpass && in stencil_op()
321 ctx->Stencil.ZPassFunc[1] == zpass && in stencil_op()
322 ctx->Stencil.FailFunc[0] == fail && in stencil_op()
323 ctx->Stencil.FailFunc[1] == fail) in stencil_op()
327 ctx->Stencil.ZFailFunc[0] = ctx->Stencil.ZFailFunc[1] = zfail; in stencil_op()
328 ctx->Stencil.ZPassFunc[0] = ctx->Stencil.ZPassFunc[1] = zpass; in stencil_op()
329 ctx->Stencil.FailFunc[0] = ctx->Stencil.FailFunc[1] = fail; in stencil_op()
384 ctx->Stencil.ActiveFace = (face == GL_FRONT) ? 0 : 2; in _mesa_ActiveStencilFaceEXT()
398 if (ctx->Stencil.ZFailFunc[0] != zfail || in stencil_op_separate()
399 ctx->Stencil.ZPassFunc[0] != zpass || in stencil_op_separate()
400 ctx->Stencil.FailFunc[0] != sfail){ in stencil_op_separate()
403 ctx->Stencil.ZFailFunc[0] = zfail; in stencil_op_separate()
404 ctx->Stencil.ZPassFunc[0] = zpass; in stencil_op_separate()
405 ctx->Stencil.FailFunc[0] = sfail; in stencil_op_separate()
411 if (ctx->Stencil.ZFailFunc[1] != zfail || in stencil_op_separate()
412 ctx->Stencil.ZPassFunc[1] != zpass || in stencil_op_separate()
413 ctx->Stencil.FailFunc[1] != sfail) { in stencil_op_separate()
416 ctx->Stencil.ZFailFunc[1] = zfail; in stencil_op_separate()
417 ctx->Stencil.ZPassFunc[1] = zpass; in stencil_op_separate()
418 ctx->Stencil.FailFunc[1] = sfail; in stencil_op_separate()
474 ctx->Stencil.Function[0] = func; in stencil_func_separate()
475 ctx->Stencil.Ref[0] = ref; in stencil_func_separate()
476 ctx->Stencil.ValueMask[0] = mask; in stencil_func_separate()
481 ctx->Stencil.Function[1] = func; in stencil_func_separate()
482 ctx->Stencil.Ref[1] = ref; in stencil_func_separate()
483 ctx->Stencil.ValueMask[1] = mask; in stencil_func_separate()
527 ctx->Stencil.WriteMask[0] = mask; in stencil_mask_separate()
531 ctx->Stencil.WriteMask[1] = mask; in stencil_mask_separate()
572 ctx->Stencil.Enabled = GL_FALSE; in _mesa_init_stencil()
573 ctx->Stencil.TestTwoSide = GL_FALSE; in _mesa_init_stencil()
574 ctx->Stencil.ActiveFace = 0; /* 0 = GL_FRONT, 2 = GL_BACK */ in _mesa_init_stencil()
575 ctx->Stencil.Function[0] = GL_ALWAYS; in _mesa_init_stencil()
576 ctx->Stencil.Function[1] = GL_ALWAYS; in _mesa_init_stencil()
577 ctx->Stencil.Function[2] = GL_ALWAYS; in _mesa_init_stencil()
578 ctx->Stencil.FailFunc[0] = GL_KEEP; in _mesa_init_stencil()
579 ctx->Stencil.FailFunc[1] = GL_KEEP; in _mesa_init_stencil()
580 ctx->Stencil.FailFunc[2] = GL_KEEP; in _mesa_init_stencil()
581 ctx->Stencil.ZPassFunc[0] = GL_KEEP; in _mesa_init_stencil()
582 ctx->Stencil.ZPassFunc[1] = GL_KEEP; in _mesa_init_stencil()
583 ctx->Stencil.ZPassFunc[2] = GL_KEEP; in _mesa_init_stencil()
584 ctx->Stencil.ZFailFunc[0] = GL_KEEP; in _mesa_init_stencil()
585 ctx->Stencil.ZFailFunc[1] = GL_KEEP; in _mesa_init_stencil()
586 ctx->Stencil.ZFailFunc[2] = GL_KEEP; in _mesa_init_stencil()
587 ctx->Stencil.Ref[0] = 0; in _mesa_init_stencil()
588 ctx->Stencil.Ref[1] = 0; in _mesa_init_stencil()
589 ctx->Stencil.Ref[2] = 0; in _mesa_init_stencil()
601 ctx->Stencil.ValueMask[0] = 0xFF; in _mesa_init_stencil()
602 ctx->Stencil.ValueMask[1] = 0xFF; in _mesa_init_stencil()
603 ctx->Stencil.ValueMask[2] = 0xFF; in _mesa_init_stencil()
604 ctx->Stencil.WriteMask[0] = 0xFF; in _mesa_init_stencil()
605 ctx->Stencil.WriteMask[1] = 0xFF; in _mesa_init_stencil()
606 ctx->Stencil.WriteMask[2] = 0xFF; in _mesa_init_stencil()
608 ctx->Stencil.Clear = 0; in _mesa_init_stencil()
609 ctx->Stencil._BackFace = 1; in _mesa_init_stencil()