aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2024-01-18 14:17:38 -0300
committerGitHub <noreply@github.com>2024-01-18 14:17:38 -0300
commit870d9599cc056e515dd63620fd10bf9fee4992ee (patch)
tree419862e34e111e69c6bf5acdfb96f026e75c8729 /src/Ryujinx.HLE
parent2dbbc9bc05998baa94d7b1953d9e0ffc7f1651f8 (diff)
Change shader cache init wait method (#6131)
* Change shader cache init wait method * Make field readonly
Diffstat (limited to 'src/Ryujinx.HLE')
-rw-r--r--src/Ryujinx.HLE/HOS/ArmProcessContext.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/ArmProcessContext.cs b/src/Ryujinx.HLE/HOS/ArmProcessContext.cs
index ff218546..4de00978 100644
--- a/src/Ryujinx.HLE/HOS/ArmProcessContext.cs
+++ b/src/Ryujinx.HLE/HOS/ArmProcessContext.cs
@@ -57,6 +57,8 @@ namespace Ryujinx.HLE.HOS
public void Execute(IExecutionContext context, ulong codeAddress)
{
+ // We must wait until shader cache is loaded, among other things, before executing CPU code.
+ _gpuContext.WaitUntilGpuReady();
_cpuContext.Execute(context, codeAddress);
}