Przeglądaj źródła

When waiting on CPU, do not return a time out error from EventWait (#2780)

* When waiting on CPU, do not return a time out error from EventWait

* And while I'm at it...
gdkchan 4 lat temu
rodzic
commit
e48530e9d9

+ 1 - 1
Ryujinx.Graphics.Gpu/Synchronization/SyncpointWaiterHandle.cs

@@ -4,7 +4,7 @@ namespace Ryujinx.Graphics.Gpu.Synchronization
 {
     public class SyncpointWaiterHandle
     {
-        internal uint   Threshold;
+        internal uint Threshold;
         internal Action<SyncpointWaiterHandle> Callback;
     }
 }

+ 2 - 2
Ryujinx.HLE/HOS/Services/Nv/NvDrvServices/NvHostCtrl/Types/NvHostEvent.cs

@@ -130,11 +130,11 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostCtrl
                 {
                     Logger.Warning?.Print(LogClass.ServiceNv, "GPU processing thread is too slow, waiting on CPU...");
 
-                    bool timedOut = Fence.Wait(gpuContext, Timeout.InfiniteTimeSpan);
+                    Fence.Wait(gpuContext, Timeout.InfiniteTimeSpan);
 
                     ResetFailingState();
 
-                    return timedOut;
+                    return false;
                 }
                 else
                 {