Fix depth clamp enable bit, unit scale for polygon offset. (#1178)
Verified with deko3d and opengl driver code.
This commit is contained in:
@@ -394,8 +394,7 @@ namespace Ryujinx.Graphics.Gpu.Engine
|
||||
private void UpdateDepthClampState(GpuState state)
|
||||
{
|
||||
ViewVolumeClipControl clip = state.Get<ViewVolumeClipControl>(MethodOffset.ViewVolumeClipControl);
|
||||
_context.Renderer.Pipeline.SetDepthClamp((clip & ViewVolumeClipControl.DepthClampNear) != 0,
|
||||
(clip & ViewVolumeClipControl.DepthClampFar) != 0);
|
||||
_context.Renderer.Pipeline.SetDepthClamp((clip & ViewVolumeClipControl.DepthClampDisabled) == 0);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@@ -6,7 +6,6 @@ namespace Ryujinx.Graphics.Gpu.State
|
||||
enum ViewVolumeClipControl
|
||||
{
|
||||
ForceDepthRangeZeroToOne = 1 << 0,
|
||||
DepthClampNear = 1 << 3,
|
||||
DepthClampFar = 1 << 4,
|
||||
DepthClampDisabled = 1 << 11,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user