diff options
author | Matt Heins <mkheins57@gmail.com> | 2024-03-21 20:44:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 21:44:11 -0300 |
commit | c94a73ec60f3f75b36179cbc93d046701ed96253 (patch) | |
tree | bfbde83e13fb0449f2138d78146e95bd317ed4fc | |
parent | 20a280525f10c4c6a0a2486ddf33b6d04946d1b9 (diff) |
Updates the default value for BufferedQuery (#6351)1.1.1242
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>
-rw-r--r-- | src/Ryujinx.Graphics.Vulkan/Queries/BufferedQuery.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ryujinx.Graphics.Vulkan/Queries/BufferedQuery.cs b/src/Ryujinx.Graphics.Vulkan/Queries/BufferedQuery.cs index 3fdc5afa..714cb283 100644 --- a/src/Ryujinx.Graphics.Vulkan/Queries/BufferedQuery.cs +++ b/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; |