0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-22 23:45:46 +00:00

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>
This commit is contained in:
Matt Heins 2024-03-21 20:44:11 -04:00 committed by GitHub
parent 20a280525f
commit c94a73ec60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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