mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-30 20:37:12 +02:00
shader cache: Fix possible race causing crashes on manifest at startup (#1718)
* shader cache: Fix possible race causing crashes on manifest at startup This fix a misplace function call ending up causing possibly two write on the cache.info at the same time. * shader cache: Make RemoveManifestEntries async too to be sure all operations are perform before starting the game
This commit is contained in:
parent
ef77ba3995
commit
7704634fc4
2 changed files with 24 additions and 3 deletions
|
@ -58,8 +58,8 @@ namespace Ryujinx.Graphics.Gpu.Shader.Cache
|
|||
/// <param name="entries">Entries to remove from the manifest of all caches</param>
|
||||
public void RemoveManifestEntries(HashSet<Hash128> entries)
|
||||
{
|
||||
_guestProgramCache.RemoveManifestEntries(entries);
|
||||
_hostProgramCache.RemoveManifestEntries(entries);
|
||||
_guestProgramCache.RemoveManifestEntriesAsync(entries);
|
||||
_hostProgramCache.RemoveManifestEntriesAsync(entries);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue