Write stencil early when using earlyFragmentTests
Write stencil early when using earlyFragmentTests

The writeStencil() operation should happen early when using
earlyFragmentTests, so this CL allows this operation to happen
right after the early depth test.

Tests: dEQP-VK.fragment_operations.early_fragment.discard_early_fragment_tests_stencil
Bug: b/200826740
Change-Id: Ibfead3d9731c052b954c9d448de8dea5bb108316
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/66151
Reviewed-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Kokoro-Result: kokoro <2ac7b1f3fa578934c95181d4272be0d3bca00121@google.com>
Tested-by: Alexis Hétu <1c7141772178a7e80858c3db5052b328076f08f4@google.com>
Presubmit-Ready: Alexis Hétu <1c7141772178a7e80858c3db5052b328076f08f4@google.com>

google/swiftshader,google/swiftshader,google/swiftshader