Lines Matching refs:Stencil
48 if (ctx->Stencil._Enabled) {
49 int back = ctx->Stencil._BackFace;
53 intel_translate_compare_func(ctx->Stencil.Function[0]);
55 intel_translate_stencil_op(ctx->Stencil.FailFunc[0]);
57 intel_translate_stencil_op(ctx->Stencil.ZFailFunc[0]);
59 intel_translate_stencil_op(ctx->Stencil.ZPassFunc[0]);
60 ds->ds1.stencil_write_mask = ctx->Stencil.WriteMask[0];
61 ds->ds1.stencil_test_mask = ctx->Stencil.ValueMask[0];
63 if (ctx->Stencil._TestTwoSide) {
66 intel_translate_compare_func(ctx->Stencil.Function[back]);
68 intel_translate_stencil_op(ctx->Stencil.FailFunc[back]);
70 intel_translate_stencil_op(ctx->Stencil.ZFailFunc[back]);
72 intel_translate_stencil_op(ctx->Stencil.ZPassFunc[back]);
73 ds->ds1.bf_stencil_write_mask = ctx->Stencil.WriteMask[back];
74 ds->ds1.bf_stencil_test_mask = ctx->Stencil.ValueMask[back];
79 if (ctx->Stencil.WriteMask[0] ||
80 (ctx->Stencil._TestTwoSide && ctx->Stencil.WriteMask[back]))