VERY experimental Nintendo Switch 2 emulator
C++
SWRenderer: The stencil depth_pass action is executed even if depth testing is disabled.
Subv97b1a1056099
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cppindex c768a5eea4..696839da69 100644--- a/src/video_core/rasterizer.cpp+++ b/src/video_core/rasterizer.cpp@@ -888,21 +888,19 @@ static void ProcessTriangleInternal(const Shader::OutputVertex& v0,}if (!pass) {- if (stencil_action_enable) {+ if (stencil_action_enable)UpdateStencil(stencil_test.action_depth_fail);- }continue;}if (output_merger.depth_write_enable)SetDepth(x >> 4, y >> 4, z);-- if (stencil_action_enable) {- // TODO: What happens if stencil testing is enabled, but depth testing is not? Will stencil get updated anyway?- UpdateStencil(stencil_test.action_depth_pass);- }}+ // The stencil depth_pass action is executed even if depth testing is disabled+ if (stencil_action_enable)+ UpdateStencil(stencil_test.action_depth_pass);+auto dest = GetPixel(x >> 4, y >> 4);Math::Vec4<u8> blend_output = combiner_output;