How to reproduce:
1. Open the user's attached "BugReproStencil2" project
2. Open the "EnableStencil" Scene
3. Select "StencilFullscreen" GameObject in the Hierarchy window
4. Toggle On/Off the "Custom Pass Volume -> Overrides -> Write Depth" boolean value in the Inspector
5. Observe the "StencilFullscreen" GameObject in the Game view
Expected result: Toggling on the "Write Depth" value disables Depth Fail execution
Actual result: The Game view doesn't change depending on the "Write Depth" value
Reproducible with: 13.1.1 (2022.1.0a15)
Couldn't test with: 7.7.1 (2019.4.32f1), 10.7.0 (2020.3.23f1), 12.1.0 (2021.2.3f1)
Note:
- The Graphics repository branch is set to "sg/fullscreen-target" (if doesn't exist, then "master")
- Reproducible with Dx11, Vulkan, Metal