mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-29 00:50:46 -07:00
Apply new naming rule to all projects except Vp9 (#5407)
This commit is contained in:
@ -354,16 +354,16 @@ namespace Ryujinx.HLE.HOS.Services.Vi.RootService
|
||||
|
||||
private ulong GetA8B8G8R8LayerSize(int width, int height, out int pitch, out int alignment)
|
||||
{
|
||||
const int defaultAlignment = 0x1000;
|
||||
const ulong defaultSize = 0x20000;
|
||||
const int DefaultAlignment = 0x1000;
|
||||
const ulong DefaultSize = 0x20000;
|
||||
|
||||
alignment = defaultAlignment;
|
||||
alignment = DefaultAlignment;
|
||||
pitch = BitUtils.AlignUp(BitUtils.DivRoundUp(width * 32, 8), 64);
|
||||
|
||||
int memorySize = pitch * BitUtils.AlignUp(height, 64);
|
||||
ulong requiredMemorySize = (ulong)BitUtils.AlignUp(memorySize, alignment);
|
||||
|
||||
return (requiredMemorySize + defaultSize - 1) / defaultSize * defaultSize;
|
||||
return (requiredMemorySize + DefaultSize - 1) / DefaultSize * DefaultSize;
|
||||
}
|
||||
|
||||
[CommandCmif(2450)]
|
||||
@ -484,4 +484,4 @@ namespace Ryujinx.HLE.HOS.Services.Vi.RootService
|
||||
return ResultCode.Success;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user