mesa: replace _mesa_update_stencil() with helper functions
[mesa.git] / src / mesa / drivers / dri / i915 / i915_state.c
index 715db1fffa3da49fa4df8c87bc794a37d0def5c1..232fc9dce192c80bf2646ccf6404ac1a2402a6a7 100644 (file)
@@ -127,7 +127,7 @@ i915_update_stencil(struct gl_context * ctx)
                  S5_STENCIL_PASS_Z_PASS_SHIFT));
 
    /* Set back state if different from front. */
-   if (ctx->Stencil._TestTwoSide) {
+   if (_mesa_stencil_is_two_sided(ctx)) {
       set_ctx_bits(I915_CTXREG_BF_STENCIL_OPS,
                    BFO_STENCIL_REF_MASK |
                    BFO_STENCIL_TEST_MASK |