summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-05-25 03:37:31 +0200
committerGitHub <noreply@github.com>2022-05-25 03:37:31 +0200
commit4118aad4915448d22f75a17cdcf26f1c728765f4 (patch)
tree9ac20ea5456e3eca854f4ff47a60813854b70fba /src/video_core
parentMerge pull request #8342 from lat9nq/clang-latest-stdc++ (diff)
parentvk_rasterizer: fix stencil test when two faces are disabled (diff)
downloadyuzu-4118aad4915448d22f75a17cdcf26f1c728765f4.tar
yuzu-4118aad4915448d22f75a17cdcf26f1c728765f4.tar.gz
yuzu-4118aad4915448d22f75a17cdcf26f1c728765f4.tar.bz2
yuzu-4118aad4915448d22f75a17cdcf26f1c728765f4.tar.lz
yuzu-4118aad4915448d22f75a17cdcf26f1c728765f4.tar.xz
yuzu-4118aad4915448d22f75a17cdcf26f1c728765f4.tar.zst
yuzu-4118aad4915448d22f75a17cdcf26f1c728765f4.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index fd27581ce..ce6c853c1 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/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);