diff options
author | Subv <subv2112@gmail.com> | 2018-07-01 17:50:06 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-01 17:50:06 +0200 |
commit | 6c0c81dfdc49c1e9dba9af778b9d6d7cf2008ae5 (patch) | |
tree | 0280f705182009ddb06c34df19ca3e7ab83950ba /src/core/hle/service | |
parent | nvmap: Return the address of the nvmap object when Freeing it for the last time. (diff) | |
download | yuzu-6c0c81dfdc49c1e9dba9af778b9d6d7cf2008ae5.tar yuzu-6c0c81dfdc49c1e9dba9af778b9d6d7cf2008ae5.tar.gz yuzu-6c0c81dfdc49c1e9dba9af778b9d6d7cf2008ae5.tar.bz2 yuzu-6c0c81dfdc49c1e9dba9af778b9d6d7cf2008ae5.tar.lz yuzu-6c0c81dfdc49c1e9dba9af778b9d6d7cf2008ae5.tar.xz yuzu-6c0c81dfdc49c1e9dba9af778b9d6d7cf2008ae5.tar.zst yuzu-6c0c81dfdc49c1e9dba9af778b9d6d7cf2008ae5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp | 5 |
1 files changed, 5 insertions, 0 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 c1eea861d..7d8ed6920 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp @@ -8,6 +8,8 @@ #include "core/core.h" #include "core/hle/service/nvdrv/devices/nvhost_as_gpu.h" #include "core/hle/service/nvdrv/devices/nvmap.h" +#include "video_core/renderer_base.h" +#include "video_core/video_core.h" namespace Service::Nvidia::Devices { @@ -154,6 +156,9 @@ u32 nvhost_as_gpu::UnmapBuffer(const std::vector<u8>& input, std::vector<u8>& ou ASSERT_MSG(itr != buffer_mappings.end(), "Tried to unmap invalid mapping"); + // Remove this memory region from the rasterizer cache. + VideoCore::g_renderer->Rasterizer()->FlushAndInvalidateRegion(params.offset, itr->second.size); + params.offset = gpu.memory_manager->UnmapBuffer(params.offset, itr->second.size); buffer_mappings.erase(itr->second.offset); |