diff options
| author | riperiperi <rhy3756547@hotmail.com> | 2023-09-25 22:07:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-25 23:07:03 +0200 |
| commit | f6c3f1cdfdb9145634be3bfc54400f0d408f36dd (patch) | |
| tree | aa3de1c788717cd76f5990550dad0f3ab3d397bf /src/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs | |
| parent | 8026e1c804fae39561087f9e04bd5c4eefa640fa (diff) | |
GPU: Discard data when getting texture before full clear (#5719)
* GPU: Discard data when getting texture before full clear
* Fix rules and order of clear checks
* Fix formatting
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs')
| -rw-r--r-- | src/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs b/src/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs index 48a497b5..37e41c51 100644 --- a/src/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs +++ b/src/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs @@ -447,6 +447,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed bool useControl = updateFlags.HasFlag(RenderTargetUpdateFlags.UseControl); bool layered = updateFlags.HasFlag(RenderTargetUpdateFlags.Layered); bool singleColor = updateFlags.HasFlag(RenderTargetUpdateFlags.SingleColor); + bool discard = updateFlags.HasFlag(RenderTargetUpdateFlags.DiscardClip); int count = useControl ? rtControl.UnpackCount() : Constants.TotalRenderTargets; @@ -486,6 +487,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed memoryManager, colorState, _vtgWritesRtLayer || layered, + discard, samplesInX, samplesInY, sizeHint); @@ -525,6 +527,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed dsState, dsSize, _vtgWritesRtLayer || layered, + discard, samplesInX, samplesInY, sizeHint); |
