i915g: Fix backface stencil when front_ccw is set.
authorEmma Anholt <emma@anholt.net>
Sun, 4 Jul 2021 05:12:21 +0000 (22:12 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 12 Jul 2021 18:12:05 +0000 (18:12 +0000)
commit54210c685f6ca8ffcb3445348a2ad3ca3513af1d
tree59819d4749fe00b0c9656ceddeacb42834a1379d
parentba11a30bf7e6618dadffe4bff04b558bfe8b25da
i915g: Fix backface stencil when front_ccw is set.

If we're doing separate front/back stencil ops, then in the absence of a
hardware bit for setting front_ccw (which you can already see from how we
manage cull face) we need to flip front/back stencil register settings.

Closes: #4974, #4975
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11706>
src/gallium/drivers/i915/ci/deqp-i915-g33-fails.txt
src/gallium/drivers/i915/ci/piglit-i915-g33-fails.txt
src/gallium/drivers/i915/i915_context.h
src/gallium/drivers/i915/i915_state.c
src/gallium/drivers/i915/i915_state_dynamic.c
src/gallium/drivers/i915/i915_state_immediate.c