diff options
| author | 2018-10-12 17:06:46 +1100 | |
|---|---|---|
| committer | 2018-10-12 17:06:46 +1100 | |
| commit | c55b5de0fb0c8db59b0520553b22e520b5f966ed (patch) | |
| tree | 393f9acbea056247c624e632678735374bea4d3f /src/core | |
| parent | Added error codes for nvmap (diff) | |
| download | yuzu-c55b5de0fb0c8db59b0520553b22e520b5f966ed.tar.gz yuzu-c55b5de0fb0c8db59b0520553b22e520b5f966ed.tar.xz yuzu-c55b5de0fb0c8db59b0520553b22e520b5f966ed.zip | |
Made the minimum alignment more clear
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvmap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp index c0b5ac47b..43651d8a6 100644 --- a/src/core/hle/service/nvdrv/devices/nvmap.cpp +++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp | |||
| @@ -85,8 +85,9 @@ u32 nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 85 | return static_cast<u32>(NvErrCodes::InvalidValue); | 85 | return static_cast<u32>(NvErrCodes::InvalidValue); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | if (params.align < 0x1000) { | 88 | const u32 min_alignment = 0x1000; |
| 89 | params.align = 0x1000; | 89 | if (params.align < min_alignment) { |
| 90 | params.align = min_alignment; | ||
| 90 | } | 91 | } |
| 91 | 92 | ||
| 92 | auto object = GetObject(params.handle); | 93 | auto object = GetObject(params.handle); |