Support depth clip mode and disable shader fast math optimization on NVIDIA as a workaround for compiler bugs (?)
This commit is contained in:
parent
17fb11ddb9
commit
7ce5584f9e
7 changed files with 55 additions and 4 deletions
|
@ -102,7 +102,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
UpdateDepthTestState(state);
|
||||
}
|
||||
|
||||
if (state.QueryModified(MethodOffset.ViewportTransform, MethodOffset.ViewportExtents))
|
||||
if (state.QueryModified(MethodOffset.DepthMode, MethodOffset.ViewportTransform, MethodOffset.ViewportExtents))
|
||||
{
|
||||
UpdateViewportTransform(state);
|
||||
}
|
||||
|
@ -294,6 +294,10 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
|||
|
||||
private void UpdateViewportTransform(GpuState state)
|
||||
{
|
||||
DepthMode depthMode = state.Get<DepthMode>(MethodOffset.DepthMode);
|
||||
|
||||
_context.Renderer.Pipeline.SetDepthMode(depthMode);
|
||||
|
||||
bool transformEnable = GetViewportTransformEnable(state);
|
||||
|
||||
bool flipY = (state.Get<int>(MethodOffset.YControl) & 1) != 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue