Explorar o código

Updates the default value for BufferedQuery (#6351)

AMD GPUs (possibly just RDNA 3) could hang with the previous value
until the MaxQueryRetries was hit.

Fix #6056

Co-authored-by: riperiperi <rhy3756547@hotmail.com>
Matt Heins %!s(int64=2) %!d(string=hai) anos
pai
achega
c94a73ec60
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/Ryujinx.Graphics.Vulkan/Queries/BufferedQuery.cs

+ 2 - 2
src/Ryujinx.Graphics.Vulkan/Queries/BufferedQuery.cs

@@ -10,8 +10,8 @@ namespace Ryujinx.Graphics.Vulkan.Queries
     class BufferedQuery : IDisposable
     {
         private const int MaxQueryRetries = 5000;
-        private const long DefaultValue = -1;
-        private const long DefaultValueInt = 0xFFFFFFFF;
+        private const long DefaultValue = unchecked((long)0xFFFFFFFEFFFFFFFE);
+        private const long DefaultValueInt = 0xFFFFFFFE;
         private const ulong HighMask = 0xFFFFFFFF00000000;
 
         private readonly Vk _api;