mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 22:20:18 +00:00
Add back ulong casts, fix regression due to oversight
This commit is contained in:
parent
924bfa0e38
commit
09803d6407
1 changed files with 3 additions and 3 deletions
|
@ -367,8 +367,8 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu
|
||||||
for (int index = 0; index < arguments.Length; index++)
|
for (int index = 0; index < arguments.Length; index++)
|
||||||
{
|
{
|
||||||
ref RemapArguments argument = ref arguments[index];
|
ref RemapArguments argument = ref arguments[index];
|
||||||
ulong gpuVa = argument.GpuOffset << 16;
|
ulong gpuVa = (ulong)argument.GpuOffset << 16;
|
||||||
ulong size = argument.Pages << 16;
|
ulong size = (ulong)argument.Pages << 16;
|
||||||
int nvmapHandle = argument.NvMapHandle;
|
int nvmapHandle = argument.NvMapHandle;
|
||||||
|
|
||||||
if (nvmapHandle == 0)
|
if (nvmapHandle == 0)
|
||||||
|
@ -377,7 +377,7 @@ namespace Ryujinx.HLE.HOS.Services.Nv.NvDrvServices.NvHostAsGpu
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ulong mapOffs = argument.MapOffset << 16;
|
ulong mapOffs = (ulong)argument.MapOffset << 16;
|
||||||
PteKind kind = (PteKind)argument.Kind;
|
PteKind kind = (PteKind)argument.Kind;
|
||||||
|
|
||||||
NvMapHandle map = NvMapDeviceFile.GetMapFromHandle(Owner, nvmapHandle);
|
NvMapHandle map = NvMapDeviceFile.GetMapFromHandle(Owner, nvmapHandle);
|
||||||
|
|
Loading…
Reference in a new issue