End render target lifetime on syncpoint increment (#6687)

This commit is contained in:
gdkchan
2024-04-20 22:35:20 -03:00
committed by GitHub
parent 9839cd56fb
commit 7070cf6ae5
2 changed files with 9 additions and 0 deletions

View File

@@ -157,6 +157,9 @@ namespace Ryujinx.Graphics.Gpu.Engine.GPFifo
}
else if (operation == SyncpointbOperation.Incr)
{
// "Unbind" render targets since a syncpoint increment might indicate future CPU access for the textures.
_parent.TextureManager.RefreshModifiedTextures();
_context.CreateHostSyncIfNeeded(HostSyncFlags.StrictSyncpoint);
_context.Synchronization.IncrementSyncpoint(syncpointId);
}