Lines Matching refs:zfail
308 _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass) in _mesa_StencilOp() argument
320 if (!validate_stencil_op(ctx, zfail)) { in _mesa_StencilOp()
331 if (ctx->Stencil.ZFailFunc[face] == zfail && in _mesa_StencilOp()
336 ctx->Stencil.ZFailFunc[face] = zfail; in _mesa_StencilOp()
344 ctx->Driver.StencilOpSeparate(ctx, GL_BACK, fail, zfail, zpass); in _mesa_StencilOp()
349 if (ctx->Stencil.ZFailFunc[0] == zfail && in _mesa_StencilOp()
350 ctx->Stencil.ZFailFunc[1] == zfail && in _mesa_StencilOp()
357 ctx->Stencil.ZFailFunc[0] = ctx->Stencil.ZFailFunc[1] = zfail; in _mesa_StencilOp()
364 fail, zfail, zpass); in _mesa_StencilOp()
396 _mesa_StencilOpSeparate(GLenum face, GLenum sfail, GLenum zfail, GLenum zpass) in _mesa_StencilOpSeparate() argument
408 if (!validate_stencil_op(ctx, zfail)) { in _mesa_StencilOpSeparate()
423 if (ctx->Stencil.ZFailFunc[0] != zfail || in _mesa_StencilOpSeparate()
427 ctx->Stencil.ZFailFunc[0] = zfail; in _mesa_StencilOpSeparate()
435 if (ctx->Stencil.ZFailFunc[1] != zfail || in _mesa_StencilOpSeparate()
439 ctx->Stencil.ZFailFunc[1] = zfail; in _mesa_StencilOpSeparate()
446 ctx->Driver.StencilOpSeparate(ctx, face, sfail, zfail, zpass); in _mesa_StencilOpSeparate()