Browse Source
Merge pull request #8311 from asLody/fix-stencil-faces
vk_rasterizer: fix stencil test when two faces are disabled
pull/15/merge
bunnei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/video_core/renderer_vulkan/vk_rasterizer.cpp
|
|
|
@ -784,8 +784,8 @@ void RasterizerVulkan::UpdateStencilFaces(Tegra::Engines::Maxwell3D::Regs& regs) |
|
|
|
}); |
|
|
|
} else { |
|
|
|
// Front face defines both faces
|
|
|
|
scheduler.Record([ref = regs.stencil_back_func_ref, write_mask = regs.stencil_back_mask, |
|
|
|
test_mask = regs.stencil_back_func_mask](vk::CommandBuffer cmdbuf) { |
|
|
|
scheduler.Record([ref = regs.stencil_front_func_ref, write_mask = regs.stencil_front_mask, |
|
|
|
test_mask = regs.stencil_front_func_mask](vk::CommandBuffer cmdbuf) { |
|
|
|
cmdbuf.SetStencilReference(VK_STENCIL_FACE_FRONT_AND_BACK, ref); |
|
|
|
cmdbuf.SetStencilWriteMask(VK_STENCIL_FACE_FRONT_AND_BACK, write_mask); |
|
|
|
cmdbuf.SetStencilCompareMask(VK_STENCIL_FACE_FRONT_AND_BACK, test_mask); |
|
|
|
|