From a15b951721d7c52c30a8e8864e91353ec6fc65f4 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 27 May 2020 20:03:07 -0300 Subject: Fix wrong face culling once and for all (#1277) * Viewport swizzle support on NV and clip origin * Initialize default viewport swizzle state, emulate viewport swizzle on shaders when not supported * Address PR feedback --- Ryujinx.Graphics.Gpu/State/GpuState.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/State') diff --git a/Ryujinx.Graphics.Gpu/State/GpuState.cs b/Ryujinx.Graphics.Gpu/State/GpuState.cs index 70c4ed61..264719b4 100644 --- a/Ryujinx.Graphics.Gpu/State/GpuState.cs +++ b/Ryujinx.Graphics.Gpu/State/GpuState.cs @@ -146,6 +146,9 @@ namespace Ryujinx.Graphics.Gpu.State { memory[(int)MethodOffset.ViewportExtents + index * 4 + 2] = 0; memory[(int)MethodOffset.ViewportExtents + index * 4 + 3] = 0x3F800000; + + // Set swizzle to +XYZW + memory[(int)MethodOffset.ViewportTransform + index * 8 + 6] = 0x6420; } // Viewport transform enable. -- cgit v1.2.3