mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-29 09:10:01 -06:00
Fix IsRegionInUse check on NV memory allocator (#2243)
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
using Ryujinx.Common.Collections;
|
using Ryujinx.Common.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Ryujinx.Common;
|
|
||||||
using System;
|
using System;
|
||||||
using Ryujinx.Graphics.Gpu.Memory;
|
using Ryujinx.Graphics.Gpu.Memory;
|
||||||
using Ryujinx.Common.Logging;
|
using Ryujinx.Common.Logging;
|
||||||
@ -301,7 +300,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices
|
|||||||
freeAddressStartPosition = floorAddress;
|
freeAddressStartPosition = floorAddress;
|
||||||
if (floorAddress != InvalidAddress)
|
if (floorAddress != InvalidAddress)
|
||||||
{
|
{
|
||||||
return !(gpuVa >= floorAddress && ((gpuVa + size) < _tree.Get(floorAddress)));
|
return !(gpuVa >= floorAddress && ((gpuVa + size) <= _tree.Get(floorAddress)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user