diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-10-08 04:26:48 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-10-08 04:26:48 +0200 |
commit | c5c184246d197c0177f2d60b14a307f7247bce4a (patch) | |
tree | e975fc76afbaf27923a73a519f1de475684d17d2 /src/core/hle/service | |
parent | Merge pull request #1396 from DarkLordZach/packed-updates (diff) | |
download | yuzu-c5c184246d197c0177f2d60b14a307f7247bce4a.tar yuzu-c5c184246d197c0177f2d60b14a307f7247bce4a.tar.gz yuzu-c5c184246d197c0177f2d60b14a307f7247bce4a.tar.bz2 yuzu-c5c184246d197c0177f2d60b14a307f7247bce4a.tar.lz yuzu-c5c184246d197c0177f2d60b14a307f7247bce4a.tar.xz yuzu-c5c184246d197c0177f2d60b14a307f7247bce4a.tar.zst yuzu-c5c184246d197c0177f2d60b14a307f7247bce4a.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp index d8b8037a8..7555bbe7d 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp @@ -157,7 +157,12 @@ u32 nvhost_as_gpu::UnmapBuffer(const std::vector<u8>& input, std::vector<u8>& ou LOG_DEBUG(Service_NVDRV, "called, offset=0x{:X}", params.offset); const auto itr = buffer_mappings.find(params.offset); - ASSERT_MSG(itr != buffer_mappings.end(), "Tried to unmap invalid mapping"); + if (itr == buffer_mappings.end()) { + LOG_WARNING(Service_NVDRV, "Tried to unmap an invalid offset 0x{:X}", params.offset); + // Hardware tests shows that unmapping an already unmapped buffer always returns successful + // and doesn't fail. + return 0; + } auto& system_instance = Core::System::GetInstance(); |