Lines Matching refs:Stencil
107 if (ctx->Stencil._Enabled) {
108 const unsigned back = ctx->Stencil._BackFace;
112 intel_translate_compare_func(ctx->Stencil.Function[0]);
114 intel_translate_stencil_op(ctx->Stencil.FailFunc[0]);
116 intel_translate_stencil_op(ctx->Stencil.ZFailFunc[0]);
118 intel_translate_stencil_op(ctx->Stencil.ZPassFunc[0]);
119 cc->cc1.stencil_ref = ctx->Stencil.Ref[0];
120 cc->cc1.stencil_write_mask = ctx->Stencil.WriteMask[0];
121 cc->cc1.stencil_test_mask = ctx->Stencil.ValueMask[0];
123 if (ctx->Stencil._TestTwoSide) {
126 intel_translate_compare_func(ctx->Stencil.Function[back]);
128 intel_translate_stencil_op(ctx->Stencil.FailFunc[back]);
130 intel_translate_stencil_op(ctx->Stencil.ZFailFunc[back]);
132 intel_translate_stencil_op(ctx->Stencil.ZPassFunc[back]);
133 cc->cc1.bf_stencil_ref = ctx->Stencil.Ref[back];
134 cc->cc2.bf_stencil_write_mask = ctx->Stencil.WriteMask[back];
135 cc->cc2.bf_stencil_test_mask = ctx->Stencil.ValueMask[back];
140 if (ctx->Stencil.WriteMask[0] ||
141 (ctx->Stencil._TestTwoSide && ctx->Stencil.WriteMask[back]))